Win32 - search for .INI in program path first
|Reported by:||SF/quietust||Owned by:||fingolfin|
The WINDOWS/WINNT directory is generally rather cluttered. The attached patch allows placing 'scummvm.ini' in the current working directory (this will generally be the same location as scummvm.exe, sdl.dll, etc.); if the file is not found there, it will default to the Windows directory as it usually does.
With several minor changes [use GetModuleFileName (NULL,...) instead of GetCurrentDirectory(...) and strip off the filename], this could be made to check the .EXE directory instead of the current directory, making it even more portable.
Ticket imported from: #795066. Ticket imported from: patches/380.
Change History (12)
comment:2 by , 20 years ago
|Summary:||Win32 - search for .INI in current dir first → Win32 - search for .INI in program path first|