Opened 16 years ago

Closed 16 years ago

Last modified 2 years ago

#8399 closed patch (wontfix)

Look in alternate locations for config file

Reported by: SF/benshadwick Owned by: fingolfin
Priority: normal Component: --Other--
Keywords: Cc:
Game:

Description

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.

Ticket imported from: #1152176. Ticket imported from: patches/504.

Attachments (1)

config-manager.diff (551 bytes ) - added by SF/benshadwick 16 years ago.
diff on common/config-manager.cpp

Download all attachments as: .zip

Change History (4)

by SF/benshadwick, 16 years ago

Attachment: config-manager.diff added

diff on common/config-manager.cpp

comment:1 by fingolfin, 16 years ago

Well, yeah, this patch is of course rather trivial (and contains spelling mistakes ;-). We can easily write that ourselves, the true problem is detailed at FR #743288 (as you have seen yourself, considering you commented on it).

comment:2 by fingolfin, 16 years ago

Owner: set to fingolfin
Resolution: wontfix
Status: newclosed

comment:3 by digitall, 2 years ago

Component: --Other--
Note: See TracTickets for help on using tickets.