Look in alternate locations for config file
|Reported by:||SF/benshadwick||Owned by:||fingolfin|
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.