1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-12-04 18:43:10 +01:00

Compare commits

..

4 Commits

Author SHA1 Message Date
ncblakely
70827d6785
Merge pull request #16 from ncblakely/users/tos/copyconfig
Copy config file to image folder.
2022-09-10 23:23:45 -07:00
Nick Blakely
4e9e019234 Copy config file to image folder. 2022-09-10 23:23:29 -07:00
ncblakely
4e81ab7521
Merge pull request #15 from ncblakely/users/tos/configwrite
Ensure config file is overwritten when saved.
2022-09-10 23:02:00 -07:00
Nick Blakely
929801b242 Ensure config file is overwritten when saved. 2022-09-10 23:01:42 -07:00
2 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,7 @@
Directory.CreateDirectory(Path.GetDirectoryName(userConfigFilePath));
using (var file = File.OpenWrite(userConfigFilePath))
using (var streamWriter = new StreamWriter(file))
using (var streamWriter = new StreamWriter(userConfigFilePath, append: false))
{
string serializedConfig = JsonConvert.SerializeObject(this.userConfig, Formatting.Indented);
streamWriter.Write(serializedConfig);

View File

@ -186,6 +186,7 @@
<Target Name="PostBuild" AfterTargets="Build">
<Copy Condition="$(GameImagePath) != ''" SourceFiles="$(TargetPath)" DestinationFolder="$(GameImagePath)" SkipUnchangedFiles="true" />
<Copy Condition="$(GameImagePath) != ''" SourceFiles="@(ReferenceCopyLocalPaths)" DestinationFolder="$(GameImagePath)" SkipUnchangedFiles="true" />
<Copy Condition="$(GameImagePath) != ''" SourceFiles="@(_ThisProjectItemsToCopyToOutputDirectory)" DestinationFolder="$(GameImagePath)" SkipUnchangedFiles="true" />
<CallTarget Condition="$(GIANTS_PATH) != ''" Targets="CopyTargetToGameFolder" />
</Target>
</Project>