diff --git a/assets/default b/assets/default index 7dc9db6..c647ec0 100644 --- a/assets/default +++ b/assets/default @@ -1,5 +1,3 @@ -# testing: -# g_cfg_rom_path = /mnt/sdcard/ROM.03 # 0 = unlimited 1 = 1mhz 2 = 2.8mhz 3 = 8mhz g_limit_speed = 2 diff --git a/res/menu/options.xml b/res/menu/options.xml deleted file mode 100644 index c7ce920..0000000 --- a/res/menu/options.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/src/com/froop/app/kegs/Config.java b/src/com/froop/app/kegs/Config.java deleted file mode 100644 index e61bc0d..0000000 --- a/src/com/froop/app/kegs/Config.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.froop.app.kegs; - -import android.os.Environment; -import java.io.File; -import java.io.FileOutputStream; - -// Ick. - -class Config { - // FIXME: use local directory here, not sdcard - public static final File mPath = Environment.getExternalStorageDirectory(); - public static final String mConfigFile = "KEGS/config.kegs"; - public static final String mROM03 = "KEGS/ROM.03"; - public static final String mROM01 = "KEGS/ROM.01"; - - static public String whichRomFile() { - File rom = new File(mPath, mROM03); - if (rom != null && rom.exists()) { - return rom.getPath(); - } - - rom = new File(mPath, mROM01); - if (rom != null && rom.exists()) { - return rom.getPath(); - } - - return null; - } - - public static void defaultConfig(String rom_path) { - // FIXME: copy 'default' over to 'config.kegs' - File config = new File(mPath, mConfigFile); - if (config == null || !config.exists()) { - createConfig(rom_path); - } - } - - public static void createConfig(String rom_path) { - try { - final byte[] data_bytes = String.format( - "g_cfg_rom_path = %s\ng_limit_speed = 3\n", rom_path).getBytes(); - File config = new File(mPath, mConfigFile); - config.createNewFile(); - FileOutputStream out = new FileOutputStream(config); - out.write(data_bytes, 0, data_bytes.length); - out.close(); - } catch (java.io.IOException e) { - // kegs will fail and exit with no config - return; - } - } -}