Skip to content

Commit

Permalink
Fix paradox BO2 crack
Browse files Browse the repository at this point in the history
there was an issue were the vsh launcher isn't fast enough to inject the patches. so a work around had to be made by using the same patches and applying them into a temp sprx then we load the real paradox sprx.
  • Loading branch information
TheRouletteBoi committed Nov 28, 2022
1 parent 2f0b750 commit e5f5da7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
Binary file modified Resources/RouLetteVshMenu/modmenus/Paradox/CE_BO2.sprx
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions src/Core/Menu/Submenus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ void CodBo2Submenu()
vsh::ShowNotificationWithIcon(L"Paradox BO2 is ready to load", vsh::NotifyIcon::BlueVerifiedCheckmark, vsh::NotifySound::Trophy);
});

#ifdef DEPRECATED_MENU
g_Menu.Option(L"SPRX.IO").RightText(L"\uF88D + \uF884").Description(L"\uF5B5 DEX only menu").Action([]
{
if (!IsConsoleDex())
Expand All @@ -130,6 +131,7 @@ void CodBo2Submenu()
if (g_FindActiveGame.LoadMenu(FindActiveGame::PatchedMenu::BO2Sprxio))
vsh::ShowNotificationWithIcon(L"SPRX.IO BO2 is ready to load", vsh::NotifyIcon::BlueVerifiedCheckmark, vsh::NotifySound::Trophy);
});
#endif // 0

g_Menu.Option(L"Destiny").RightText(L"\uF888 + \uF88D").Description(L"\uF5B5 CEX/DEX only menu").Action([]
{
Expand Down
2 changes: 1 addition & 1 deletion src/Games/CODBO2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace CODBO2
{
case FindActiveGame::PatchedMenu::BO2Paradox:
{
// this whole code for paradox bo2 effectively does nothing as it's not fast enough to inject before module is started. To fix this we needed to implement the code into a sprx and then #load, #patch, #start sprx.
// this whole code for paradox bo2 effectively does nothing as it's not fast enough to inject before module is started. To fix this we needed to implement the same code into a sprx and then #load, #patch, #start sprx. Or edit the original sprx and increase the sleep at startup
const char* sprxInternalName = "ParadoxCE";
if (IsModuleLoaded(sprxInternalName))
{
Expand Down

0 comments on commit e5f5da7

Please sign in to comment.