mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 16:50: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:
parent
311acf54cd
commit
5a828f9bb7
@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<Version>1.0.0.0</Version>
|
||||
<TargetFramework>net471</TargetFramework>
|
||||
<AssemblyName>aki-common</AssemblyName>
|
||||
<AssemblyName>spt-common</AssemblyName>
|
||||
<Configuration>Release</Configuration>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net471</TargetFramework>
|
||||
<AssemblyName>aki-core</AssemblyName>
|
||||
<AssemblyName>spt-core</AssemblyName>
|
||||
<Configuration>Release</Configuration>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net471</TargetFramework>
|
||||
<AssemblyName>aki-custom</AssemblyName>
|
||||
<AssemblyName>spt-custom</AssemblyName>
|
||||
<Configuration>Release</Configuration>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net471</TargetFramework>
|
||||
<AssemblyName>aki-debugging</AssemblyName>
|
||||
<AssemblyName>spt-debugging</AssemblyName>
|
||||
<Configuration>Release</Configuration>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net471</TargetFramework>
|
||||
<AssemblyName>aki-prepatch</AssemblyName>
|
||||
<AssemblyName>spt-prepatch</AssemblyName>
|
||||
<Configuration>Release</Configuration>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -86,14 +86,14 @@ namespace Aki.PrePatch
|
||||
}
|
||||
|
||||
// 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();
|
||||
|
||||
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);
|
||||
return false;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net471</TargetFramework>
|
||||
<Configuration>Release</Configuration>
|
||||
<AssemblyName>aki-reflection</AssemblyName>
|
||||
<AssemblyName>spt-reflection</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net471</TargetFramework>
|
||||
<AssemblyName>aki-singleplayer</AssemblyName>
|
||||
<AssemblyName>spt-singleplayer</AssemblyName>
|
||||
<Configuration>Release</Configuration>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -16,13 +16,13 @@ foreach ($folder in $foldersToCreate) {
|
||||
}
|
||||
|
||||
# Move DLLs from project's bin-release folder to the build folder
|
||||
Copy-Item "$projReleaseFolder\aki-common.dll" -Destination "$bepinexSptFolder"
|
||||
Copy-Item "$projReleaseFolder\aki-reflection.dll" -Destination "$bepinexSptFolder"
|
||||
Copy-Item "$projReleaseFolder\aki-prepatch.dll" -Destination "$bepinexPatchFolder"
|
||||
Copy-Item "$projReleaseFolder\aki-core.dll" -Destination "$bepinexSptFolder"
|
||||
Copy-Item "$projReleaseFolder\aki-custom.dll" -Destination "$bepinexSptFolder"
|
||||
Copy-Item "$projReleaseFolder\aki-debugging.dll" -Destination "$bepinexSptFolder"
|
||||
Copy-Item "$projReleaseFolder\aki-singleplayer.dll" -Destination "$bepinexSptFolder"
|
||||
Copy-Item "$projReleaseFolder\spt-common.dll" -Destination "$bepinexSptFolder"
|
||||
Copy-Item "$projReleaseFolder\spt-reflection.dll" -Destination "$bepinexSptFolder"
|
||||
Copy-Item "$projReleaseFolder\spt-prepatch.dll" -Destination "$bepinexPatchFolder"
|
||||
Copy-Item "$projReleaseFolder\spt-core.dll" -Destination "$bepinexSptFolder"
|
||||
Copy-Item "$projReleaseFolder\spt-custom.dll" -Destination "$bepinexSptFolder"
|
||||
Copy-Item "$projReleaseFolder\spt-debugging.dll" -Destination "$bepinexSptFolder"
|
||||
Copy-Item "$projReleaseFolder\spt-singleplayer.dll" -Destination "$bepinexSptFolder"
|
||||
# If any new DLLs need to be copied, add here
|
||||
|
||||
# Write the contents of the license file to a txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user