Dark_Odyssey1: I'm going to try this on Linux. Does anyone know what .dll files GOG added to make these changes happen? Do they have generic names where I would need to add them to WINEDLLOVERRIDES?
There are a number of new .dll and .exe files, but the two core libraries shimming dinput8 and d3d9 have helpfully been named
di.dll and
dx.dll respectively, so there is no need to add anything to WINEDLLOVERRIDES from that side. Running the new launcher executable
PrinceOfPersia_gog.EXE in a fresh wine prefix worked fine with wine-staging from the Arch Linux repos, but only after installing DXVK (with its own needed overrides) into the prefix. Without it I get an assertion error from nuklear.h (which is from the Nuklear GUI toolkit used for the new overlay invoked via F11). But practically, with Heroic Games Launcher I didn't have to do much besides restoring
InvertFogRange=0 in
Hardware.ini as I mentioned earlier.
Underneath this now also uses SDL3, and reads configuration from a new
gog.toml file where you can additionally enable the loading of the DirectInput8 wrapper
dinput8_wrap.dll. I wasn't able to get the game to recognize my DualSense via Wine either way so far though, not sure where this is going wrong.
Besides, the previous executables (
PrinceOfPersia.EXE) are still included and have a separate launcher entry, those still use the system d3d9 and dinput8 directly and none of the new custom wrapping machinery.