diff --git a/src/game/features/recovery/PlayAllMissionsSolo.cpp b/src/game/features/recovery/PlayAllMissionsSolo.cpp index 414c3a8..19e9e3e 100644 --- a/src/game/features/recovery/PlayAllMissionsSolo.cpp +++ b/src/game/features/recovery/PlayAllMissionsSolo.cpp @@ -27,6 +27,7 @@ namespace YimMenu::Features ScriptPatch m_ProcessPhoneHackingPatch{}; ScriptPatch m_QuickRestartPatch1{}; ScriptPatch m_QuickRestartPatch2{}; + ScriptPatch m_CasinoBoardPatch{}; virtual void OnEnable() override { @@ -151,6 +152,13 @@ namespace YimMenu::Features m_QuickRestartPatch2 = ScriptPatches::AddPatch("fm_mission_controller"_J, ScriptPointer("QuickRestartPatch2", "5A 47 00 5D ? ? ? 5D ? ? ? 75"), {0x2B, 0x00, 0x00}); } m_QuickRestartPatch2->Enable(); + + if (!m_CasinoBoardPatch) + { + m_CasinoBoardPatch = ScriptPatches::AddPatch("fmmc_launcher"_J, ScriptPointer("casinosolo", "2D 01 03 00 00 5D ? ? ? 2A 06 56 05 00 5D ? ? ? 20 2A 06 56 05 00 5D").Add(5), {0x71, 0x2E, 0x01, 0x01}); + } + m_CasinoBoardPatch->Enable(); + // By this patch, you can use the finale board of casino heist, and can change outfits or teams in missions like Lowriders } virtual void OnTick() override @@ -259,8 +267,12 @@ namespace YimMenu::Features { m_QuickRestartPatch2->Disable(); } + if (m_CasinoBoardPatch) + { + m_CasinoBoardPatch->Disable(); + } } }; static PlayAllMissionsSolo _PlayAllMissionsSolo{"playallmissionssolo", "Play All Missions Solo", "Allows you to play any mission solo. Note that some missions might break if there aren't enough players"}; -} \ No newline at end of file +} diff --git a/src/game/frontend/Menu.cpp b/src/game/frontend/Menu.cpp index 9193cdb..fb4ac81 100644 --- a/src/game/frontend/Menu.cpp +++ b/src/game/frontend/Menu.cpp @@ -81,6 +81,7 @@ namespace YimMenu FontCfg.MergeMode = true; io.Fonts->AddFontFromFileTTF((std::filesystem::path(std::getenv("SYSTEMROOT")) / "Fonts" / "arial.ttf").string().c_str(), size, &FontCfg, GetGlyphRangesCyrillicOnly()); + io.Fonts->AddFontFromFileTTF((std::filesystem::path(std::getenv("SYSTEMROOT")) / "Fonts" / "meiryo.ttc").string().c_str(), size, &FontCfg, io.Fonts->GetGlyphRangesJapanese()); io.Fonts->Build(); diff --git a/src/game/frontend/submenus/Recovery.cpp b/src/game/frontend/submenus/Recovery.cpp index aef57dd..f4587bf 100644 --- a/src/game/frontend/submenus/Recovery.cpp +++ b/src/game/frontend/submenus/Recovery.cpp @@ -48,4 +48,4 @@ namespace YimMenu::Submenus AddCategory(BuildHeistModifierMenu()); AddCategory(BuildDailyActivitiesMenu()); } -} \ No newline at end of file +}