edge-classic / EDGE-classic

Cross-Platform OpenGL Doom Source Port with powerful modding features
https://edge-classic.github.io
GNU General Public License v3.0
71 stars 13 forks source link

Multiple iWADs break the launcher under Linux #690

Closed vanessakindell closed 6 months ago

vanessakindell commented 6 months ago

Multiple iWADs break the game selection menu under Linux and return a "Error in game selection dialogue!"

These are:

Current workaround: use the -iwad switch to select them manually via command line.

image

dashodanger commented 6 months ago

This message actually appears when the SDL_ShowMessageBox function fails for the IWAD selector. I have added SDL_GetError to the print statement that produces this message in order to get a better idea of what is happening. Please recompile with commit https://github.com/edge-classic/EDGE-classic/commit/712bd3010c0ceba069f2fb320e0c4d74cf79c8c6 or later and show the output if you can recreate this situation.

vanessakindell commented 6 months ago

Updated error message from latest pull image

dashodanger commented 6 months ago

It looks like SDL has a hard coded limit of 8 buttons for some backends when using SDL_ShowMessageBox. I have pushed https://github.com/edge-classic/EDGE-classic/commit/a91e2950eaddf6746dbebfaf9e5d2ab080b2ca0f to limit the number of IWADs presented to the user to 8, with additional advice to use a launcher if more than this is needed for automatic IWAD detection