From 3f9874f4c1f67e3df05b3cb26f563d9b9ff1037b Mon Sep 17 00:00:00 2001 From: LonelyWindG Date: Tue, 21 Mar 2023 14:49:37 +0800 Subject: [PATCH] Add SelfContained.pubxml; Modify playtime display format; --- OctopathTraveler/BasicData.cs | 2 +- .../PublishProfiles/SelfContained.pubxml | 20 +++++++++++++++++++ ...rofile.pubxml => SingleFile-net6.0.pubxml} | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 OctopathTraveler/Properties/PublishProfiles/SelfContained.pubxml rename OctopathTraveler/Properties/PublishProfiles/{FolderProfile.pubxml => SingleFile-net6.0.pubxml} (93%) diff --git a/OctopathTraveler/BasicData.cs b/OctopathTraveler/BasicData.cs index f87e74d..d2dca1a 100644 --- a/OctopathTraveler/BasicData.cs +++ b/OctopathTraveler/BasicData.cs @@ -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; diff --git a/OctopathTraveler/Properties/PublishProfiles/SelfContained.pubxml b/OctopathTraveler/Properties/PublishProfiles/SelfContained.pubxml new file mode 100644 index 0000000..e3a241d --- /dev/null +++ b/OctopathTraveler/Properties/PublishProfiles/SelfContained.pubxml @@ -0,0 +1,20 @@ + + + + + Release + Any CPU + bin\Publish\SelfContained\ + FileSystem + <_TargetId>Folder + net6.0-windows + win-x64 + true + true + false + true + true + + \ No newline at end of file diff --git a/OctopathTraveler/Properties/PublishProfiles/FolderProfile.pubxml b/OctopathTraveler/Properties/PublishProfiles/SingleFile-net6.0.pubxml similarity index 93% rename from OctopathTraveler/Properties/PublishProfiles/FolderProfile.pubxml rename to OctopathTraveler/Properties/PublishProfiles/SingleFile-net6.0.pubxml index 1caab68..90a3a5c 100644 --- a/OctopathTraveler/Properties/PublishProfiles/FolderProfile.pubxml +++ b/OctopathTraveler/Properties/PublishProfiles/SingleFile-net6.0.pubxml @@ -1,4 +1,4 @@ - +