minor cleanup

This commit is contained in:
Martin Michelsen
2024-10-30 08:40:25 -07:00
parent 67c43e803b
commit 7baf5ce327
4 changed files with 191 additions and 227 deletions
+5 -5
View File
@@ -83,14 +83,14 @@ void Client::Config::set_flags_for_version(Version version, int64_t sub_version)
}
break;
case 0x20: // DCNTE, possibly also DCv1 JP
case 0x20: // DC NTE, 11/2000, possibly also DCv1 JP
case 0x21: // DCv1 US
case 0x22: // DCv1 EU, 12/2000, and 01/2001, at 50Hz (presumably)
case 0x23: // DCv1 EU, 12/2000, and 01/2001, at 60Hz (presumably)
this->set_flag(Flag::NO_D6);
break;
case 0x25: // DCv2 JP
case 0x26: // DCv2 US
case 0x26: // DCv2 US and 08/2001
case 0x27: // DCv2 EU 50Hz (presumably)
case 0x28: // DCv2 EU 60Hz (presumably)
this->set_flag(Flag::NO_D6);
@@ -103,7 +103,7 @@ void Client::Config::set_flags_for_version(Version version, int64_t sub_version)
this->set_flag(Flag::SEND_FUNCTION_CALL_CHECKSUM_ONLY);
this->set_flag(Flag::SEND_FUNCTION_CALL_NO_CACHE_PATCH);
break;
case 0x30: // GC Ep1&2 GameJam demo, GC Ep1&2 Trial Edition, GC Ep1&2 JP v1.2, at least one version of XB
case 0x30: // GC Ep1&2 GameJam demo, GC Ep1&2 Trial Edition, GC Ep1&2 JP v1.2, XB JP
case 0x31: // GC Ep1&2 US v1.0, GC US v1.1, XB US
this->set_flag(Flag::HAS_SEND_FUNCTION_CALL);
break;
@@ -119,7 +119,7 @@ void Client::Config::set_flags_for_version(Version version, int64_t sub_version)
this->set_flag(Flag::ENCRYPTED_SEND_FUNCTION_CALL);
this->set_flag(Flag::SEND_FUNCTION_CALL_NO_CACHE_PATCH);
break;
case 0x3A: // GC Ep1&2 US v1.2 (Plus) GMK edition
case 0x3A: // GC Ep1&2 US v1.2 (Plus) Return to Ragol
this->set_flag(Flag::IS_CLIENT_CUSTOMIZATION);
[[fallthrough]];
case 0x36: // GC Ep1&2 US v1.2 (Plus)
@@ -135,7 +135,7 @@ void Client::Config::set_flags_for_version(Version version, int64_t sub_version)
// sub_version can't be used to tell JP final and Trial Edition apart; we
// instead look at header.flag in the 61 command and set the version then.
break;
case 0x41: // GC Ep3 US (and BB)
case 0x41: // GC Ep3 US (and BB, but BB is handled above)
case 0x42: // GC Ep3 EU 50Hz
case 0x43: // GC Ep3 EU 60Hz
this->set_flag(Flag::NO_D6_AFTER_LOBBY);