General FreeSpace > FreeSpace & FreeSpace Open Support

Is there a way for FSO to probe whether a dll is 32 or 64-bit & message that?

(1/2) > >>

jr2:
What it says on the tin.  FSO probes the dlls before first load to see what architecture they are and throws an error message if it's a mismatch.


ngld:
Not possible since the DLLs are loaded before FSO itself is run... unless you're going to change how the libraries are linked which seems like a waste of effort.

m!m:
Why are you having issues with this?

Knossos handles different platforms automatically and the nightly builds (but not 3.8 unfortunately) include every required DLL so extracting that will also not cause issues if you use wxLauncher.

ngld:
This can become an issue if you're using wxLauncher and try to use both 32 and 64bit builds. Since wxLauncher expects all builds to be in the same directory, the DLLs conflict.
Maybe we can make wxLauncher check if the DLLs match the bitness of the selected executable? That would solve that problem at least.

Another problem that some people have run into is that copying the SDL2.dll from FSO to wxLauncher (to fix the joystick UUID issue) can cause the same error if it's the 64bit SDL2.dll since wxL itself is 32bit. Though once again that's much harder to solve and seems to be much rarer.

The E:
That seems like a lot of work for a use-case that we definitely do not want to encourage.

Navigation

[0] Message Index

[#] Next page

Go to full version