retain seeded file locations

This commit is contained in:
Robert McRackan 2021-08-21 09:59:06 -04:00
parent 2be5fd5af3
commit f9df466ad8
2 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,7 @@
<!-- <PublishSingleFile>true</PublishSingleFile> --> <!-- <PublishSingleFile>true</PublishSingleFile> -->
<RuntimeIdentifier>win-x64</RuntimeIdentifier> <RuntimeIdentifier>win-x64</RuntimeIdentifier>
<Version>5.5.1.27</Version> <Version>5.5.1.30</Version>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View File

@ -245,6 +245,10 @@ namespace LibationLauncher
if (!File.Exists(filePaths)) if (!File.Exists(filePaths))
return; return;
var fileLocations = Path.Combine(config.LibationFiles, "FileLocations.json");
if (!File.Exists(fileLocations))
File.Copy(filePaths, fileLocations);
// files to be deleted at the end // files to be deleted at the end
var libhackFilesToDelete = new List<string>(); var libhackFilesToDelete = new List<string>();
// .libhack files => errors // .libhack files => errors