Skip to content

Commit

Permalink
Fixes & version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
user-grinch committed Nov 15, 2021
1 parent 1c3f7a7 commit 599d597
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Debug.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
premake5.exe vs2019
cd build
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\VsDevCmd.bat"
call "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\Tools\VsDevCmd.bat"
MsBuild PyLoader.sln /property:Configuration=Debug
cd ..
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This is a **.asi** plugin that allows writing custom Python scripts for GTA SanA
## Installation

1. You need gta_sa v1.0 US version of the game.
2. Install [Visual C++ Redistributable 2019 x86](https://aka.ms/vs/16/release/vc_redist.x86.exe) and [asi loader](https://www.gtagarage.com/mods/show.php?id=21709)
2. Install [Visual C++ Redistributable 2022 x86](https://aka.ms/vs/17/release/vc_redist.x86.exe) and [asi loader](https://www.gtagarage.com/mods/show.php?id=21709)
3. Download [PyLoader.7z](https://github.com/user-grinch/PyLoaderSA/releases) and extract everything in the game directory.

## Credits
Expand Down
4 changes: 2 additions & 2 deletions Release.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
premake5.exe vs2019
premake5.exe vs2022
cd build
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\VsDevCmd.bat"
call "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\Tools\VsDevCmd.bat"
MsBuild PyLoader.sln /property:Configuration=Release
cd ..
Binary file modified premake5.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion src/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@

#include <plugin.h>

constexpr const char* gPluginVer = "0.08";
constexpr const char* gPluginVer = "0.09";
extern size_t gGameTicks;
extern std::ofstream gLog;
2 changes: 1 addition & 1 deletion src/sdk/PyAddition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ PyObject* PyAddition::GetLargestGangIdInZone(PyObject* self, PyObject* args)
CVector pos = FindPlayerPed()->GetPosition();
CZone* zone = new CZone();

CZoneExtraInfo* zone_info = CTheZones::GetZoneInfo(&pos, &zone);
CZoneInfo* zone_info = CTheZones::GetZoneInfo(&pos, &zone);
int density = zone_info->m_nGangDensity[i];

if (density > max_density)
Expand Down

0 comments on commit 599d597

Please sign in to comment.