Can I get rid of the standard .cfg files?
Posted: Wed May 11, 2005 7:30 pm
I'm working on a new project using OGRE, and I intend to distribute my game with a classic Windows installer (something like setup.exe) that should install all my binary files (executables, gfx, sound, etc.) as well as any third party dependecies such as the subset of OGRE DLL's I'll be using.
My only problem is with the .cfg files, like plugins.cfg! I would prefer not to use them and have my own single config file (or even use the Windows registry)!
Can someone give me some ideas on how can I do that? I.e. how can I tweak OGRE so that it dosen't look for plugins.cfg nor any other .cfg file?
I tried implementing my own code to acomplish the same as the Root::showConfigDialog method, but it keeps looking for the plugins.cfg file!
Currently I'm just using Root::restoreConfig and creating my Root object with a saved copy of ogre.cfg and plugins.cfg files, renamed to something like ProjX.cfg and ProjXPlugins.cfg.
But that's not quite what I'm looking for! I want to use a single config file and actually I want the options that go into plugins.cfg to be "hardcoded" in my game, i.e. I always want to use DX9, a fixed resolution, and a predefined, pre-bunded set of plugins!
How can I "get rid of" the "standard" .cfg files????
Thanks in advance for your help!
My only problem is with the .cfg files, like plugins.cfg! I would prefer not to use them and have my own single config file (or even use the Windows registry)!
Can someone give me some ideas on how can I do that? I.e. how can I tweak OGRE so that it dosen't look for plugins.cfg nor any other .cfg file?
I tried implementing my own code to acomplish the same as the Root::showConfigDialog method, but it keeps looking for the plugins.cfg file!
Currently I'm just using Root::restoreConfig and creating my Root object with a saved copy of ogre.cfg and plugins.cfg files, renamed to something like ProjX.cfg and ProjXPlugins.cfg.
But that's not quite what I'm looking for! I want to use a single config file and actually I want the options that go into plugins.cfg to be "hardcoded" in my game, i.e. I always want to use DX9, a fixed resolution, and a predefined, pre-bunded set of plugins!
How can I "get rid of" the "standard" .cfg files????
Thanks in advance for your help!