Go Back   Project64 Forums > General Discussion > Site News

Reply
 
Thread Tools Display Modes
  #1  
Old 26th November 2008, 08:10 AM
zilmar zilmar is offline
Core Team
Alpha Tester
Project Supporter
Administrator
 
Join Date: Jun 2005
Posts: 989
Default Where should saves go?

When we started Project64 the operating system generally used was Windows98. We designed Project64 so that it would work in a self contained folder. We still use this design now; everything works from that one directory without needing an install. This also works great if you want to put the emulator onto a memory stick and run it from there...
With the current design of Windows (2000, XP, Vista onwards) being for multiple users and security around which users can modify files, this design of PJ64 does cause some problems. One of the problems is that limited users are not allowed to modify files in the Program Files directory. And if one user modifies settings, then this affects other users on the same system that also use this program.
Vista gets around this issues by virtual mapping writes to the program files directory, to the user directory.
So where should saves, settings, etc be stored in PJ64 v1.7 - user directory, application directory? Should we determine by the location of the .exe? Should it work differently on different OS's etc... ?? Your thoughts please.

Last edited by Smiff_; 26th November 2008 at 02:34 PM.
Reply With Quote
  #2  
Old 26th November 2008, 08:35 AM
HatCat's Avatar
HatCat HatCat is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2007
Location: In my hat.
Posts: 16,236
Default

What's the point of complicating it?

If you installed Project64 you may not necessarily have full control over the subject, but can you think of reasons why someone is damned to using a limited account on their own PC? A kid and his Russian father got nothing to do with this--it's a matter of permission then.

There are other possibilities, but I'm convinced the vast majority don't need to worry about this 'issue' for a reason. Naturally complex software expects admin credentials but to make an exception with something gaming-related?
Reply With Quote
  #3  
Old 26th November 2008, 02:14 PM
[lexx] [lexx] is offline
Junior Member
 
Join Date: Nov 2008
Posts: 1
Default

There should be an option in preferences for setting this explicitly.

The app should check if there's settings.ini in the same dir, if not - check for in current user's 'application data' folder. The rest of settings/saves should be in that dir. If there isn't one, use defaults.

Also there's a good practice to check if you have a write permission to the settings/saves every time you start the app. If not, copy all read-only data to 'application data' and work with it separately with no further access to original files.
Reply With Quote
  #4  
Old 26th November 2008, 02:31 PM
Smiff_ Smiff_ is offline
Core Team
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Aug 2005
Location: NZ/UK/PJ
Posts: 500
Default

[just seeing if i can correct a typo on news page by editing the post in the forum, or if its copied to the forum database so both need edits]
ok they are separate so i've cleaned up some grammar/typos on the news page now zilmar

i won't state my opinions on this until more people have had a chance to post theirs..
__________________
L8rz,
Smiff (PJ64 team )
--
Main test PC: Athlon dual core 1.25-2.5Ghz (variable), 2GB RAM, GF8800GS driver 175.19, 1680x1050, External Audio, XP SP2.

Last edited by Smiff_; 26th November 2008 at 10:19 PM.
Reply With Quote
  #5  
Old 26th November 2008, 08:38 PM
Mystery's Avatar
Mystery Mystery is offline
Junior Member (who pretended to be Smiff)
 
Join Date: Nov 2008
Location: Under your bed!
Posts: 17
Default

The saves section should be an easy shortcut whereby it then pauses the game and prompts you for saved game name (automatically filling it in with the game title for those who just want to add extra in the end, or those who don't care what to call it). The default saved games location should be in the "Game Saves" folder, separating it from the other saved files...

eg:

Game Saves
Image Capture Saves
Controller Configurations
etc
(They dont necessarily need those names)
__________________
I have had to change my name due to Identity Theft. I have been real bad! Next week I'm going to get a slap in the face by Smiff. Then by Zilmar, Jabo and Gent to follow. Iconoclast doesn't matter and WTF is a clast? I suffer from %$#@! whereby I cannot think inelegantly causing a most foul and deffinite demise!
Reply With Quote
  #6  
Old 26th November 2008, 09:21 PM
LazerTag LazerTag is offline
Project Supporter
Junior Member
 
Join Date: Jan 2007
Posts: 4
Default

Though I used to be quite against it I must say I really enjoy applications and games that retain settings and files in the "My Documents" folder in Windows.

I switched some time back to partitioning my system with an OS partition and then apps/games/emu. As such I generally make sure to backup my OS partition since it takes the longest to get everything back in order from disaster. And of course having it all right there already makes it that much easier. While I don't backup the main programs anymore as reinstalling a game or app is nothing if you have the documents, saves, or settings already.

So I would vote to make it the "My Documents" location with a "My Project64" folder and default named directory structure, a default named directory structure with the EXE, or finally give the user the ability to change it where they would like manually.
Reply With Quote
  #7  
Old 26th November 2008, 09:42 PM
Mystery's Avatar
Mystery Mystery is offline
Junior Member (who pretended to be Smiff)
 
Join Date: Nov 2008
Location: Under your bed!
Posts: 17
Default

We have to think mostly about both windows xp and vista, perhaps crowning the whole project in its own little virtual machine can fix the user security issue with window xp?
__________________
I have had to change my name due to Identity Theft. I have been real bad! Next week I'm going to get a slap in the face by Smiff. Then by Zilmar, Jabo and Gent to follow. Iconoclast doesn't matter and WTF is a clast? I suffer from %$#@! whereby I cannot think inelegantly causing a most foul and deffinite demise!
Reply With Quote
  #8  
Old 26th November 2008, 11:41 PM
shadowth shadowth is offline
Project Supporter
Junior Member
 
Join Date: Apr 2007
Posts: 3
Default

I think this could be easily fixed with quick question on the beggining of the installation.

Either ask if you want to install a standalone version (portable) to any directory of your choise (so people can run from usb drives and so on). This version could have a folder for settings/s states and so on.

Or, install the fixed windows version, with the option to install just for you (which would retain all saves and settings only for your username) or for everyone, which would then make all settings and saves shared.

Reply With Quote
  #9  
Old 27th November 2008, 12:24 AM
legend legend is offline
Alpha Tester
Project Supporter
Member
 
Join Date: Aug 2006
Posts: 60
Default

Please, please just keep it in the App's directory. I access this folder alot, and I don't want crap in My Docs or going searching for it elsewhere. I'd say, leave it alone. It works fine on Xp and I don't think the multiple user thing is that big of a problem.
Reply With Quote
  #10  
Old 27th November 2008, 12:24 AM
HatCat's Avatar
HatCat HatCat is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2007
Location: In my hat.
Posts: 16,236
Default

With the default setting of disabled

With that user-specific settings aren't stored in the registry I guess they have to go somewhere. Of course provided there is more than one user--unless they're all admin accounts--the situation isn't unique since that can be more of a guest situation, but everyone is different.
Reply With Quote
Reply

Tags
features
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.