mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Fix making the config directory so copying over assets won't fail.
This commit is contained in:
parent
b47915d1e4
commit
0973d503ef
BIN
Source/Android/assets/Dolphin.png
Normal file
BIN
Source/Android/assets/Dolphin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.7 KiB |
BIN
Source/Android/assets/NoBanner.png
Normal file
BIN
Source/Android/assets/NoBanner.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
@ -92,13 +92,17 @@ public class DolphinEmulator<MainActivity> extends Activity
|
|||||||
startActivityForResult(ListIntent, 1);
|
startActivityForResult(ListIntent, 1);
|
||||||
|
|
||||||
// Make the assets directory
|
// Make the assets directory
|
||||||
File directory = new File(
|
String strDir = Environment.getExternalStorageDirectory()+File.separator+"dolphin-emu";
|
||||||
Environment.getExternalStorageDirectory()+File.separator+"dolphin-emu"+File.separator+"Config");
|
File directory = new File(strDir);
|
||||||
|
directory.mkdirs();
|
||||||
|
|
||||||
|
strDir += File.separator+"Config";
|
||||||
|
directory = new File(strDir);
|
||||||
directory.mkdirs();
|
directory.mkdirs();
|
||||||
|
|
||||||
// Copy assets if needed
|
// Copy assets if needed
|
||||||
java.io.File file = new java.io.File(
|
java.io.File file = new java.io.File(
|
||||||
Environment.getExternalStorageDirectory()+File.separator+"dolphin-emu" + File.separator + "ButtonStart.png");
|
Environment.getExternalStorageDirectory()+File.separator+"dolphin-emu" + File.separator + "NoBanner.png");
|
||||||
if(!file.exists())
|
if(!file.exists())
|
||||||
{
|
{
|
||||||
CopyAsset("ButtonA.png",
|
CopyAsset("ButtonA.png",
|
||||||
@ -110,6 +114,12 @@ public class DolphinEmulator<MainActivity> extends Activity
|
|||||||
CopyAsset("ButtonStart.png",
|
CopyAsset("ButtonStart.png",
|
||||||
Environment.getExternalStorageDirectory()+File.separator+
|
Environment.getExternalStorageDirectory()+File.separator+
|
||||||
"dolphin-emu" + File.separator + "ButtonStart.png");
|
"dolphin-emu" + File.separator + "ButtonStart.png");
|
||||||
|
CopyAsset("NoBanner.png",
|
||||||
|
Environment.getExternalStorageDirectory()+File.separator+
|
||||||
|
"dolphin-emu" + File.separator + "NoBanner.png");
|
||||||
|
CopyAsset("Dolphin.png",
|
||||||
|
Environment.getExternalStorageDirectory()+File.separator+
|
||||||
|
"dolphin-emu" + File.separator + "Dolphin.png");
|
||||||
CopyAsset("GCPadNew.ini",
|
CopyAsset("GCPadNew.ini",
|
||||||
Environment.getExternalStorageDirectory()+File.separator+
|
Environment.getExternalStorageDirectory()+File.separator+
|
||||||
"dolphin-emu" + File.separator +"Config"+ File.separator +"GCPadNew.ini");
|
"dolphin-emu" + File.separator +"Config"+ File.separator +"GCPadNew.ini");
|
||||||
|
Loading…
Reference in New Issue
Block a user