0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 17:30:43 -05:00

Further adjusted dll names for consistency + updated dll existence check to work with new names + minor error message spacing fix

This commit is contained in:
Dev 2024-05-20 13:45:00 +01:00
parent 311acf54cd
commit 5a828f9bb7
9 changed files with 18 additions and 18 deletions

View File

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<Version>1.0.0.0</Version> <Version>1.0.0.0</Version>
<TargetFramework>net471</TargetFramework> <TargetFramework>net471</TargetFramework>
<AssemblyName>aki-common</AssemblyName> <AssemblyName>spt-common</AssemblyName>
<Configuration>Release</Configuration> <Configuration>Release</Configuration>
</PropertyGroup> </PropertyGroup>

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net471</TargetFramework> <TargetFramework>net471</TargetFramework>
<AssemblyName>aki-core</AssemblyName> <AssemblyName>spt-core</AssemblyName>
<Configuration>Release</Configuration> <Configuration>Release</Configuration>
</PropertyGroup> </PropertyGroup>

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net471</TargetFramework> <TargetFramework>net471</TargetFramework>
<AssemblyName>aki-custom</AssemblyName> <AssemblyName>spt-custom</AssemblyName>
<Configuration>Release</Configuration> <Configuration>Release</Configuration>
</PropertyGroup> </PropertyGroup>

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net471</TargetFramework> <TargetFramework>net471</TargetFramework>
<AssemblyName>aki-debugging</AssemblyName> <AssemblyName>spt-debugging</AssemblyName>
<Configuration>Release</Configuration> <Configuration>Release</Configuration>
</PropertyGroup> </PropertyGroup>

View File

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net471</TargetFramework> <TargetFramework>net471</TargetFramework>
<AssemblyName>aki-prepatch</AssemblyName> <AssemblyName>spt-prepatch</AssemblyName>
<Configuration>Release</Configuration> <Configuration>Release</Configuration>
</PropertyGroup> </PropertyGroup>

View File

@ -86,14 +86,14 @@ namespace Aki.PrePatch
} }
// Validate that the folder exists, and contains our plugins // Validate that the folder exists, and contains our plugins
string[] sptPlugins = new string[] { "aki-core.dll", "aki-custom.dll", "aki-singleplayer.dll" }; string[] sptPlugins = new string[] { "spt-common.dll", "spt-reflection.dll", "spt-core.dll", "spt-custom.dll", "spt-singleplayer.dll" };
string[] foundPlugins = Directory.GetFiles(sptPluginPath).Select(x => Path.GetFileName(x)).ToArray(); string[] foundPlugins = Directory.GetFiles(sptPluginPath).Select(x => Path.GetFileName(x)).ToArray();
foreach (string plugin in sptPlugins) foreach (string pluginNameAndSuffix in sptPlugins)
{ {
if (!foundPlugins.Contains(plugin)) if (!foundPlugins.Contains(pluginNameAndSuffix))
{ {
message = $"Required SPT plugins missing from '{sptPluginPath}'{exitMessage}"; message = $"Required SPT plugin: {pluginNameAndSuffix} missing from '{sptPluginPath}' {exitMessage}";
logger.LogError(message); logger.LogError(message);
return false; return false;
} }

View File

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net471</TargetFramework> <TargetFramework>net471</TargetFramework>
<Configuration>Release</Configuration> <Configuration>Release</Configuration>
<AssemblyName>aki-reflection</AssemblyName> <AssemblyName>spt-reflection</AssemblyName>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net471</TargetFramework> <TargetFramework>net471</TargetFramework>
<AssemblyName>aki-singleplayer</AssemblyName> <AssemblyName>spt-singleplayer</AssemblyName>
<Configuration>Release</Configuration> <Configuration>Release</Configuration>
</PropertyGroup> </PropertyGroup>

View File

@ -16,13 +16,13 @@ foreach ($folder in $foldersToCreate) {
} }
# Move DLLs from project's bin-release folder to the build folder # Move DLLs from project's bin-release folder to the build folder
Copy-Item "$projReleaseFolder\aki-common.dll" -Destination "$bepinexSptFolder" Copy-Item "$projReleaseFolder\spt-common.dll" -Destination "$bepinexSptFolder"
Copy-Item "$projReleaseFolder\aki-reflection.dll" -Destination "$bepinexSptFolder" Copy-Item "$projReleaseFolder\spt-reflection.dll" -Destination "$bepinexSptFolder"
Copy-Item "$projReleaseFolder\aki-prepatch.dll" -Destination "$bepinexPatchFolder" Copy-Item "$projReleaseFolder\spt-prepatch.dll" -Destination "$bepinexPatchFolder"
Copy-Item "$projReleaseFolder\aki-core.dll" -Destination "$bepinexSptFolder" Copy-Item "$projReleaseFolder\spt-core.dll" -Destination "$bepinexSptFolder"
Copy-Item "$projReleaseFolder\aki-custom.dll" -Destination "$bepinexSptFolder" Copy-Item "$projReleaseFolder\spt-custom.dll" -Destination "$bepinexSptFolder"
Copy-Item "$projReleaseFolder\aki-debugging.dll" -Destination "$bepinexSptFolder" Copy-Item "$projReleaseFolder\spt-debugging.dll" -Destination "$bepinexSptFolder"
Copy-Item "$projReleaseFolder\aki-singleplayer.dll" -Destination "$bepinexSptFolder" Copy-Item "$projReleaseFolder\spt-singleplayer.dll" -Destination "$bepinexSptFolder"
# If any new DLLs need to be copied, add here # If any new DLLs need to be copied, add here
# Write the contents of the license file to a txt # Write the contents of the license file to a txt