Unverified Commit 0f120109 authored by kps501's avatar kps501 Committed by GitHub
Browse files

Tatsuya79 compiler warning fix

parent e42945c9
......@@ -800,13 +800,13 @@ bool retro_load_game(const struct retro_game_info *game)
}
if (is_SufamiTurbo_Cart((uint8 *) game->data, game->size)) {
if (rom_loaded = (LoadBIOS(biosrom,"STBIOS.bin",0x40000)))
if ((rom_loaded = LoadBIOS(biosrom,"STBIOS.bin",0x40000)))
rom_loaded = Memory.LoadMultiCartMem((const uint8_t*)game->data, game->size, 0, 0, biosrom, 0x40000);
}
else
if ((is_bsx((uint8 *) game->data + 0x7fc0)==1) | (is_bsx((uint8 *) game->data + 0xffc0)==1)) {
if (rom_loaded = (LoadBIOS(biosrom,"BS-X.bin",0x100000)))
if ((rom_loaded = LoadBIOS(biosrom,"BS-X.bin",0x100000)))
rom_loaded = Memory.LoadMultiCartMem(biosrom, 0x100000, (const uint8_t*)game->data, game->size, 0, 0);
}
......@@ -896,14 +896,14 @@ bool retro_load_game_special(unsigned game_type, const struct retro_game_info *i
uint8 *biosrom = new uint8[0x100000];
if (is_SufamiTurbo_Cart((const uint8_t*)info[0].data, info[0].size)) {
if (rom_loaded = (LoadBIOS(biosrom,"STBIOS.bin",0x40000)))
rom_loaded = Memory.LoadMultiCartMem((const uint8_t*)info[0].data, info[0].size,
(const uint8_t*)info[1].data, info[1].size, biosrom, 0x40000);
if ((rom_loaded = LoadBIOS(biosrom,"STBIOS.bin",0x40000)))
rom_loaded = Memory.LoadMultiCartMem((const uint8_t*)info[0].data, info[0].size,
(const uint8_t*)info[1].data, info[1].size, biosrom, 0x40000);
}
else {
rom_loaded = Memory.LoadMultiCartMem((const uint8_t*)info[0].data, info[0].size,
(const uint8_t*)info[1].data, info[1].size, NULL, 0);
rom_loaded = Memory.LoadMultiCartMem((const uint8_t*)info[0].data, info[0].size,
(const uint8_t*)info[1].data, info[1].size, NULL, 0);
}
if (biosrom) delete[] biosrom;
......@@ -919,7 +919,7 @@ bool retro_load_game_special(unsigned game_type, const struct retro_game_info *i
if(num_info == 2) {
uint8 *biosrom = new uint8[0x100000];
if (rom_loaded = (LoadBIOS(biosrom,"STBIOS.bin",0x40000)))
if ((rom_loaded = LoadBIOS(biosrom,"STBIOS.bin",0x40000)))
rom_loaded = Memory.LoadMultiCartMem((const uint8_t*)info[0].data, info[0].size,
(const uint8_t*)info[1].data, info[1].size, biosrom, 0x40000);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment