Look for the DSP ROM files in Sys/GC as before before trying User/GC
to allow both system-side (also Windows) and per-user installations. The IPL ROM is another candidate for this, but I don't have an image to test with. Perhaps a more general solution would be to just phase out the Sys directory. As used for data which would have been available in ROM or flash on the real hardware, it really contains two classes of files that are both read-only during emulation: - Settings and font files, which can be freely distributed - ROM files which must be obtained from the user's own GC or Wii Since the two could be freely put together on Windows without any problems and with the users of that platform being resistant to change, it may be easiest to just treat Sys as another directory to be copied from the application bundle into User/Sys at startup on non-Windows. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6738 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
599020ef99
commit
293b5cb4c1
|
@ -219,9 +219,15 @@ void Initialize(void *init)
|
|||
g_Config.Load();
|
||||
|
||||
snprintf(irom_file, MAX_PATH, "%s%s",
|
||||
File::GetUserPath(D_GCUSER_IDX), DIR_SEP DSP_IROM);
|
||||
File::GetSysDirectory().c_str(), GC_SYS_DIR DIR_SEP DSP_IROM);
|
||||
if (!File::Exists(irom_file))
|
||||
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);
|
||||
File::GetSysDirectory().c_str(), GC_SYS_DIR DIR_SEP DSP_COEF);
|
||||
if (!File::Exists(coef_file))
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue