本文整理汇总了C++中UpdateManager类的典型用法代码示例。如果您正苦于以下问题:C++ UpdateManager类的具体用法?C++ UpdateManager怎么用?C++ UpdateManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了UpdateManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char ** argv)
{
bool uiversion = true;
for(int i=0; i < argc ; i++)
{
if(std::string(argv[i]) == "--no-ui")
{
uiversion = false;
}
}
if(uiversion)
{
QApplication app(argc, argv);
UpdateManager mainWindow;
mainWindow.show();
return app.exec();
}
else
{
QCoreApplication app(argc, argv);
VersionManager manager;
return app.exec();
}
}
示例2: version0018
void version0018()
{
UpdateManager updateManager;
Update* pUpdate:
int version = 18
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"Zone.inf 1374");
pUpdate->setParam(1,"Data/Info/Zone.inf");
updateManager.push_back(pUpdate);
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"Creature.inf 12254");
pUpdate->setParam(1,"Data/Info/Creature.inf");
updateManager.push_back(pUpdate);
char filename[256];
sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
remove(filename);
updateManager.save(filename);
}
示例3: version15
void version15()
{
UpdateManager updateManager;
Update* pUpdate;
int version = 15;
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"Updater2.exe 950272");
pUpdate->setParam(1,"Updater2.exe");
updateManager.push_back(pUpdate);
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"UpdateClient.inf 94");
pUpdate->setParam(1,"Data\\Info\\UpdateClient.inf");
updateManager.push_back(pUpdate);
char filename[256];
sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
remove(filename);
updateManager.save(filename);
}
示例4: version0012
void version0012()
{
UpdateManager updateManager;
Update* pUpdate:
int version = 12
char filename[256];
sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
remove(filename);
updateManager.save(filename);
}
示例5: version1
void version1()
{
UpdateManager updateManager;
int version = 1;
//--------------------------------------------------------------------------------
// save
//--------------------------------------------------------------------------------
char filename[256];
sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR,version);
remove(filename);
updateManager.save(filename);
}
示例6: LOGV
void Engine::onResume() {
LOGV("onResume");
mGLESLayer->enableRender();
gles::GLESLayer *glLayer = mGLESLayer;
UpdateManager* updateManager = mUpdateManager;
mGLThread->addRecurringTask([updateManager, glLayer]() {
updateManager->update();
glLayer->render();
bool repeat = glLayer->renderEnabled();
return repeat;
});
}
示例7: Initialize
void RenderTaskList::Initialize( UpdateManager& updateManager )
{
// This should only be called once, with no existing scene-object
DALI_ASSERT_DEBUG( NULL == mSceneObject );
// Get raw-pointer to render task list
mSceneObject = updateManager.GetRenderTaskList( mIsSystemLevel );
}
示例8: Initialize
void RenderTaskList::Initialize( UpdateManager& updateManager )
{
// This should only be called once, with no existing scene-object
DALI_ASSERT_DEBUG( NULL == mSceneObject );
// Get raw-pointer to render task list
mSceneObject = updateManager.GetRenderTaskList( mIsSystemLevel );
// set the callback to call us back when tasks are completed
mSceneObject->SetCompleteNotificationInterface( this );
}
示例9: version13
void version13()
{
UpdateManager updateManager;
Update* pUpdate;
int version = 13;
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"InventoryBackColor.spk 122642");
pUpdate->setParam(1,"Data\\UI\\spk\\InventoryBackColor.spk");
updateManager.push_back(pUpdate);
char filename[256];
sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
remove(filename);
updateManager.save(filename);
}
示例10: version0016
void version0016()
{
UpdateManager updateManager;
Update* pUpdate:
int version = 16
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"bamp00.map 238828");
pUpdate->setParam(1,"Data/Map/bamp00.map");
updateManager.push_back(pUpdate);
char filename[256];
sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
remove(filename);
updateManager.save(filename);
}
示例11: version0006
void version0006()
{
UpdateManager updateManager;
Update* pUpdate:
int version = 6
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"itemTile.ifpk 866");
pUpdate->setParam(1,"Data/Image/itemTile.ifpk");
updateManager.push_back(pUpdate);
char filename[256];
sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
remove(filename);
updateManager.save(filename);
}
示例12: version0015
void version0015()
{
UpdateManager updateManager;
Update* pUpdate:
int version = 15
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"ex2.spr 66564");
pUpdate->setParam(1,"Data/Image/ex2.spr");
updateManager.push_back(pUpdate);
char filename[256];
sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
remove(filename);
updateManager.save(filename);
}
示例13: version8
void version8()
{
UpdateManager updateManager;
Update* pUpdate;
int version = 8;
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"Event_Fanfare.wav 746540");
pUpdate->setParam(1,"Data\\Sound\\Event_Fanfare.wav");
updateManager.push_back(pUpdate);
char filename[256];
sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
remove(filename);
updateManager.save(filename);
}
示例14: version12
void version12()
{
UpdateManager updateManager;
Update* pUpdate;
int version = 12;
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_APPEND_SPRITE_PACK);
pUpdate->setParam(0,"New12Effect.aspk 4199002");
pUpdate->setParam(1,"Data\\Image\\Effect.aspk");
pUpdate->setParam(2,"New12Effect.aspki 1014");
pUpdate->setParam(3,"Data\\Image\\Effect.aspki");
updateManager.push_back(pUpdate);
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"DomainExp.inf 11236");
pUpdate->setParam(1,"Data\\Info\\DomainExp.inf");
updateManager.push_back(pUpdate);
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"INTExp.inf 1204");
pUpdate->setParam(1,"Data\\Info\\INTExp.inf");
updateManager.push_back(pUpdate);
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"STRExp.inf 1204");
pUpdate->setParam(1,"Data\\Info\\STRExp.inf");
updateManager.push_back(pUpdate);
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"DEXExp.inf 1204");
pUpdate->setParam(1,"Data\\Info\\DEXExp.inf");
updateManager.push_back(pUpdate);
char filename[256];
sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
remove(filename);
updateManager.save(filename);
}
示例15: version16
void version16()
{
UpdateManager updateManager;
Update * pUpdate;
int version = 16;
//--------------------------------------------------------------------------------
// save
//--------------------------------------------------------------------------------
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"DarkEden.exe 3796992");
pUpdate->setParam(1,"DarkEden.exe");
updateManager.push_back(pUpdate);
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"Item.inf 20496");
pUpdate->setParam(1,"Data\\Info\\Item.inf");
updateManager.push_back(pUpdate);
pUpdate = new Update();
pUpdate->setVersion(version);
pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
pUpdate->setParam(0,"bamp00.map 238828");
pUpdate->setParam(1,"Data\\Image\\bamp00.map");
updateManager.push_back(pUpdate);
char filename[256];
sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR,version);
remove(filename);
updateManager.save(filename);
}