File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,11 @@ enum class EGameMode : uint8_t {
28
28
ONLINE_TRAINING = 18 ,
29
29
TEAMBATTLE = 19 ,
30
30
EXAM_CPU_MATCH = 20 ,
31
- REPLAY = 21 ,
32
- SPECTATE = 22 ,
31
+ CABINET_CPU_MATCH = 21 ,
32
+ LEARNING_AI_MATCH = 22 ,
33
+ LEARNING_AI_SPECTATE = 23 ,
34
+ REPLAY = 24 ,
35
+ SPECTATE = 25 ,
33
36
};
34
37
35
38
enum class HUD_GROUP_TYPE : uint8_t {
Original file line number Diff line number Diff line change @@ -783,6 +783,8 @@ void ScriptRunner::on_config_save(utility::Config& cfg) {
783
783
}
784
784
785
785
void ScriptRunner::hook_battle_rule () {
786
+ // Removed for now as it seems to cause some weird issues with matchmaking
787
+ #if 0
786
788
if (m_attempted_hook_battle_rule) {
787
789
return;
788
790
}
@@ -828,13 +830,15 @@ void ScriptRunner::hook_battle_rule() {
828
830
return HookManager::PreHookResult::CALL_ORIGINAL;
829
831
},
830
832
[this](uintptr_t& ret_val, sdk::RETypeDefinition* ret_ty, uintptr_t ret_addr) -> void {
833
+ // DONT set this, it probably breaks something now
831
834
auto bt = this->get_last_battle_type();
832
835
833
836
if (bt.has_value()) {
834
837
sdk::sf6::set_game_mode((sdk::sf6::EGameMode)bt.value());
835
838
}
836
839
});
837
840
}
841
+ #endif
838
842
}
839
843
840
844
void ScriptRunner::on_frame () {
You can’t perform that action at this time.
0 commit comments