Macro-Deck
Macro-Deck copied to clipboard
Check if the Data folder (portable mode) exist at launch.
Hi, I need to launch the program as portable, so I use a batch with the option --portable (and it stores all the config files on the "Data" folder on the same location where the program is, which is great), but at restart the program after of uninstall a plugin or selecting the options "Restart MD" from the taskbar icon, the batch closes and then it launch as not portable creating files on %AppData%\Macro Deck.
There should be a portable.dat file or check if the Data folder already exist on the same location where the program is at launch, and in such case, run it as portable, and if not, then it will create the %AppData%\Macro Deck. Many programs out there (like OBS, CCleaner, Moonlight, etc) uses behaviour like this and works great.
Cheers.