buymeacoffee funding

stricter deserialize verify for broadcast/cable/region
This commit is contained in:
Flyinghead 2024-05-04 20:33:37 +02:00
parent 0517a4600c
commit ab8b4f0e54
3 changed files with 6 additions and 5 deletions

1
.github/FUNDING.yml vendored
View File

@ -1 +1,2 @@
buy_me_a_coffee: Flyinghead
custom: ['https://www.paypal.com/paypalme/FlycastEmu']

View File

@ -271,7 +271,7 @@ const WidescreenCheat CheatManager::widescreen_cheats[] =
{ "T36807D 05", nullptr, { 0x140F74, 0x140FA4 }, { 0x43FA0000, 0x3F400000 } }, // Sword of Bersek (PAL)
{ "T-36805N", nullptr, { 0x13F1C4, 0x13F194 }, { 0x3F400000, 0x43F00000 } }, // Sword of Bersek (USA)
{ "MK-51186", nullptr, { 0x4A19B0 }, { 0x43700000 } }, // Tennis 2K2 (USA)
{ "T15123N", nullptr, { 0x29B7BC }, { 0x3F400000 } }, // Test Drive Le Mans (USA) doesn't work?
{ "T15123N", nullptr, { 0x29B7BC }, { 0x3F400000 } }, // Test Drive Le Mans (USA)
{ "T20801M", nullptr, { 0x1AAC80, 0x1AACB0 }, { 0x43F00000, 0x3F400000 } }, // Tetris 4D (JP)
{ "MK-5101153", nullptr, { 0x14EFA8, 0x14EFD8 }, { 0x43F00000, 0x3F400000 } }, // Timestalkers (PAL)
{ "T7009D50", nullptr, { 0x39173C }, { 0x3F400000 } }, // Tech Romancer (PAL)
@ -300,7 +300,7 @@ const WidescreenCheat CheatManager::widescreen_cheats[] =
// { "T0000", nullptr, { 0x3A514C, 0x3A6170 }, { 0x3F400000, 0x00000356 } }, // Volgarr the Viking. Not working
{ "xxxxxxxxxx", nullptr, { 0x20BB68, 0x1ACBD0, 0x1B9ADC }, // Code 1 reduces clipping. Code 2 fixes the clock.
{ 0x43700000, 0x7C1ACC60, 0x3F400000 } }, // What's Shenmue (JP)
{ "T40504D 50", nullptr, { 0x75281C }, { 0x3F400000 } }, // Wetrix+ (PAL) not working?
{ "T40504D 50", nullptr, { 0x75281C }, { 0x3F400000 } }, // Wetrix+ (PAL)
{ "MK-51152", nullptr, { 0x014E90 }, { 0x43700000 } }, // World Series Baseball 2K2 (USA)
{ "T20401M", nullptr, { 0x323CB0, 0x1ACBD0, 0x1B9ADC }, // Code 1 reduces clipping. Code 2 fixes the HUD.
{ 0x43700000, 0x1ACC60, 0x3F400000 } }, // Zero Gunner 2 (JP)

View File

@ -141,11 +141,11 @@ void dc_deserialize(Deserializer& deser)
naomi_Deserialize(deser);
deser >> config::Broadcast.get();
verify(config::Broadcast <= 4);
verify(config::Broadcast >= 0 && config::Broadcast <= 4);
deser >> config::Cable.get();
verify(config::Cable <= 3);
verify(config::Cable >= 0 && config::Cable <= 3);
deser >> config::Region.get();
verify(config::Region <= 3);
verify(config::Region >= 0 && config::Region <= 3);
naomi_cart_deserialize(deser);
gd_hle_state.Deserialize(deser);