summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoren Jorvang <soren.jorvang@gmail.com>2011-01-04 02:04:52 +0000
committerSoren Jorvang <soren.jorvang@gmail.com>2011-01-04 02:04:52 +0000
commitdaecceb42dac7a7c9d7febabefca0d362baca213 (patch)
tree15ef8d1f26e1a1d7111c39b158a820c200833a50
parent4e97f835788e3cc7cc12905abdd1e4c398cc0566 (diff)
Move the expected location of the DSP ROM files from Sys/GC to User/GC.
These files are acquired from the hardware ROM by the individual user, who does not normally have write access to Sys on Linux and OS X. If you currently have these files in Sys/GC, just move them to User/GC (~/Library/Application\ Support/Dolphin/GC on OS X). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6734 8ced0084-cf51-0410-be5f-012b33b47a6e
-rw-r--r--Source/Plugins/Plugin_DSP_LLE/Src/main.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/Source/Plugins/Plugin_DSP_LLE/Src/main.cpp b/Source/Plugins/Plugin_DSP_LLE/Src/main.cpp
index e1971bd4ae..f82fc2df6f 100644
--- a/Source/Plugins/Plugin_DSP_LLE/Src/main.cpp
+++ b/Source/Plugins/Plugin_DSP_LLE/Src/main.cpp
@@ -211,14 +211,18 @@ void DSP_DebugBreak()
void Initialize(void *init)
{
g_InitMixer = false;
- bool bCanWork = true;
- g_dspInitialize = *(DSPInitialize*)init;
+ bool bCanWork = true;
+ char irom_file[MAX_PATH];
+ char coef_file[MAX_PATH];
+ g_dspInitialize = *(DSPInitialize*)init;
g_Config.Load();
- std::string irom_filename = File::GetSysDirectory() + GC_SYS_DIR + DIR_SEP + DSP_IROM;
- std::string coef_filename = File::GetSysDirectory() + GC_SYS_DIR + DIR_SEP + DSP_COEF;
- bCanWork = DSPCore_Init(irom_filename.c_str(), coef_filename.c_str(), AudioCommon::UseJIT());
+ snprintf(irom_file, MAX_PATH, "%s%s",
+ File::GetUserPath(D_GCUSER_IDX), DIR_SEP DSP_IROM);
+ snprintf(coef_file, MAX_PATH, "%s%s",
+ File::GetUserPath(D_GCUSER_IDX), DIR_SEP DSP_COEF);
+ bCanWork = DSPCore_Init(irom_file, coef_file, AudioCommon::UseJIT());
g_dsp.cpu_ram = g_dspInitialize.pGetMemoryPointer(0);
DSPCore_Reset();