You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Prevent self-copy of analytics_win.dll in Play Mode
This commit refines the logic in `AnalyticsPlayModeSetup.cs` to correctly handle the scenario where `analytics_win.dll` (the source) is already located in the project root (the destination for Play Mode).
Previously, if the DLL was in the project root, the `File.Copy` operation would attempt to copy the file onto itself, resulting in an `IOException`.
Changes in `editor/app/src/AnalyticsPlayModeSetup.cs`:
- Before attempting to copy the DLL for Play Mode:
- The full canonical paths of the source and destination are now compared.
- If the source and destination paths are identical (i.e., the DLL is already in the project root), the copy operation is skipped, and an informational message is logged.
- The file copy (with its try-catch block) only proceeds if the source and destination paths are different.
This prevents an unnecessary `IOException` and ensures the setup is cleaner when the DLL is already correctly placed for Play Mode.
0 commit comments