an-anime-team / an-anime-game-launcher

An Anime Game launcher for Linux with telemetry disabling
https://discord.gg/ck37X6UWBp
GNU General Public License v3.0
1.44k stars 64 forks source link

Deleting wine prefix and re-creating it using proton fails to launch the game #390

Open zakuciael opened 5 days ago

zakuciael commented 5 days ago

Steps to reproduce

  1. Set proton as the wine version
  2. Delete the prefix
  3. Restart the launcher
  4. (The launcher should display the Create prefix button)
  5. Create the prefix using the launcher
  6. Start the game
  7. Should receive an error message No such file or directory (os error 2)

My investigation

So I've done some investigation in the source code and found out that the function WineDrives::map_folder doesn't correctly resolve the path to the proton prefix, instead it always points to the <prefix>/dosdevices/<drive> path while proton uses a pfx sub-folder as its actual prefix, so the path should be resolved to the <prefix>/pfx/dosdevices/<drive>.

This bug only occurs after manually deleting the prefix folder. This is because the launcher setup uses wine by default, which will create the dosdevices folder in the prefix directory allowing for it to work, but this folder will not be created if you use proton as the wine version.

Kenst1092 commented 1 day ago

Can confirm, just deleted my AAGL data and reinstalled for a fresh slate, used the default Wine-TkG-9.10, and game starts right up. I previously tried to use Proton and it gave the same error every time.