OpenBLCMM icon indicating copy to clipboard operation
OpenBLCMM copied to clipboard

Cannot modify ini on steam deck

Open eljose003 opened this issue 3 months ago • 1 comments

System Info Steam Deck Operating System: Steam OS

Describe the bug Cannot modify ini on steam deck through BLCM I think this is fault of utilities/GameDetection.java. Specifically getPathToINIFiles. It assumes that the game is installed in the SSD, which is not necessarily the case, normally the ini files are on /home/deck/.local/share/Steam/... BUT it searches the .exe location, if this is installed on an SD card, it will search on /run/media/... which is wrong, it should search on home, all because this function assumed that the .exe is on the same directory as home

To Reproduce Install borderlands 2 in an sd card for example.

Additional context This should not be so difficult to fix I think? This is my first time repporting a bug in github, so sorry if I missed anything

eljose003 avatar Aug 27 '25 17:08 eljose003

Ah, okay, interesting. I suspect that the assumption was that the compatdata structure would exist in the same location as the installed common structure, but perhaps that's not the case? Could've sworn I'd tested for that, but apparently not (that or the behavior's changed since then, but it's more likely that I just missed it).

The relevant problem's probably over in getPathToGameConfigFiles, actually: https://github.com/BLCM/OpenBLCMM/blob/ecee5cbfbdbf9fadd7d38d6b86f8b669cb0dd19e/src/blcmm/utilities/GameDetection.java#L684-L688

Anyway, will dig into it at some point, though I'm afraid I can't promise a quick turnaround. In the meantime, I suspect you could cheese it with some symlinks (symlinking the compatdata dir in particular would presumably be the "best" way). Or just edit the INIs by hand; there's not a lot that we do in there anyway, really. I suppose it'd be worth documenting the common INI edits over on our wiki; we've got a section on the mostly-deprecated hexedits: https://github.com/BLCM/BLCMods/wiki

apocalyptech avatar Aug 28 '25 00:08 apocalyptech