mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
Worked on the release notes / installation instructions, and fixed
some other minor issues. git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@11 ea6a568a-9f4f-0410-981a-c910a81bb256
This commit is contained in:
parent
2f93fd25d3
commit
16e6da7d69
11 changed files with 194 additions and 409 deletions
|
@ -41,13 +41,19 @@ extern "C" void cpp_cleanup()
|
|||
}
|
||||
}
|
||||
|
||||
extern "C" int32_t cpp_configure(int32_t showConfig)
|
||||
extern "C" int32_t cpp_configure(
|
||||
int32_t showConfig, // Do we show the config dialogue?
|
||||
char *plugincfg // Name of 'plugin.cfg' file
|
||||
)
|
||||
{
|
||||
mRoot = new Root();
|
||||
mRoot = new Root(plugincfg);
|
||||
|
||||
// Add the BSA archive manager before reading the config file.
|
||||
ArchiveManager::getSingleton().addArchiveFactory( &mBSAFactory );
|
||||
|
||||
/* The only entry we use from resources.cfg is the "BSA=internal"
|
||||
entry, which we can put in manually.
|
||||
|
||||
// Load resource paths from config file
|
||||
ConfigFile cf;
|
||||
cf.load("resources.cfg");
|
||||
|
@ -69,11 +75,14 @@ extern "C" int32_t cpp_configure(int32_t showConfig)
|
|||
archName, typeName, secName);
|
||||
}
|
||||
}
|
||||
*/
|
||||
ResourceGroupManager::getSingleton().
|
||||
addResourceLocation("internal", "BSA", "General");
|
||||
|
||||
// Show the configuration dialog and initialise the system, if the
|
||||
// showConfig parameter is specified. The settings are stored in
|
||||
// ogre.cfg. If the parameter is false, the settings are assumed to
|
||||
// come from ogre.cfg.
|
||||
// ogre.cfg. If showConfig is false, the settings are assumed to
|
||||
// already exist in ogre.cfg.
|
||||
int result;
|
||||
if(showConfig)
|
||||
result = mRoot->showConfigDialog();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue