goatcorp / XIVLauncher.Core

Cross-platform version of XIVLauncher, optimized for Steam Deck
GNU General Public License v3.0
82 stars 35 forks source link

Error when trying to launch game from an NTFS partition #145

Closed arieshi255 closed 1 month ago

arieshi255 commented 1 month ago

Currently, it's not possible to launch the game with XIVLauncher if the game path in the settings is set to somewhere on an NTFS partition. This is the error thrown:


2024-03-28 13:09:17.951 +01:00 [ERR] Error during patching
System.IO.DriveNotFoundException: Could not find the drive '/media/hdd2/ffxiv'. The drive might not be ready or might not be mapped.
   at System.IO.DriveInfo.CheckStatfsResultAndThrowIfNecessary(Int32 result)
   at System.IO.DriveInfo.get_AvailableFreeSpace()
   at XIVLauncher.Common.Util.PlatformHelpers.GetDiskFreeSpace(DirectoryInfo info) in C:/goatsoft/xl/XIVLauncher.Common/Util/PlatformHelpers.cs:line 165
   at XIVLauncher.Common.Game.Patch.PatchManager.PatchAsync(FileInfo aria2LogFile, Boolean external) in C:/goatsoft/xl/XIVLauncher.Common/Game/Patch/PatchManager.cs:line 125
   at XIVLauncher.Core.Components.MainPage.MainPage.TryHandlePatchAsync(Repository repository, PatchListEntry[] pendingPatches, String sid) in C:/goatsoft/xl/XIVLauncher.Core/Components/MainPage/MainPage.cs:line 1042
tommadness commented 1 month ago

If you're using the Flatpak, make sure you've given XIVLauncher permission to read/write to that drive. Easiest way to do that is Flatseal.

arieshi255 commented 1 month ago

Ah, can't believe I forgot to try that first. That seems to have fixed it!