Skip to content

Commit 057ce0f

Browse files
committed
[-] Win64 目录适配
1 parent 3568b03 commit 057ce0f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Unity/Assets/Scripts/Logic/Framework/Simulator/DumpHelper.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ public DumpHelper(IServiceContainer serviceContainer, World world) : base(servic
1515
#if UNITY_EDITOR
1616
private string dumpPath => Path.Combine(UnityEngine.Application.dataPath, _serviceContainer.GetService<IGameConfigService>().DumpStrPath);
1717
#endif
18-
18+
#if UNITY_STANDALONE_WIN
19+
private string dumpAllPath => "c:\temp\Tutorial\LockstepTutorial\DumpLog";
20+
#else
1921
private string dumpAllPath => "/Users/jiepengtan/Projects/Tutorial/LockstepTutorial/DumpLog";
22+
#endif
2023
private HashHelper _hashHelper;
2124
private StringBuilder _curSb;
2225
public bool enable = true;

Unity/Assets/Scripts/Logic/Framework/Simulator/World.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void StartGame(Msg_G2C_GameStartInfo gameStartInfo, int localPlayerId){
6767
#if UNITY_STANDALONE_OSX
6868
_traceLogPath = $"/tmp/LPDemo/Dump_{localPlayerId}.txt";
6969
#else
70-
_traceLogPath = $"c:/tmp/LPDemo/Dump_{Instance.localPlayerId}.txt";
70+
_traceLogPath = $"c:/tmp/LPDemo/Dump_{localPlayerId}.txt";
7171
#endif
7272
Debug.TraceSavePath = _traceLogPath;
7373

0 commit comments

Comments
 (0)