Skip to content

Commit 30ce5ce

Browse files
committed
Added pybass3 module and some bass releated opcodes
1 parent 2c69604 commit 30ce5ce

34 files changed

+4349
-2
lines changed

PyLoader/PyLoader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "sdk/PyMemory.h"
1111
#include "sdk/PyScript.h"
1212
#include "sdk/PyInternal.h"
13+
#include "sdk/PyBass.h"
1314
#include "PyEvents.h"
1415

1516
std::ofstream flog("PyLoader.log");
@@ -109,6 +110,7 @@ void PyLoader::PluginThread(void* param)
109110

110111
dir = FindFirstFileA("./PyLoader/*.py", &file_data);
111112

113+
PyImport_AppendInittab("bass", &PyBass::Init);
112114
PyImport_AppendInittab("common", &PyCommon::Init);
113115
PyImport_AppendInittab("hud", &PyCHud::Init);
114116
PyImport_AppendInittab("memory", &PyMemory::Init);

PyLoader/PyLoader.vcxproj

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@
7070
<OptimizeReferences>true</OptimizeReferences>
7171
<GenerateDebugInformation>No</GenerateDebugInformation>
7272
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
73-
<AdditionalLibraryDirectories>$(PLUGIN_SDK_DIR)\output\lib\;C:\Program Files (x86)\Python38-32\libs;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
74-
<AdditionalDependencies>plugin.lib;Urlmon.lib;%(AdditionalDependencies)</AdditionalDependencies>
73+
<AdditionalLibraryDirectories>$(PLUGIN_SDK_DIR)\output\lib\;C:\Program Files (x86)\Python38-32\libs;$(ProjectDir)\depend;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
74+
<AdditionalDependencies>bass.lib;plugin.lib;Urlmon.lib;%(AdditionalDependencies)</AdditionalDependencies>
7575
<SubSystem>Windows</SubSystem>
76+
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
7677
</Link>
7778
</ItemDefinitionGroup>
7879
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='GTASA zDebug|Win32'">
@@ -96,6 +97,7 @@
9697
<ItemGroup>
9798
<ClCompile Include="depend\jute.cpp" />
9899
<ClCompile Include="DllMain.cpp" />
100+
<ClCompile Include="sdk\PyBass.cpp" />
99101
<ClCompile Include="PyEvents.cpp" />
100102
<ClCompile Include="sdk\PyInternal.cpp" />
101103
<ClCompile Include="PyLoader.cpp" />
@@ -107,7 +109,9 @@
107109
<ClCompile Include="sdk\PyOpcodes.cpp" />
108110
</ItemGroup>
109111
<ItemGroup>
112+
<ClInclude Include="depend\bass.h" />
110113
<ClInclude Include="depend\jute.h" />
114+
<ClInclude Include="sdk\PyBass.h" />
111115
<ClInclude Include="PyEvents.h" />
112116
<ClInclude Include="PyEventsInternal.h" />
113117
<ClInclude Include="sdk\PyInternal.h" />
@@ -121,6 +125,9 @@
121125
<ClInclude Include="sdk\PyMemory.h" />
122126
<ClInclude Include="sdk\PyOpcodes.h" />
123127
</ItemGroup>
128+
<ItemGroup>
129+
<Library Include="depend\bass.lib" />
130+
</ItemGroup>
124131
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
125132
<ImportGroup Label="ExtensionTargets">
126133
</ImportGroup>

PyLoader/PyLoader.vcxproj.filters

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<ClCompile Include="sdk\PyInternal.cpp" />
1313
<ClCompile Include="PyEvents.cpp" />
1414
<ClCompile Include="depend\jute.cpp" />
15+
<ClCompile Include="sdk\PyBass.cpp" />
1516
</ItemGroup>
1617
<ItemGroup>
1718
<ClInclude Include="pch.h" />
@@ -27,5 +28,10 @@
2728
<ClInclude Include="PyEvents.h" />
2829
<ClInclude Include="depend\jute.h" />
2930
<ClInclude Include="PyEventsInternal.h" />
31+
<ClInclude Include="sdk\PyBass.h" />
32+
<ClInclude Include="depend\bass.h" />
33+
</ItemGroup>
34+
<ItemGroup>
35+
<Library Include="depend\bass.lib" />
3036
</ItemGroup>
3137
</Project>

0 commit comments

Comments
 (0)