Casino solo (#1052)

* Add files via upload

* Add casino solo option to recovery submenu

* Add support for Japanese font in Menu.cpp

* Enable solo casino heist missions with new patch

Added a patch to enable solo casino heist missions.

* Remove 'casinosolo' option from Recovery menu

Removed the 'casinosolo' option from the general group.

* Delete src/game/features/recovery/CasinoSolo.cpp

* Add CasinoBoardPatch for solo mission play

* Update PlayAllMissionsSolo.cpp

* Add newline at end of Recovery.cpp

Fix missing newline at end of file in Recovery.cpp

* Fix code structure by removing extra brace

Removed unnecessary closing brace before OnTick method.
This commit is contained in:
Godred
2026-07-30 02:30:00 +09:00
committed by GitHub
parent f833a73a50
commit 1715a64c15
3 changed files with 15 additions and 2 deletions
@@ -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"};
}
}
+1
View File
@@ -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();
+1 -1
View File
@@ -48,4 +48,4 @@ namespace YimMenu::Submenus
AddCategory(BuildHeistModifierMenu());
AddCategory(BuildDailyActivitiesMenu());
}
}
}