[ scummvm-Patches-1152176 ] Look in alternate locations for config file

SourceForge.net noreply at sourceforge.net
Sat Feb 26 03:03:02 CET 2005


Patches item #1152176, was opened at 2005-02-26 02:03
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1152176&group_id=37116

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ben Shadwick (benshadwick)
Assigned to: Nobody/Anonymous (nobody)
Summary: Look in alternate locations for config file

Initial Comment:
Some people have requested that scummvm be modified to
look in more than just one default location for the
config file. I also wanted to see this feature because
I run Win32 ScummVM from a network share and would like
to be able to have the config file read from a central
location (such as the ScummVM folder).

I've added a kludge to the beginning of
ConfigManager::loadFile() that causes it to use the
following logic:

1. If the designated location to check for the config
file is not the current directory, check to see if it
exists in the designated location
2. If the config file is not found, set the designated
location to be the current directory and check again

Someone who is more familiar with ScummVM should make
sure I didn't clobber anything. There may also be a
more elegant way to accomplish this, but I at least
wanted to inspire someone to add this feature.

The patch is a diff against the Feb 25, 2005 daily
source snapshot. Tested on Win32 using MingW32.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1152176&group_id=37116




More information about the Scummvm-tracker mailing list