Change scummvm.ini path?
Moderator: ScummVM Team
Change scummvm.ini path?
Is it possible to change the path for scummvm.ini from C:\WINDOWS to something more local? I format often, and equally often I forget to backup this little file. Is it possible to place it locally in the install dir or something?
- DrMcCoy
- ScummVM Developer
- Posts: 595
- Joined: Sat Dec 17, 2005 1:33 pm
- Location: Braunschweig, Germany
- Contact:
Hmm, I've installed my OS (Debian GNU/Linux Sid) in 2000 (transfering it from system to system and keeping the installed packages up-to-date) IIRC, and I've never noticed any tendency to slow down...Muyfa666 wrote:I do have good protection, but even with that computers tend to slow after a while with all installing/uninstalling etc.
(</flamebait> )
- Praetorian
- ScummVM Developer
- Posts: 879
- Joined: Tue May 08, 2007 8:54 am
- Location: Greece
- Contact:
My question is similar so I won't start a new topic.
I am building a patch for a scummvm supported game and want to be able to locate the scummvm.ini that the current installation of scummvm uses.
Is this stored anywhere or should I search the default locations (based on the windows version and the implied order of precedence for the default paths) ?
I am building a patch for a scummvm supported game and want to be able to locate the scummvm.ini that the current installation of scummvm uses.
Is this stored anywhere or should I search the default locations (based on the windows version and the implied order of precedence for the default paths) ?
- Praetorian
- ScummVM Developer
- Posts: 879
- Joined: Tue May 08, 2007 8:54 am
- Location: Greece
- Contact:
Actually according to the readme.txt the default locations vary depending on the operating system. And for those that are running previous versions of ScummVm (which is a possibility for the end user that I can't overlook) the default directory was the $WINNT dir.
So basically for Windows O.S. I am first searching in the default path for 0.X.0, and then -if nothing found- I search for the '<windir>\scummvm.ini'. But there is nothing I can do if the user has specified another config file via the command line.By default, the configuration file is saved in, and loaded from:
Windows Vista:
\Users\username\AppData\Roaming\ScummVM\scummvm.ini,
Windows 2000/XP:
\Documents and Settings\username\Application Data\ScummVM\scummvm.ini,
Windows NT4:
<windir>\Profiles\username\Application Data\ScummVM\scummvm.ini,
Windows 95/98/ME:
<windir>\scummvm.ini,
If an earlier version of ScummVM was installed under Windows, the previous default location of '<windir>\scummvm.ini' will be kept.
Unix:
~/.scummvmrc
Mac OS X:
~/Library/Preferences/ScummVM Preferences
Others:
scummvm.ini in the current directory
- JohnnyWalker2001
- Posts: 405
- Joined: Mon Oct 16, 2006 1:27 pm
- Location: London, UK
- eriktorbjorn
- ScummVM Developer
- Posts: 3557
- Joined: Mon Oct 31, 2005 7:39 am
The path isn't hard-coded in ScummVM. If I understand the code correctly, it goes something like this:JohnnyWalker2001 wrote:Hmmmmmmm. My new install of ScummVM "OXO" on Vista has placed the ScummVM.ini file here:
C:\Users\Johnny\AppData\Local\VirtualStore\Windows
Windows 95, 98 and Me uses the Windows directory, as produced by the GetWindowsDirectory() function.
Windows NT 4.0 uses whatever the USERPROFILE environment variable contains.
Windows 2000, and anything else more recent than that, uses whatever the APPDIR environment variable contains.
In Windows XP, I can open a command prompt and type echo %APPDIR%. I assume that's where ScummVM would put the scummvm.ini file, if I had ScummVM installed on that computer.
- JohnnyWalker2001
- Posts: 405
- Joined: Mon Oct 16, 2006 1:27 pm
- Location: London, UK