#8399 closed patch (wontfix)
Look in alternate locations for config file
Reported by: | SF/benshadwick | Owned by: | fingolfin |
---|---|---|---|
Priority: | normal | Component: | --Other-- |
Version: | 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)
Change History (4)
by , 20 years ago
Attachment: | config-manager.diff added |
---|
comment:1 by , 20 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 , 20 years ago
Owner: | set to |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
comment:3 by , 6 years ago
Component: | → --Other-- |
---|
diff on common/config-manager.cpp