# HG changeset patch # User Michael Pavone # Date 1446708747 28800 # Node ID 4e394d9a7548acef510bfc44028edd78c233c2e7 # Parent 213c3b5160d02fbd584e77df5f26d333fa3780e7 Added temporary hack for loading a fixed ROM path so that Android build is "useable" before UI is in place diff -r 213c3b5160d0 -r 4e394d9a7548 blastem.c --- a/blastem.c Wed Nov 04 23:01:15 2015 -0800 +++ b/blastem.c Wed Nov 04 23:32:27 2015 -0800 @@ -1012,7 +1012,17 @@ } } if (!loaded) { +#ifdef __ANDROID__ + //Temporary hack until UI is in place + if (!(rom_size = load_rom("/mnt/sdcard/rom.bin"))) { + fatal_error("Failed to open /mnt/sdcard/rom.bin for reading"); + + } + romfname = "/mnt/sdcard/rom.bin"; + loaded = 1; +#else fatal_error("Usage: blastem [OPTIONS] ROMFILE [WIDTH] [HEIGHT]\n"); +#endif } tern_node *rom_db = load_rom_db(); rom_info info = configure_rom(rom_db, cart, rom_size, base_map, sizeof(base_map)/sizeof(base_map[0]));