mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
[Android] Fix Wii games.
This commit is contained in:
parent
7294fe5a3f
commit
ba76b016da
@ -102,8 +102,12 @@ public final class DolphinEmulator<MainActivity> extends Activity
|
||||
directory = new File(GCDir);
|
||||
directory.mkdirs();
|
||||
|
||||
String WiiDir = BaseDir + File.separator + "Wii";
|
||||
directory = new File(WiiDir);
|
||||
directory.mkdirs();
|
||||
|
||||
// Copy assets if needed
|
||||
File file = new File(GCDir + File.separator + "dsp_coef.bin");
|
||||
File file = new File(WiiDir + File.separator + "setting-usa.txt");
|
||||
if(!file.exists())
|
||||
{
|
||||
CopyAsset("ButtonA.png", BaseDir + File.separator + "ButtonA.png");
|
||||
@ -116,6 +120,10 @@ public final class DolphinEmulator<MainActivity> extends Activity
|
||||
CopyAsset("dsp_rom.bin", GCDir + File.separator + "dsp_rom.bin");
|
||||
CopyAsset("font_ansi.bin", GCDir + File.separator + "font_ansi.bin");
|
||||
CopyAsset("font_sjis.bin", GCDir + File.separator + "font_sjis.bin");
|
||||
CopyAsset("setting-eur.txt", WiiDir + File.separator + "setting-eur.txt");
|
||||
CopyAsset("setting-jpn.txt", WiiDir + File.separator + "setting-jpn.txt");
|
||||
CopyAsset("setting-kor.txt", WiiDir + File.separator + "setting-kor.txt");
|
||||
CopyAsset("setting-usa.txt", WiiDir + File.separator + "setting-usa.txt");
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
SharedPreferences.Editor editor = prefs.edit();
|
||||
|
@ -200,6 +200,9 @@ if(ANDROID)
|
||||
add_custom_command(TARGET ${DOLPHIN_EXE} POST_BUILD
|
||||
COMMAND cp ARGS ${CMAKE_SOURCE_DIR}/Data/Sys/GC/* ${CMAKE_SOURCE_DIR}/Source/Android/assets/
|
||||
)
|
||||
add_custom_command(TARGET ${DOLPHIN_EXE} POST_BUILD
|
||||
COMMAND cp ARGS ${CMAKE_SOURCE_DIR}/Data/Sys/Wii/* ${CMAKE_SOURCE_DIR}/Source/Android/assets/
|
||||
)
|
||||
else()
|
||||
add_executable(${DOLPHIN_EXE} ${SRCS})
|
||||
target_link_libraries(${DOLPHIN_EXE} ${LIBS} ${WXLIBS})
|
||||
|
Loading…
Reference in New Issue
Block a user