Skip to content

Commit 8dd1c3c

Browse files
Revert "chore: remove comment"
This reverts commit 2d241c8.
1 parent a57cd86 commit 8dd1c3c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/Packages/Passport/Runtime/Scripts/Private/Helpers/WindowsDeepLink.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,18 @@ private void HandleDeeplink()
405405
// This prevents race condition where Unity deletes the file
406406
// while Windows is still trying to execute it
407407
var cmdPath = GetGameExecutablePath(".cmd");
408+
// Commented out to prevent race condition
409+
// if (File.Exists(cmdPath))
410+
// {
411+
// try
412+
// {
413+
// File.Delete(cmdPath);
414+
// }
415+
// catch (Exception ex)
416+
// {
417+
// PassportLogger.Warn($"Failed to delete script: {ex.Message}");
418+
// }
419+
// }
408420

409421
// Clean up instance
410422
Destroy(gameObject);
@@ -413,3 +425,4 @@ private void HandleDeeplink()
413425
}
414426
}
415427
#endif
428+

0 commit comments

Comments
 (0)