Skip to content

Commit 63aa216

Browse files
committed
Always ensure that the ZZZ LogDir exist
1 parent 4d3682b commit 63aa216

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CollapseLauncher/XAMLs/MainApp/Pages/HomePage.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2208,6 +2208,9 @@ private async void ReadOutputLog()
22082208
{
22092209
var logDir = Path.Combine(CurrentGameProperty._GameVersion.GameDirPath,
22102210
"ZenlessZoneZero_Data\\Persistent\\LogDir\\");
2211+
2212+
_ = Directory.CreateDirectory(logDir); // Always ensure that the LogDir will always be created.
2213+
22112214
var newLog = await FileUtility.WaitForNewFileAsync(logDir, 20000);
22122215
if (!newLog)
22132216
{

0 commit comments

Comments
 (0)