From 7b46b1fdd6fdb008ca288eada0ec7661d5487e69 Mon Sep 17 00:00:00 2001
From: xiangmy21 <90919434+xiangmy21@users.noreply.github.com>
Date: Wed, 8 May 2024 04:04:23 +0800
Subject: [PATCH] refact: thuai7.pb -> thuaipb
---
installer/Manual.md | 2 +-
logic/Client/ViewModel/GeneralViewModel.cs | 4 ++--
playback/Playback/PlaybackConstant.cs | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/installer/Manual.md b/installer/Manual.md
index 6a54fbd9..17b12b1e 100644
--- a/installer/Manual.md
+++ b/installer/Manual.md
@@ -52,7 +52,7 @@
### Playback
-每次调试后会在 `%InstallPath%\logic\Server` 中生成 `114514.thuai7.pb`,在 `Playback File` 中输入 `114514.thuai7.pb`,点击 `保存` 和 `启动`。也可以对回放文件进行改名,输入对应文件名即可。
+每次调试后会在 `%InstallPath%\logic\Server` 中生成 `114514.thuaipb`,在 `Playback File` 中输入 `114514.thuaipb`,点击 `保存` 和 `启动`。也可以对回放文件进行改名,输入对应文件名即可。
## Login
diff --git a/logic/Client/ViewModel/GeneralViewModel.cs b/logic/Client/ViewModel/GeneralViewModel.cs
index 22e830b9..01e7132f 100644
--- a/logic/Client/ViewModel/GeneralViewModel.cs
+++ b/logic/Client/ViewModel/GeneralViewModel.cs
@@ -1078,7 +1078,7 @@ Show the error message
myLogger.LogInfo(String.Format("ip:{0}, port:{1}, playerid:{2}, teamid:{3}, shiptype:{4}, playbackfile:{5}, playbackspeed:{6}", ip, port, playerID, teamID, shipTypeID, playbackFile, playbackSpeed));
- //Playback("E:\\program\\Project\\THUAI7\\logic\\Client\\114514.thuai7.pb", 2.0);
+ //Playback("E:\\program\\Project\\THUAI7\\logic\\Client\\114514.thuaipb", 2.0);
if (playbackFile.Length == 0)
{
try
@@ -1129,7 +1129,7 @@ Show the error message
// "1"
//});
- //Playback("E:\\program\\Project\\THUAI7\\logic\\Server\\bin\\Debug\\net8.0\\114514.thuai7.pb", 1);
+ //Playback("E:\\program\\Project\\THUAI7\\logic\\Server\\bin\\Debug\\net8.0\\114514.thuaipb", 1);
timerViewModel = Dispatcher.CreateTimer();
timerViewModel.Interval = TimeSpan.FromMilliseconds(50);
diff --git a/playback/Playback/PlaybackConstant.cs b/playback/Playback/PlaybackConstant.cs
index e514ee0c..8e997465 100755
--- a/playback/Playback/PlaybackConstant.cs
+++ b/playback/Playback/PlaybackConstant.cs
@@ -8,7 +8,7 @@ public static class Constants
///
/// 回放文件扩展名
///
- public static readonly string FileExtension = $".thuai{Version}.pb";
+ public static readonly string FileExtension = $".thuaipb";
///
/// 回放文件头
///