Felix icon indicating copy to clipboard operation
Felix copied to clipboard

[Feature Request] Portable mode

Open GoodWall533 opened this issue 1 year ago • 7 comments

Would it be possible to have the config files be in the same folder as the emulator? I think this would be nice to have.

GoodWall533 avatar May 08 '25 03:05 GoodWall533

It's even simpler than keeping it in AppData. I'm using AppData just in case the folder where the emulator binary resides isn't writable. I can always try the app folder first, then AppData.

laoo avatar May 08 '25 11:05 laoo

Thank you for working on this. Also, may I suggest this way of making one's folder portable? Other emulators uses this, a user can simply create a .ini file called portable and the config files will move to the folder.

GoodWall533 avatar May 08 '25 16:05 GoodWall533

Could you add more details on the method? Maybe some link where I could read how other emulators do it?

laoo avatar May 08 '25 16:05 laoo

I would simply go for the solution to store config data to the place of the exe file. Why use two different files.

42Bastian avatar May 08 '25 17:05 42Bastian

Could you add more details on the method? Maybe some link where I could read how other emulators do it?

Sorry if I can't offer details on this since I'm not the coding type of person but one of the emulators that make use of this is Dolphin. Here's some documentation of Dolphin's portable mode: https://dolphin-emu.org/docs/guides/controlling-global-user-directory/?nocr=true

GoodWall533 avatar May 08 '25 17:05 GoodWall533

I would simply go for the solution to store config data to the place of the exe file. Why use two different files.

I can imagine placing emulator's executable in a folder without write permission. AFAIK that's the police of Microsoft Windows - "Program Files" should not be writable by non-administrators hence the AppData folder.

So the hybrid solution I'm thinking of - first try to access config from app's folder and in case of failure then go to AppData.

laoo avatar May 08 '25 18:05 laoo

Since Felix is just copied into some folder, I'd say it never resides in "Program Files". Therefore, I'd go for your idea @laoo

42Bastian avatar May 08 '25 18:05 42Bastian