Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Commit 2b53fbc

Browse files
committed
Update to handle TPS version update
1 parent 41290f4 commit 2b53fbc

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

PythonSDK.vcxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@
167167
</LinkIncremental>
168168
<TargetName>ddraw</TargetName>
169169
<PreBuildEventUseInBuild>false</PreBuildEventUseInBuild>
170-
<IncludePath>$(PYTHONPATH)\include;$(IncludePath);$(VC_SourcePath)\src\include;</IncludePath>
171-
<LibraryPath>$(PYTHONPATH)\libs;$(LibraryPath)</LibraryPath>
172-
<OutDir>C:\Program Files (x86)\Steam\steamapps\common\Borderlands 2\Binaries\Win32\</OutDir>
170+
<IncludePath>$(PYTHONPATH_X86)\include;$(IncludePath);$(VC_SourcePath)\src\include;</IncludePath>
171+
<LibraryPath>$(PYTHONPATH_X86)\libs;$(LibraryPath)</LibraryPath>
172+
<OutDir>D:\Games\SteamLibrary\steamapps\common\BorderlandsPreSequel\Binaries\Win32\</OutDir>
173173
<IntDir>build\$(Configuration)\</IntDir>
174174
<SourcePath>$(VC_SourcePath)\src;</SourcePath>
175175
</PropertyGroup>

src/include/Exceptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define EXCEPTIONS_H
44

55
#include <string>
6-
#include <stdexcpt.h>
6+
#include <stdexcept>
77

88
class FatalSDKException : public std::runtime_error
99
{

src/include/UnrealEngine/Core/Core_classes.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ class UStructProperty : public UProperty
10121012
public:
10131013
UScriptStruct* Struct_DONOTUSE;
10141014
UScriptStruct *GetStruct() {
1015-
if (UnrealSDK::EngineVersion <= 8630)
1015+
if (UnrealSDK::EngineVersion <= 8631)
10161016
return ((UScriptStruct **)(((char *)this) + 0x74))[0];
10171017
else
10181018
return ((UScriptStruct **)(((char *)this) + 0x80))[0];
@@ -1028,7 +1028,7 @@ class UObjectProperty : public UProperty
10281028
public:
10291029
UObject* Object_DONOTUSE;
10301030
UObject *GetObject() {
1031-
if (UnrealSDK::EngineVersion <= 8630)
1031+
if (UnrealSDK::EngineVersion <= 8631)
10321032
return ((UObject **)(((char *)this) + 0x74))[0];
10331033
else
10341034
return ((UObject **)(((char *)this) + 0x80))[0];
@@ -1071,7 +1071,7 @@ class UInterfaceProperty : public UProperty
10711071
public:
10721072
UClass *InterfaceClass_DONOTUSE;
10731073
UClass *GetInterfaceClass() {
1074-
if (UnrealSDK::EngineVersion <= 8630)
1074+
if (UnrealSDK::EngineVersion <= 8631)
10751075
return ((UClass **)(((char *)this) + 0x74))[0];
10761076
else
10771077
return ((UClass **)(((char *)this) + 0x80))[0];
@@ -1115,7 +1115,7 @@ class UBoolProperty : public UProperty
11151115
public:
11161116
unsigned int Mask_DONOTUSE;
11171117
unsigned int GetMask() {
1118-
if (UnrealSDK::EngineVersion <= 8630)
1118+
if (UnrealSDK::EngineVersion <= 8631)
11191119
return ((unsigned int *)(((char *)this) + 0x74))[0];
11201120
else
11211121
return ((unsigned int *)(((char *)this) + 0x80))[0];
@@ -1128,7 +1128,7 @@ class UArrayProperty : public UProperty
11281128
public:
11291129
UProperty *Inner_DONOTUSE;
11301130
UProperty *GetInner() {
1131-
if (UnrealSDK::EngineVersion <= 8630)
1131+
if (UnrealSDK::EngineVersion <= 8631)
11321132
return ((UProperty **)(((char *)this) + 0x74))[0];
11331133
else
11341134
return ((UProperty **)(((char *)this) + 0x80))[0];

src/include/gamedefines.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ struct FName
7878
public:
7979
FName(const std::string& FindName)
8080
{
81-
if (UnrealSDK::EngineVersion <= 8630)
81+
if (UnrealSDK::EngineVersion <= 8631)
8282
((UnrealSDK::tFNameInitOld)(UnrealSDK::pFNameInit))(this, (wchar_t *)Util::Widen(FindName).c_str(), 0, 1, 1, 0);
8383
else
8484
((UnrealSDK::tFNameInitNew)(UnrealSDK::pFNameInit))(this, (wchar_t *)Util::Widen(FindName).c_str(), 0, 1, 1);
@@ -87,7 +87,7 @@ struct FName
8787

8888
FName(const std::string& FindName, int number)
8989
{
90-
if (UnrealSDK::EngineVersion <= 8630)
90+
if (UnrealSDK::EngineVersion <= 8631)
9191
((UnrealSDK::tFNameInitOld)(UnrealSDK::pFNameInit))(this, (wchar_t *)Util::Widen(FindName).c_str(), number, 1, 1,
9292
0);
9393
else

0 commit comments

Comments
 (0)