UnleashedRecomp icon indicating copy to clipboard operation
UnleashedRecomp copied to clipboard

Running the game through the Windows Start Menu search bar causes multiple issues.

Open DarioSamo opened this issue 11 months ago • 4 comments

NOTICE

Please run the game directly by double clicking on it or making a shortcut instead until this issue is resolved.

PROBLEM

The current working directory is set to C:/Windows/System32.

This leads to issues such as:

  • The game trying and failing to install itself to System32.
  • D3D12 Agility SDK DLLs being ignored.
  • The game actually being able to install itself to System32 if you force it to run as Administrator.

DarioSamo avatar Mar 09 '25 17:03 DarioSamo

I've noticed this issue too, although in my case with the game already installed, it boots to the installation wizard again

d-anez3 avatar Mar 09 '25 17:03 d-anez3

That happens because the GamePath() function is set to return ., which corresponds to the current working directory.

Of note, this also happens on Linux. If you don't launch the executable directly most desktop environments will assume the home directory as default, and the game will try to look for the game data under ~. Or, if you launch the executable from the terminal, the game will look for the game data from whatever folder you're currently in with the terminal.

Jujstme avatar Mar 09 '25 20:03 Jujstme

That happens because the GamePath() function is set to return ., which corresponds to the current working directory.

It's known, but it's intentional that it does. During development it is very convenient to be able to launch from a working directory with the game data to avoid having to install it to every build type.

I'm not entirely sure the preferred solution in Windows will be to change this behavior.

DarioSamo avatar Mar 09 '25 21:03 DarioSamo

Oh wow I didn't know that, thanks for letting us know

YousefSlimani99 avatar Mar 11 '25 04:03 YousefSlimani99