Skip to content

Commit 4773c75

Browse files
committed
Add Spore ModAPI Legacy project
1 parent 1661afa commit 4773c75

File tree

8 files changed

+198
-0
lines changed

8 files changed

+198
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
################################################################################
44

55
/dll
6+
/legacydll
67
/EASTL-3.02.01/out/build/x64-Debug
78
/lib
89
.vs
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
</ItemGroup>
13+
<PropertyGroup Label="Globals">
14+
<VCProjectVersion>17.0</VCProjectVersion>
15+
<Keyword>Win32Proj</Keyword>
16+
<ProjectGuid>{50012307-d3e2-46dc-985d-31c5b3ac86c3}</ProjectGuid>
17+
<RootNamespace>SporeModAPILegacy</RootNamespace>
18+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
19+
</PropertyGroup>
20+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
21+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
22+
<ConfigurationType>DynamicLibrary</ConfigurationType>
23+
<UseDebugLibraries>true</UseDebugLibraries>
24+
<PlatformToolset>v143</PlatformToolset>
25+
<CharacterSet>Unicode</CharacterSet>
26+
</PropertyGroup>
27+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
28+
<ConfigurationType>DynamicLibrary</ConfigurationType>
29+
<UseDebugLibraries>false</UseDebugLibraries>
30+
<PlatformToolset>v143</PlatformToolset>
31+
<WholeProgramOptimization>true</WholeProgramOptimization>
32+
<CharacterSet>Unicode</CharacterSet>
33+
</PropertyGroup>
34+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
35+
<ImportGroup Label="ExtensionSettings">
36+
</ImportGroup>
37+
<ImportGroup Label="Shared">
38+
</ImportGroup>
39+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
40+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
41+
</ImportGroup>
42+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
43+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
44+
</ImportGroup>
45+
<PropertyGroup Label="UserMacros" />
46+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
47+
<OutDir>..\legacydll\$(Configuration)\</OutDir>
48+
<IntDir>..\legacydll\</IntDir>
49+
</PropertyGroup>
50+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
51+
<OutDir>..\legacydll\$(Configuration)\</OutDir>
52+
<IntDir>..\legacydll\</IntDir>
53+
</PropertyGroup>
54+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
55+
<ClCompile>
56+
<WarningLevel>Level3</WarningLevel>
57+
<SDLCheck>true</SDLCheck>
58+
<PreprocessorDefinitions>WIN32;_DEBUG;SPOREMODAPILEGACY_EXPORTS;_WINDOWS;_USRDLL;SDK_BUILD_VER=$(SDK_BUILD_VER);%(PreprocessorDefinitions)</PreprocessorDefinitions>
59+
<ConformanceMode>false</ConformanceMode>
60+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
61+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
62+
<AdditionalIncludeDirectories>..\Spore ModAPI\;..\EASTL-3.02.01\include;..\EASTL-3.02.01\test\packages\EABase\include\Common;..\Detours\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
63+
</ClCompile>
64+
<Link>
65+
<SubSystem>Windows</SubSystem>
66+
<GenerateDebugInformation>true</GenerateDebugInformation>
67+
<EnableUAC>false</EnableUAC>
68+
<ModuleDefinitionFile>dllmain.def</ModuleDefinitionFile>
69+
<AdditionalDependencies>..\dll\$(Configuration)\SporeModAPI.lib;%(AdditionalDependencies)</AdditionalDependencies>
70+
</Link>
71+
<ResourceCompile>
72+
<PreprocessorDefinitions>SDK_BUILD_VER=$(SDK_BUILD_VER);%(PreprocessorDefinitions)</PreprocessorDefinitions>
73+
</ResourceCompile>
74+
</ItemDefinitionGroup>
75+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
76+
<ClCompile>
77+
<WarningLevel>Level3</WarningLevel>
78+
<FunctionLevelLinking>true</FunctionLevelLinking>
79+
<IntrinsicFunctions>true</IntrinsicFunctions>
80+
<SDLCheck>true</SDLCheck>
81+
<PreprocessorDefinitions>WIN32;NDEBUG;SPOREMODAPILEGACY_EXPORTS;_WINDOWS;_USRDLL;SDK_BUILD_VER=$(SDK_BUILD_VER);%(PreprocessorDefinitions)</PreprocessorDefinitions>
82+
<ConformanceMode>false</ConformanceMode>
83+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
84+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
85+
<AdditionalIncludeDirectories>..\Spore ModAPI\;..\EASTL-3.02.01\include;..\EASTL-3.02.01\test\packages\EABase\include\Common;..\Detours\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
86+
</ClCompile>
87+
<Link>
88+
<SubSystem>Windows</SubSystem>
89+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
90+
<OptimizeReferences>true</OptimizeReferences>
91+
<GenerateDebugInformation>true</GenerateDebugInformation>
92+
<EnableUAC>false</EnableUAC>
93+
<ModuleDefinitionFile>dllmain.def</ModuleDefinitionFile>
94+
<AdditionalDependencies>..\dll\$(Configuration)\SporeModAPI.lib;%(AdditionalDependencies)</AdditionalDependencies>
95+
</Link>
96+
<ResourceCompile>
97+
<PreprocessorDefinitions>SDK_BUILD_VER=$(SDK_BUILD_VER);%(PreprocessorDefinitions)</PreprocessorDefinitions>
98+
</ResourceCompile>
99+
</ItemDefinitionGroup>
100+
<ItemGroup>
101+
<None Include="dllmain.def" />
102+
</ItemGroup>
103+
<ItemGroup>
104+
<ClCompile Include="dllmain.cpp" />
105+
</ItemGroup>
106+
<ItemGroup>
107+
<ClInclude Include="resource.h" />
108+
</ItemGroup>
109+
<ItemGroup>
110+
<ResourceCompile Include="VersionInfo.rc" />
111+
</ItemGroup>
112+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
113+
<ImportGroup Label="ExtensionTargets">
114+
</ImportGroup>
115+
<Target Name="BuildLegacyDlls">
116+
<Message Text="Compiling $(Config) DLL, build $(BuildVer)..." />
117+
<Exec Command="msbuild.exe /p:Configuration=$(Config) /p:Platform=$(Platform) /p:SDK_BUILD_VER=$(BuildVer)" />
118+
<Copy SourceFiles="../legacydll/$(Config)/Spore ModAPI Legacy.dll" DestinationFiles="../legacydll/$(Config)/SporeModAPI-steam_patched.dll" />
119+
<Copy SourceFiles="../legacydll/$(Config)/Spore ModAPI Legacy.dll" DestinationFiles="../legacydll/$(Config)/SporeModAPI-disk.dll" />
120+
</Target>
121+
</Project>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<None Include="dllmain.def">
19+
<Filter>Source Files</Filter>
20+
</None>
21+
</ItemGroup>
22+
<ItemGroup>
23+
<ClCompile Include="dllmain.cpp">
24+
<Filter>Source Files</Filter>
25+
</ClCompile>
26+
</ItemGroup>
27+
<ItemGroup>
28+
<ClInclude Include="resource.h">
29+
<Filter>Header Files</Filter>
30+
</ClInclude>
31+
</ItemGroup>
32+
<ItemGroup>
33+
<ResourceCompile Include="Resource.rc">
34+
<Filter>Resource Files</Filter>
35+
</ResourceCompile>
36+
</ItemGroup>
37+
</Project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup />
4+
</Project>

Spore ModAPI Legacy/VersionInfo.rc

4.67 KB
Binary file not shown.

Spore ModAPI Legacy/dllmain.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/****************************************************************************
2+
* Copyright (C) 2024 Rosalie Wanders
3+
*
4+
* This file is part of Spore ModAPI.
5+
*
6+
* Spore ModAPI is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
****************************************************************************/

Spore ModAPI Legacy/dllmain.def

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
LIBRARY "Spore ModAPI Legacy.dll"
2+
EXPORTS
3+
AddInitFunction @1

Spore ModAPI Legacy/resource.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//{{NO_DEPENDENCIES}}
2+
// Microsoft Visual C++ generated include file.
3+
// Used by Resource.rc
4+
5+
// Next default values for new objects
6+
//
7+
#ifdef APSTUDIO_INVOKED
8+
#ifndef APSTUDIO_READONLY_SYMBOLS
9+
#define _APS_NEXT_RESOURCE_VALUE 101
10+
#define _APS_NEXT_COMMAND_VALUE 40001
11+
#define _APS_NEXT_CONTROL_VALUE 1001
12+
#define _APS_NEXT_SYMED_VALUE 101
13+
#endif
14+
#endif

0 commit comments

Comments
 (0)