Feedback: How to manage Windows config file and directories?

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Post Reply
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Feedback: How to manage Windows config file and directories?

Post by Nach »

With the release of Windows Vista with an overhauled multiuser setup, and some feedback and submissions over the past few months, there's some questions which need to be asked, and we require your feedback on how you would like things done.

(Not Windows users please ignore)


First off, where do you want the ZSNES config stored?
Three options:
1) With the ZSNES executable.
2) In profiles/myuser/zsnes (CSIDL_PROFILE/zsnes)
3) In profiles/myuser/apps/zsnes (CSIDL_APPDATA/zsnes)

Method One is currently what we do now. Method Two and Three will allow per user configuration files, which is currently not supported. Method Two has the directory in easier access than Method Three, but Method Three is more standardized. (see here for data)

There's also the possibility of only doing this for certain versions of Windows and up. pagefault suggested we use Method Three for NT 5+, and Method One for anything before that. I personally don't like NT 5's user directory setup, but NT 6 (Vista) is much more enjoyable.
If you think we should use Method Two or Three from a particular Windows version, mention that too.

Note: We can't offer a GUI/Config option for this.

Once that's decided, where do you think default saving should be? With the config file or with the ROMs? Does your opinion differ depending on which method above is used? This will be offered a choice though to change where you want it.

If you believe we should change from what we do now, how do you suggest we migrate? Should we perhaps just let the user figure it out? Should we provide an app to move your config file to the new location? Should we start bundling ZSNES with an installer to handle this?

Please discuss.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Jipcy
Veteran
Posts: 768
Joined: Thu Feb 03, 2005 8:18 pm
Contact:

Post by Jipcy »

Many open source software provide both ZIP files (extract/run anywhere) and set-up executables that install start menu icons and use the APPDATA path for config and data files. So you could do something like that. I think ZSNES should always be offered as a stand-alone executable with a local config files, but any additional installers would be fine.

In terms of generated data, perhaps SRMs should be saved/loaded from ROM directories by default (makes sense for a standard, cross-program data), and all other files be saved to a ZSNES-labeled folder. Many programs save user-generated data in a subfolder of My Documents. Generally, I think saving user-generated data in APPDATA is not cool because it's too easily overlooked.

