Fix crash with gang weapon editor
This commit is contained in:
parent
6e427c7815
commit
da9ab62a27
@ -228,7 +228,7 @@ Right click disables hotkey."""
|
|||||||
VehEngineKey = "Toggle vehicle engine"
|
VehEngineKey = "Toggle vehicle engine"
|
||||||
VehHealth = "Veh Health: %.f"
|
VehHealth = "Veh Health: %.f"
|
||||||
VehicleSpawned = "Vehicle spawned"
|
VehicleSpawned = "Vehicle spawned"
|
||||||
VehSpeed = "Veh Health: %d"
|
VehSpeed = "Veh Speed: %d"
|
||||||
VehStartKey = "Vehicle instant start"
|
VehStartKey = "Vehicle instant start"
|
||||||
VehStopKey = "Vehicle instant start"
|
VehStopKey = "Vehicle instant start"
|
||||||
Version = "Version"
|
Version = "Version"
|
||||||
|
@ -70,7 +70,7 @@ void MenuThread(void* param)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Log::Print<eLogLevel::None>("Version: " MENU_TITLE "\nAuthor: Grinch_\nDiscord: " DISCORD_INVITE "\nMore Info: " GITHUB_LINK "\n");
|
Log::Print<eLogLevel::None>("Stating " MENU_TITLE "\nAuthor: Grinch_\nDiscord: " DISCORD_INVITE "\nMore Info: " GITHUB_LINK "\n");
|
||||||
|
|
||||||
CheatMenu::Init();
|
CheatMenu::Init();
|
||||||
|
|
||||||
|
@ -372,7 +372,7 @@ void Weapon::ShowPage()
|
|||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
|
|
||||||
std::string key = std::to_string(m_nGangWeaponList[m_nSelectedGang][m_nSelectedWeapon]);
|
std::string key = std::to_string(m_nGangWeaponList[m_nSelectedGang][m_nSelectedWeapon]);
|
||||||
ImGui::Text(TEXT("Weapon.CurrentWeapon"), m_WeaponData.m_pData->Get(key.c_str(), "Unknown"));
|
ImGui::Text(TEXT("Weapon.CurrentWeapon"), m_WeaponData.m_pData->Get(key.c_str(), "Unknown").c_str());
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
Ui::DrawImages(m_WeaponData, SetGangWeapon, nullptr,
|
Ui::DrawImages(m_WeaponData, SetGangWeapon, nullptr,
|
||||||
[](std::string str)
|
[](std::string str)
|
||||||
|
@ -11,9 +11,9 @@ del %VC_DIR%"\CheatMenuVC.asi" /Q
|
|||||||
del %VC_DIR%"\CheatMenuVC.pdb" /Q
|
del %VC_DIR%"\CheatMenuVC.pdb" /Q
|
||||||
del %III_DIR%"\CheatMenuIII.asi" /Q
|
del %III_DIR%"\CheatMenuIII.asi" /Q
|
||||||
del %III_DIR%"\CheatMenuIII.pdb" /Q
|
del %III_DIR%"\CheatMenuIII.pdb" /Q
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.pdb" %SA_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuSA.pdb" %SA_DIR% /K /D /H /Y
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y
|
@ -7,5 +7,5 @@ call "tools\Setup.bat"
|
|||||||
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuIII
|
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuIII
|
||||||
del %III_DIR%"\CheatMenuIII.asi" /Q
|
del %III_DIR%"\CheatMenuIII.asi" /Q
|
||||||
del %III_DIR%"\CheatMenuIII.pdb" /Q
|
del %III_DIR%"\CheatMenuIII.pdb" /Q
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y
|
||||||
|
@ -7,5 +7,5 @@ call "tools\Setup.bat"
|
|||||||
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuSA
|
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuSA
|
||||||
del %SA_DIR%"\CheatMenuSA.asi" /Q
|
del %SA_DIR%"\CheatMenuSA.asi" /Q
|
||||||
del %SA_DIR%"\CheatMenuSA.pdb" /Q
|
del %SA_DIR%"\CheatMenuSA.pdb" /Q
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.pdb" %SA_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuSA.pdb" %SA_DIR% /K /D /H /Y
|
||||||
|
@ -7,5 +7,5 @@ call "tools\Setup.bat"
|
|||||||
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuVC
|
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuVC
|
||||||
del %VC_DIR%"\CheatMenuVC.asi" /Q
|
del %VC_DIR%"\CheatMenuVC.asi" /Q
|
||||||
del %VC_DIR%"\CheatMenuVC.pdb" /Q
|
del %VC_DIR%"\CheatMenuVC.pdb" /Q
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y
|
||||||
|
@ -39,6 +39,6 @@ xcopy /s %folderpath% "pack\%~1\" /K /D /H /Y
|
|||||||
xcopy /s "..\resource\common\" "pack\%~1\" /K /D /H /Y
|
xcopy /s "..\resource\common\" "pack\%~1\" /K /D /H /Y
|
||||||
|
|
||||||
@REM Guessing we have 7zip installed already, well I have
|
@REM Guessing we have 7zip installed already, well I have
|
||||||
"C:\Program Files\7-Zip\7z.exe" a -t7z %archivePath% ".\pack\*" -mx=9 -v7M
|
"C:\Program Files\7-Zip\7z.exe" a -t7z %archivePath% ".\pack\*" -mx=9
|
||||||
|
|
||||||
@REM ------------------------------------------------------
|
@REM ------------------------------------------------------
|
||||||
|
@ -8,6 +8,6 @@ MsBuild CheatMenu.sln /property:Configuration=Release
|
|||||||
del %SA_DIR%"\CheatMenuSA.asi" /Q
|
del %SA_DIR%"\CheatMenuSA.asi" /Q
|
||||||
del %VC_DIR%"\CheatMenuVC.asi" /Q
|
del %VC_DIR%"\CheatMenuVC.asi" /Q
|
||||||
del %III_DIR%"\CheatMenuIII.asi" /Q
|
del %III_DIR%"\CheatMenuIII.asi" /Q
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
|
@ -6,4 +6,4 @@ echo[
|
|||||||
call "tools\Setup.bat"
|
call "tools\Setup.bat"
|
||||||
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuIII
|
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuIII
|
||||||
del %III_DIR%"\CheatMenuIII.asi" /Q
|
del %III_DIR%"\CheatMenuIII.asi" /Q
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
|
||||||
|
@ -6,4 +6,4 @@ echo[
|
|||||||
call "tools\Setup.bat"
|
call "tools\Setup.bat"
|
||||||
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuSA
|
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuSA
|
||||||
del %SA_DIR%"\CheatMenuSA.asi" /Q
|
del %SA_DIR%"\CheatMenuSA.asi" /Q
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
|
||||||
|
@ -6,4 +6,4 @@ echo[
|
|||||||
call "tools\Setup.bat"
|
call "tools\Setup.bat"
|
||||||
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuVC
|
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuVC
|
||||||
del %VC_DIR%"\CheatMenuVC.asi" /Q
|
del %VC_DIR%"\CheatMenuVC.asi" /Q
|
||||||
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
|
xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
|
||||||
|
Loading…
Reference in New Issue
Block a user