Fix crash with gang weapon editor

This commit is contained in:
Grinch_ 2022-06-21 03:08:35 +06:00
parent 6e427c7815
commit da9ab62a27
12 changed files with 22 additions and 22 deletions

View File

@ -228,7 +228,7 @@ Right click disables hotkey."""
VehEngineKey = "Toggle vehicle engine"
VehHealth = "Veh Health: %.f"
VehicleSpawned = "Vehicle spawned"
VehSpeed = "Veh Health: %d"
VehSpeed = "Veh Speed: %d"
VehStartKey = "Vehicle instant start"
VehStopKey = "Vehicle instant start"
Version = "Version"

View File

@ -70,7 +70,7 @@ void MenuThread(void* param)
}
#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();

View File

@ -372,7 +372,7 @@ void Weapon::ShowPage()
ImGui::Spacing();
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();
Ui::DrawImages(m_WeaponData, SetGangWeapon, nullptr,
[](std::string str)

View File

@ -11,9 +11,9 @@ del %VC_DIR%"\CheatMenuVC.asi" /Q
del %VC_DIR%"\CheatMenuVC.pdb" /Q
del %III_DIR%"\CheatMenuIII.asi" /Q
del %III_DIR%"\CheatMenuIII.pdb" /Q
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.pdb" %SA_DIR% /K /D /H /Y
%systemroot%\System32\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\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
xcopy /s "bin\CheatMenuSA.pdb" %SA_DIR% /K /D /H /Y
xcopy /s "bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y
xcopy /s "bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y

View File

@ -7,5 +7,5 @@ call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuIII
del %III_DIR%"\CheatMenuIII.asi" /Q
del %III_DIR%"\CheatMenuIII.pdb" /Q
%systemroot%\System32\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.asi" %III_DIR% /K /D /H /Y
xcopy /s "bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y

View File

@ -7,5 +7,5 @@ call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuSA
del %SA_DIR%"\CheatMenuSA.asi" /Q
del %SA_DIR%"\CheatMenuSA.pdb" /Q
%systemroot%\System32\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.asi" %SA_DIR% /K /D /H /Y
xcopy /s "bin\CheatMenuSA.pdb" %SA_DIR% /K /D /H /Y

View File

@ -7,5 +7,5 @@ call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuVC
del %VC_DIR%"\CheatMenuVC.asi" /Q
del %VC_DIR%"\CheatMenuVC.pdb" /Q
%systemroot%\System32\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.asi" %VC_DIR% /K /D /H /Y
xcopy /s "bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y

View File

@ -39,6 +39,6 @@ xcopy /s %folderpath% "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
"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 ------------------------------------------------------

View File

@ -8,6 +8,6 @@ MsBuild CheatMenu.sln /property:Configuration=Release
del %SA_DIR%"\CheatMenuSA.asi" /Q
del %VC_DIR%"\CheatMenuVC.asi" /Q
del %III_DIR%"\CheatMenuIII.asi" /Q
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
%systemroot%\System32\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\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y

View File

@ -6,4 +6,4 @@ echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuIII
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

View File

@ -6,4 +6,4 @@ echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuSA
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

View File

@ -6,4 +6,4 @@ echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuVC
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