Open Swyter opened 1 year ago
CC: @GMPranav, @kugelrund.
This is a good idea. Perhaps something that can be run when the program is run first time and then user can change it as per their wish.
I appreciate the suggestions and understand the intent, but I don't think this is a good idea. Resorting to the mess of the Windows Registry and relying on hardcoded keys for the tiny benefit of not having to set the path once in the lifetime of your PC does not seem like a good tradeoff to me. Just introduces unnecessary legacy code for something that users can do manually in seconds.
If you really desperately want this and implement it cleanly, clearly separated from everything else, I'm fine with merging it, but I wouldn't want to encourage you to spend the time.
This is the opposite of hardcoding; the Windows Registry is how programs detect and find each other. Every installer and Steam itself uses the steps above every time you launch your games, it's how default programs are set.
I have worked with Win32 APIs for more than ten years. There's nothing messy about it.
By the way, all the auto-finder magic can be implemented in less than twenty lines. It will find the games instantly, no matter where you bought them or how exotic your drive layout is. This will work from Windows 2000 to the day Windows stops being relevant.
The detailed explanation with three alternatives makes it look more involved than what it really is. The first two methods are one-liners. Steam Libraries just make it hard to the point of reading a configuration file with a format so simple it can be done in Batch.
Just trying to be helpful and make it work out of the box, I don't speedrun.
Both sides have valid points. I am also on the side that if this is implemented, there wouldn't be anything particularly wrong or messy with it. But on the other hand, this is meant to be a simple program and as Sphere mentioned its just a one time setup. There is honestly something good about doing that first time setup, it let's the user understand exactly what the program is doing and gives a feeling of control.
In my previous comment, I mentioned this can be run during startup, but after hearing these points I think it's better to have auto-fetch as a separate button.
At the end of the day, whether this will be implemented or not depends on how high it's in the priority list of hobbies for me, Jaka or anyone else looking to contribute to this project. Nothing can change that.
I commented this back in January, but I'll leave it here so that it doesn't get lost, in case someone wants to look into it: https://discord.com/channels/83365709064699904/760854217509830676/1067540740281991218