Move TextureDecoder.cl from User to Sys

This commit is contained in:
Pierre Bourdon 2013-09-12 03:44:16 +02:00
parent c3eec379df
commit 91a758b342
3 changed files with 3 additions and 3 deletions

View File

@ -256,8 +256,6 @@ bool DolphinApp::OnInit()
// TODO: replace these with overlays
File::CopyDir(std::string(SHARED_USER_DIR GAMECONFIG_DIR DIR_SEP),
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_CACHE_IDX));
@ -271,6 +269,7 @@ bool DolphinApp::OnInit()
File::CreateFullPath(File::GetUserPath(D_HIRESTEXTURES_IDX));
File::CreateFullPath(File::GetUserPath(D_MAILLOGS_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_SHADERS_IDX));
File::CreateFullPath(File::GetUserPath(D_STATESAVES_IDX));

View File

@ -5,6 +5,7 @@
#include "OCLTextureDecoder.h"
#include "../OpenCL.h"
#include "CommonPaths.h"
#include "FileUtil.h"
#include <fcntl.h>
@ -138,7 +139,7 @@ void TexDecoder_OpenCL_Initialize()
if (err)
{
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))
{
ERROR_LOG(VIDEO, "Failed to load OpenCL code %s - file is missing?", filename.c_str());