chore: merge 8e673e1 -> 5bde979 from prod

This commit is contained in:
rjindael 2023-07-29 15:49:52 -07:00
parent 99a652ed3e
commit 729c3973b8
No known key found for this signature in database
GPG Key ID: D069369C906CCF31
1 changed files with 26 additions and 6 deletions

View File

@ -20,10 +20,32 @@ CRobloxCommandLineInfo__ParseParam_t CRobloxCommandLineInfo__ParseParam = (CRobl
BOOL __fastcall CRobloxApp__InitInstance_hook(CRobloxApp* _this)
{
if (!CRobloxApp__InitInstance(_this))
{
return FALSE;
}
#ifdef PLAYER
#ifdef _DEBUG
if (!hasAuthenticationUrl)
{
MessageBoxA(nullptr, "Missing authentication URL", "Kiseki", MB_OK | MB_ICONERROR);
}
if (!hasAuthenticationTicket)
{
MessageBoxA(nullptr, "Missing authentication ticket", "Kiseki", MB_OK | MB_ICONERROR);
}
if (!hasJoinScriptUrl)
{
MessageBoxA(nullptr, "Missing join script URL", "Kiseki", MB_OK | MB_ICONERROR);
}
#endif
if (!hasAuthenticationUrl || !hasAuthenticationTicket || !hasJoinScriptUrl)
{
ShellExecute(0, 0, L"https://kiseki.lol/games", 0, 0, SW_SHOW);
ShellExecuteW(0, 0, L"https://kiseki.lol/games", 0, 0, SW_SHOW);
return FALSE;
}
#endif
@ -31,15 +53,13 @@ BOOL __fastcall CRobloxApp__InitInstance_hook(CRobloxApp* _this)
#ifdef SERVER
if (!hasJobId)
{
#ifdef _DEBUG
MessageBoxA(nullptr, "Missing job ID", "Kiseki", MB_OK | MB_ICONERROR);
#endif
return FALSE;
}
#endif
if (!CRobloxApp__InitInstance(_this))
{
return FALSE;
}
CApp* app = reinterpret_cast<CApp*>(CLASSLOCATION_CAPP);
if (hasAuthenticationUrl && hasAuthenticationTicket && !authenticationUrl.empty() && !authenticationTicket.empty())