comparison blastem.c @ 861:4e394d9a7548

Added temporary hack for loading a fixed ROM path so that Android build is "useable" before UI is in place
author Michael Pavone <pavone@retrodev.com>
date Wed, 04 Nov 2015 23:32:27 -0800
parents 213c3b5160d0
children 7022ba865cfd
comparison
equal deleted inserted replaced
860:213c3b5160d0 861:4e394d9a7548
1010 } else if (height < 0) { 1010 } else if (height < 0) {
1011 height = atoi(argv[i]); 1011 height = atoi(argv[i]);
1012 } 1012 }
1013 } 1013 }
1014 if (!loaded) { 1014 if (!loaded) {
1015 #ifdef __ANDROID__
1016 //Temporary hack until UI is in place
1017 if (!(rom_size = load_rom("/mnt/sdcard/rom.bin"))) {
1018 fatal_error("Failed to open /mnt/sdcard/rom.bin for reading");
1019
1020 }
1021 romfname = "/mnt/sdcard/rom.bin";
1022 loaded = 1;
1023 #else
1015 fatal_error("Usage: blastem [OPTIONS] ROMFILE [WIDTH] [HEIGHT]\n"); 1024 fatal_error("Usage: blastem [OPTIONS] ROMFILE [WIDTH] [HEIGHT]\n");
1025 #endif
1016 } 1026 }
1017 tern_node *rom_db = load_rom_db(); 1027 tern_node *rom_db = load_rom_db();
1018 rom_info info = configure_rom(rom_db, cart, rom_size, base_map, sizeof(base_map)/sizeof(base_map[0])); 1028 rom_info info = configure_rom(rom_db, cart, rom_size, base_map, sizeof(base_map)/sizeof(base_map[0]));
1019 byteswap_rom(rom_size); 1029 byteswap_rom(rom_size);
1020 set_region(&info, force_version); 1030 set_region(&info, force_version);