From daecceb42dac7a7c9d7febabefca0d362baca213 Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Tue, 4 Jan 2011 02:04:52 +0000 Subject: [PATCH] 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 --- Source/Plugins/Plugin_DSP_LLE/Src/main.cpp | 14 +++++++++----- 1 file 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();