DragonKnightOfBreeze / Paradox-Language-Support

IDEA Plugin: Paradox Language Support.
https://windea.icu/Paradox-Language-Support
MIT License
41 stars 5 forks source link

Not working for Crusader Kings 2 because it does not have launcher-settings.json #89

Open LordMartron94 opened 3 weeks ago

LordMartron94 commented 3 weeks ago

image I did click on "quick select game directory"

I have looked through your source code and I believe this is due to checking whether the selected directory can find launcher-settings.json in a recursive manner... The game Crusader Kings 2 does not have this file anywhere. For this specific game, you should not check for the file.

LordMartron94 commented 3 weeks ago

I made a mock file and that seemed to work (after starting the game and quitting it again)

DragonKnightOfBreeze commented 3 weeks ago

any file else can obtain game version? permit every directory or directory (directly or under game subdirectory) contains .exe as game directory, should not be a good solution ...