Skip to content

Commit

Permalink
[Skyrim AE] Update for SKSE 2.2.0/Game 1.6.629
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyrest committed Sep 18, 2022
1 parent 1fc550e commit ae6d449
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 19 deletions.
8 changes: 4 additions & 4 deletions PriorityMod/PriorityMod.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
Expand Down
23 changes: 10 additions & 13 deletions PriorityMod/PriorityMod.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,20 @@
<ClCompile Include="Targets\**">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Targets\SkyrimSEAE.cpp">
<Filter>Header Files</Filter>
</ClCompile>
<ClCompile Include="Targets\Fallout4.cpp">
<Filter>Header Files</Filter>
<ClCompile Include="Targets\**">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Targets\NewVegas.cpp">
<Filter>Header Files</Filter>
<ClCompile Include="Targets\**">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Targets\Oblivion.cpp">
<Filter>Header Files</Filter>
<ClCompile Include="Targets\**">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Targets\Oldrim.cpp">
<Filter>Header Files</Filter>
<ClCompile Include="Targets\**">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Targets\SkyrimSEAE.hpp">
<Filter>Header Files</Filter>
<ClCompile Include="Targets\**">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
17 changes: 15 additions & 2 deletions PriorityMod/Targets/SkyrimSEAE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ extern "C"
kVersionIndependent_AddressLibraryPostAE = 1 << 0,
// set this if you exclusively use signature matching to find your addresses and have NO HARDCODED ADDRESSES
kVersionIndependent_Signatures = 1 << 1,
// set this if you are using 1.6.629+ compatible structure layout (likely provided by CommonLib/SKSE)
// this also marks you as incompatible with pre-1.6.629. see kVersionIndependentEx_NoStructUse if you have a
// plugin that only does code patches and works across many versions
kVersionIndependent_StructsPost629 = 1 << 2,
};

enum
{
// set this if your plugin either doesn't use any game structures or has put in extraordinary effort
// to work with pre and post 1.6.629 structure layout
kVersionIndependentEx_NoStructUse = 1 << 0,
};

UInt32 dataVersion; // set to kVersion
Expand All @@ -44,9 +55,10 @@ extern "C"
char name[256]; // null-terminated ASCII plugin name

char author[256]; // null-terminated ASCII plugin author name (can be empty)
char supportEmail[256]; // null-terminated ASCII support email address (can be empty)
char supportEmail[252]; // null-terminated ASCII support email address (can be empty)

// version compatibility
UInt32 versionIndependenceEx; // set to one of the kVersionIndependentEx_ enums or zero
UInt32 versionIndependence; // set to one of the kVersionIndependent_ enums or zero
UInt32 compatibleVersions[16]; // zero-terminated list of RUNTIME_VERSION_ defines your plugin is compatible with

Expand Down Expand Up @@ -78,8 +90,9 @@ extern "C"
"Boring3",
"", // no support :)

SKSEPluginVersionData::kVersionIndependentEx_NoStructUse, // version independent
SKSEPluginVersionData::kVersionIndependent_Signatures, // version independent
{MAKE_EXE_VERSION(1, 6, 318),}, // compatible with 1.6.318
{MAKE_EXE_VERSION(1, 6, 318), MAKE_EXE_VERSION(1, 6, 629)}, // compatible with 1.6.318, 1.6.629


0, // works with any version of the script extender. you probably do not need to put anything here
Expand Down

0 comments on commit ae6d449

Please sign in to comment.