当前位置: 首页>>代码示例>>C++>>正文


C++ UpdateManager类代码示例

本文整理汇总了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();
  }
}
开发者ID:Jeromnimo,项目名称:wowmodelviewer,代码行数:25,代码来源:main.cpp

示例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);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:28,代码来源:info.cpp

示例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);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:28,代码来源:p21.cpp

示例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);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:12,代码来源:info.cpp

示例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);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:13,代码来源:update2.cpp

示例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;
    });
}
开发者ID:zerksud,项目名称:projectz-ndk,代码行数:16,代码来源:Engine.cpp

示例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 );
}
开发者ID:Tarnyko,项目名称:dali-core,代码行数:8,代码来源:render-task-list-impl.cpp

示例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 );
}
开发者ID:mettalla,项目名称:dali,代码行数:10,代码来源:render-task-list-impl.cpp

示例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);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:20,代码来源:p21.cpp

示例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);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:20,代码来源:info.cpp

示例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);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:20,代码来源:info.cpp

示例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);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:20,代码来源:info.cpp

示例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);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:20,代码来源:p21.cpp

示例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);
}
开发者ID:hillwah,项目名称:darkeden,代码行数:54,代码来源:p21.cpp

示例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);

}
开发者ID:hillwah,项目名称:darkeden,代码行数:37,代码来源:semiup.cpp


注:本文中的UpdateManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。