Move TextureDecoder.cl from User to Sys
This commit is contained in:
parent
c3eec379df
commit
91a758b342
|
@ -256,8 +256,6 @@ bool DolphinApp::OnInit()
|
||||||
// TODO: replace these with overlays
|
// TODO: replace these with overlays
|
||||||
File::CopyDir(std::string(SHARED_USER_DIR GAMECONFIG_DIR DIR_SEP),
|
File::CopyDir(std::string(SHARED_USER_DIR GAMECONFIG_DIR DIR_SEP),
|
||||||
File::GetUserPath(D_GAMECONFIG_IDX));
|
File::GetUserPath(D_GAMECONFIG_IDX));
|
||||||
File::CopyDir(std::string(SHARED_USER_DIR OPENCL_DIR DIR_SEP),
|
|
||||||
File::GetUserPath(D_OPENCL_IDX));
|
|
||||||
|
|
||||||
File::CreateFullPath(File::GetUserPath(D_USER_IDX));
|
File::CreateFullPath(File::GetUserPath(D_USER_IDX));
|
||||||
File::CreateFullPath(File::GetUserPath(D_CACHE_IDX));
|
File::CreateFullPath(File::GetUserPath(D_CACHE_IDX));
|
||||||
|
@ -271,6 +269,7 @@ bool DolphinApp::OnInit()
|
||||||
File::CreateFullPath(File::GetUserPath(D_HIRESTEXTURES_IDX));
|
File::CreateFullPath(File::GetUserPath(D_HIRESTEXTURES_IDX));
|
||||||
File::CreateFullPath(File::GetUserPath(D_MAILLOGS_IDX));
|
File::CreateFullPath(File::GetUserPath(D_MAILLOGS_IDX));
|
||||||
File::CreateFullPath(File::GetUserPath(D_MAPS_IDX));
|
File::CreateFullPath(File::GetUserPath(D_MAPS_IDX));
|
||||||
|
File::CreateFullPath(File::GetUserPath(D_OPENCL_IDX));
|
||||||
File::CreateFullPath(File::GetUserPath(D_SCREENSHOTS_IDX));
|
File::CreateFullPath(File::GetUserPath(D_SCREENSHOTS_IDX));
|
||||||
File::CreateFullPath(File::GetUserPath(D_SHADERS_IDX));
|
File::CreateFullPath(File::GetUserPath(D_SHADERS_IDX));
|
||||||
File::CreateFullPath(File::GetUserPath(D_STATESAVES_IDX));
|
File::CreateFullPath(File::GetUserPath(D_STATESAVES_IDX));
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#include "OCLTextureDecoder.h"
|
#include "OCLTextureDecoder.h"
|
||||||
|
|
||||||
#include "../OpenCL.h"
|
#include "../OpenCL.h"
|
||||||
|
#include "CommonPaths.h"
|
||||||
#include "FileUtil.h"
|
#include "FileUtil.h"
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@ -138,7 +139,7 @@ void TexDecoder_OpenCL_Initialize()
|
||||||
if (err)
|
if (err)
|
||||||
{
|
{
|
||||||
std::string code;
|
std::string code;
|
||||||
filename = File::GetUserPath(D_OPENCL_IDX) + "TextureDecoder.cl";
|
filename = File::GetSysDirectory() + OPENCL_DIR DIR_SEP "TextureDecoder.cl";
|
||||||
if (!File::ReadFileToString(true, filename.c_str(), code))
|
if (!File::ReadFileToString(true, filename.c_str(), code))
|
||||||
{
|
{
|
||||||
ERROR_LOG(VIDEO, "Failed to load OpenCL code %s - file is missing?", filename.c_str());
|
ERROR_LOG(VIDEO, "Failed to load OpenCL code %s - file is missing?", filename.c_str());
|
||||||
|
|
Loading…
Reference in New Issue