本文整理汇总了C++中FitIniFile::createWithCase方法的典型用法代码示例。如果您正苦于以下问题:C++ FitIniFile::createWithCase方法的具体用法?C++ FitIniFile::createWithCase怎么用?C++ FitIniFile::createWithCase使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FitIniFile
的用法示例。
在下文中一共展示了FitIniFile::createWithCase方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: update
void MainMenu::update()
{
if ( bDrawBackground || MPlayer || LogisticsData::instance->isSingleMission() )
{
getButton( MM_MSG_SAVE )->disable( true );
}
else
getButton( MM_MSG_SAVE )->disable( false );
getButton( MM_MSG_MULTIPLAYER )->disable( true );
if ( introMovie )
{
userInput->mouseOff();
if (userInput->getKeyDown(KEY_SPACE) || userInput->getKeyDown(KEY_ESCAPE) || userInput->getKeyDown(KEY_LMOUSE))
{
introMovie->stop();
}
bool result = introMovie->update();
if (result)
{
//Movie's Over.
//Whack it.
delete introMovie;
introMovie = NULL;
}
return;
}
if (!musicStarted)
{
musicStarted = true;
soundSystem->setMusicVolume( prefs.MusicVolume );
soundSystem->playDigitalMusic(tuneId);
}
if ( endAnim.isDone() )
{
status = endResult;
}
if ( bDrawMechlopedia )
{
mechlopedia->update();
if ( mechlopedia->getStatus() == NEXT )
{
beginFadeIn( 0 );
bDrawMechlopedia = 0;
if ( !bDrawBackground )
status = NEXT;
}
return;
}
if ( bOptions )
{
OptionsScreenWrapper::status_type result = optionsScreenWrapper->update();
if (result == OptionsScreenWrapper::opt_DONE)
{
optionsScreenWrapper->end();
bOptions = 0;
}
return;
}
if ( (bSave || bLoad || bLoadCampaign) && endAnim.isDone() )
{
LogisticsSaveDialog::instance()->update();
if ( LogisticsSaveDialog::instance()->getStatus() == LogisticsScreen::YES
&& LogisticsSaveDialog::instance()->isDone() )
{
char name[1024];
strcpy( name, savePath );
strcat( name, LogisticsSaveDialog::instance()->getFileName() );
int index = strlen( name ) - 4;
if ( _stricmp( &name[index], ".fit" ) !=0 )
strcat( name, ".fit" );
FitIniFile file;
if ( bSave )
{
// make sure the save game directory exists, if not create it
CreateDirectory( savePath, NULL );
if ( NO_ERR != file.createWithCase( name ) )
{
char errorStr[1024];
sprintf( errorStr, "couldn't open the file %s", name );
Assert( 0, 0, errorStr );
}
else
//.........这里部分代码省略.........