And of course, all paths should continue to be fully configurable.
[url=http://zsnes-docs.sf.net]Official ZSNES Docs[/url] | [url=http://zsnes-docs.sf.net/nsrt]NSRT Guide[/url] | [url=http://endoftransmission.net/phpBB3/viewtopic.php?t=394]Using a Wiimote w/ emulators[/url]
franpa
Gecko snack
Posts: 2374
Joined: Sun Aug 21, 2005 11:06 am
Location: Australia, QLD
Contact:

Post by franpa »

erm, if it IS to be changed... will we have the option to have it how it was before it got changed?
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64
Nightcrawler
Romhacking God
Posts: 922
Joined: Wed Jul 28, 2004 11:27 pm
Contact:

Post by Nightcrawler »

I prefer keeping things as they are. Local config, option 1. I doubt many people would actually take advantage of multiple user config anyway. Why start spreading ZSNES out all over the computer? Don't turn it into the crap that every other program is. uninstalling becomes more difficult because those config files aren't removed from the applications directory. I haven't seen any program that actually removes that data. These are some root causes of fragments of crap being left overs all over the computer. It should also be consistent for every version of ZSNES from here on out.

As for default saving. I prefer default saving to be with the ROM. It just makes the most sense to me. This is independent of whatever is chosen above. If a user wants the saves stored anywhere else, they can just change the directory in the GUI.
[url=http://transcorp.romhacking.net]TransCorp[/url] - Home of the Dual Orb 2, Cho Mahou Tairyku Wozz, and Emerald Dragon SFC/SNES translations.
[url=http://www.romhacking.net]ROMhacking.net[/url] - The central hub of the ROM hacking community.
sweener2001
Inmate
Posts: 1751
Joined: Mon Dec 06, 2004 7:47 am
Location: WA

Post by sweener2001 »

i rather like how it is currently as well.

if zsnes doesn't have to insall itself, and the config has no gui, then there's no reason to have an installer and make it so that things are all moved around.

if the cfg had a gui, and you got to insert those nice browse buttons so you could easily find the paths and files you need, then i'd be more for making it more of a "standards" program as far as that goes.

but at the moment, it's sounding like the current setup is the best.
[img]http://i26.photobucket.com/albums/c128/sweener2001/StewieSIGPIC.png[/img]
funkyass
"God"
Posts: 1128
Joined: Tue Jul 27, 2004 11:24 pm

Post by funkyass »

if vista was designed sanely, then I'd suggest APPDATA

the better location would be My Documents\Zsnes Settings(or My Documents\My Games\Zsnes).

my suggestion would be to use either APPDATA or one of the My Documents suggestions, and have a backup where the executable is stored.
Does [Kevin] Smith masturbate with steel wool too?

- Yes, but don’t change the subject.
qwerty`
Rookie
Posts: 26
Joined: Sat Feb 17, 2007 6:36 am

Post by qwerty` »

First choice 1
Second choice 3
Third choice destroy zsnes
Fourth choice 2

If people want a multiuser configuration setup they can just make 2 directories and copy zsnes.exe to each one (it's not even 1MB when compressed). Everyone else will just be annoyed by the migration I think. Right now the configuration files are easy to access and I like that a lot, doesn't need to be changed.
Firon
Trooper
Posts: 361
Joined: Fri May 05, 2006 4:37 pm
Contact:

Post by Firon »

Location 1.
sweener2001
Inmate
Posts: 1751
Joined: Mon Dec 06, 2004 7:47 am
Location: WA

Post by sweener2001 »

i absolutely hate when games save in my documents. ie. max payne.

so stupid. while it may be for my "convenience," it clutters up my my documents folder. right now i have an updater5 folder from i don't know which app that won't go away, it never has anything in it. i loathe programs inserting crap into my documents so much.
[img]http://i26.photobucket.com/albums/c128/sweener2001/StewieSIGPIC.png[/img]
SamB
ZSNES Developer
ZSNES Developer
Posts: 8
Joined: Sun Jul 02, 2006 8:59 pm

Post by SamB »

sweener2001 wrote:i absolutely hate when games save in my documents. ie. max payne.
None of the suggestions involve storing saves in My Documents, dude.
sweener2001
Inmate
Posts: 1751
Joined: Mon Dec 06, 2004 7:47 am
Location: WA

Post by sweener2001 »

Jipcy wrote:Many programs save user-generated data in a subfolder of My Documents.
funkyass wrote: the better location would be My Documents\Zsnes Settings(or My Documents\My Games\Zsnes).

my suggestion would be to use either APPDATA or one of the My Documents suggestions
i'm just responding to the thread. no need to "freak out."
[img]http://i26.photobucket.com/albums/c128/sweener2001/StewieSIGPIC.png[/img]
blackmyst
Zealot
Posts: 1161
Joined: Sun Sep 26, 2004 8:36 pm
Location: Place.

Post by blackmyst »

I prefer option 1, for pretty much all the reasons stated above.

As for the default saving directory, I really don't care because I'll make a separate save directory within the Zsnes directory from the start anyway. In fact, is there a reason why Zsnes can't have default subdirectories for saveram, states, screenshots etc. like many other emulators do? (once all the paths have been implemented anyway)
[size=75][b]Procrastination.[/b]
Hard Work Often Pays Off After Time, but Laziness Always Pays Off Now.[/size]
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

blackmyst wrote:I prefer option 1, for pretty much all the reasons stated above.

As for the default saving directory, I really don't care because I'll make a separate save directory within the Zsnes directory from the start anyway. In fact, is there a reason why Zsnes can't have default subdirectories for saveram, states, screenshots etc. like many other emulators do? (once all the paths have been implemented anyway)
You can test the path code that is in SVN... although if you are using anything but Linux, you won't get sound.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
Lord Alpha
Lurker
Posts: 165
Joined: Wed Jul 28, 2004 3:15 am
Location: The Land of Insanity
Contact:

Post by Lord Alpha »

Nach wrote: pagefault suggested we use Method Three for NT 5+, and Method One for anything before that.
Seconded.

Store the SRMs, ZSTs etc, with the ROM (assuming of course that no paths are specified)

As for the installer, there was a user that was already handling this in an unofficial capacity wasn't there? To be honest though, I prefer not to have the installer, that just clutters things up.
It is better to be silent and thought a fool then to open your mouth and remove all doubt

I am Zophar, Master of Sh*t!

[url=http://archlyn.bravejournal.com]View my blog[/url]
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

Lord Alpha wrote:
Nach wrote: pagefault suggested we use Method Three for NT 5+, and Method One for anything before that.
Seconded.

Store the SRMs, ZSTs etc, with the ROM (assuming of course that no paths are specified)

As for the installer, there was a user that was already handling this in an unofficial capacity wasn't there? To be honest though, I prefer not to have the installer, that just clutters things up.
Coincidentally, there was a discussion for this actually. I don't think we will use the one that the old thread was using.. but something a little more encompassing... giving Nach ideas is insane.

As a side thought, I believe NT5's system is just as atrocious as 9x. Vista has the most sane path structure finally (I mean, Linux got this right for a while anyway).
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
Truth Unknown
Regular
Posts: 271
Joined: Tue Jun 14, 2005 8:35 pm

Post by Truth Unknown »

While I like method 1. Method 3 will be nice, but I think you should merge parts of method 2 for saves, image dumps, sound type dumps, and patching. This way the config is in a nice safe area but backing up saves and patches are easy and retrieving dumps simpler. I can't why a GUI/Config wouldn't work but I'm not the programer.

And if it turns out that a installer is needed, I guess I can try another try at NSIS or LDAWG with his (I forget what Software he used).
pagefault
ZSNES Developer
ZSNES Developer
Posts: 812
Joined: Tue Aug 17, 2004 5:24 am
Location: In your garden

Post by pagefault »

Despite what Nach says a GUI option will be available....
Watering ur plants.
Naelphin
Rookie
Posts: 14
Joined: Sat Aug 07, 2004 1:09 pm

Post by Naelphin »

I would like Option 2 for NT and Option 1 for 9x. Option 1 breaks LUA in XP.
zoink
Rookie
Posts: 42
Joined: Mon Apr 25, 2005 7:02 pm

Post by zoink »

i would like configuration files to be saved to zsnes/myWinUsername/cfg saves would go to zsnes/myWinUsername/saves folder, etc...

that way everything would be in one folder, and we'd have multiuser support.
Post Reply