Skip to content

Commit

Permalink
Add SelfContained.pubxml; Modify playtime display format;
Browse files Browse the repository at this point in the history
  • Loading branch information
LonelyWindG committed Mar 21, 2023
1 parent 50f9722 commit 3f9874f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OctopathTraveler/BasicData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public BasicData()

gvas.AppendValue(Util.FindFirstAddress("PlayTime", soltDataAddress));
var playTime = new TimeSpan(gvas.ReadNumber("PlayTime") * TimeSpan.TicksPerSecond);
PlayTime = $"{(int)playTime.TotalHours}:{playTime.Minutes}:{playTime.Seconds}";
PlayTime = $"{(int)playTime.TotalHours}:{playTime.Minutes:D2}:{playTime.Seconds:D2}";

gvas.AppendValue(Util.FindFirstAddress("Money_", 0));
_moneyAddress = gvas.Key("Money").Address;
Expand Down
20 changes: 20 additions & 0 deletions OctopathTraveler/Properties/PublishProfiles/SelfContained.pubxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>bin\Publish\SelfContained\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<_TargetId>Folder</_TargetId>
<TargetFramework>net6.0-windows</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
<PublishReadyToRun>false</PublishReadyToRun>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
Expand Down

0 comments on commit 3f9874f

Please sign in to comment.