void Update::cbEndPaint(rdpContext* context) {
     Update *self = reinterpret_cast<wsgContext *>(context)->pUpdate;
     if (self) {
         self->EndPaint(context);
     }
 }
Beispiel #2
0
void version2()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 2;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"UI.spki 14");
	pUpdate->setParam(1,"Data\\Image\\UI.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"common_button.spk 22184");
	pUpdate->setParam(1,"Data\\UI\\spk\\common_button.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"AddonShadow.cfpk 1413570");
	pUpdate->setParam(1,"Data\\Image\\AddonShadow.cfpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemOption.inf 4715");
	pUpdate->setParam(1,"Data\\Info\\ItemOption.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"MousePointer.spk 16350");
	pUpdate->setParam(1,"Data\\UI\\spk\\MousePointer.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"AssembleMessageBoxCommon.spk 123968");
	pUpdate->setParam(1,"Data\\UI\\spk\\AssembleMessageBoxCommon.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Addon.cfpk 1413570");
	pUpdate->setParam(1,"Data\\Image\\Addon.cfpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Skill.inf 5921");
	pUpdate->setParam(1,"Data\\Info\\Skill.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Zone.inf 5304");
	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,"UI.spk 73662");
	pUpdate->setParam(1,"Data\\Image\\UI.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"SkillInfo.inf 7733");
	pUpdate->setParam(1,"Data\\Info\\SkillInfo.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"SkillMini.spk 100972");
	pUpdate->setParam(1,"Data\\UI\\spk\\SkillMini.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Creature.inf 24003");
	pUpdate->setParam(1,"Data\\Info\\Creature.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"String.inf 2439");
	pUpdate->setParam(1,"Data\\Info\\String.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"eslania_SW.map 563120");
	pUpdate->setParam(1,"Data\\Map\\eslania_SW.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ClientConfig.inf 263");
	pUpdate->setParam(1,"Data\\Info\\ClientConfig.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"AssembleMessageBoxButton.spk 41814");
	pUpdate->setParam(1,"Data\\UI\\spk\\AssembleMessageBoxButton.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"tutorial_heliport.mip 61");
	pUpdate->setParam(1,"Data\\Map\\tutorial_heliport.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"slayer_main.spk 470480");
	pUpdate->setParam(1,"Data\\UI\\spk\\slayer_main.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VampireGameMenu.spk 142870");
	pUpdate->setParam(1,"Data\\UI\\spk\\VampireGameMenu.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Item.inf 30409");
	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,"limbo_lair_NE.mip 61");
	pUpdate->setParam(1,"Data\\Map\\limbo_lair_NE.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"tutorial_bokdo.mip 110");
	pUpdate->setParam(1,"Data\\Map\\tutorial_bokdo.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Tutorial_Book.spk 563728");
	pUpdate->setParam(1,"Data\\UI\\spk\\Tutorial_Book.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"AssembleMessageBox.spk 120510");
	pUpdate->setParam(1,"Data\\UI\\spk\\AssembleMessageBox.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_cleric_B1.mip 169");
	pUpdate->setParam(1,"Data\\Map\\guild_cleric_B1.mip");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"DarkEden.exe 4247552");
	pUpdate->setParam(1,"DarkEden.exe");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"DEUtil.dll 32768");
	pUpdate->setParam(1,"DEUtil.dll");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
Beispiel #3
0
void Buffer::applyUpdate(const Update& update) {
    update.apply();
}
Beispiel #4
0
void version18()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 18;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"bathory_dungeon_B1F.mip 262");
	pUpdate->setParam(1,"Data\\Map\\bathory_dungeon_B1F.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Item.ispki 942");
	pUpdate->setParam(1,"Data\\UI\\spk\\Item.ispki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemDrop.ispk 556160");
	pUpdate->setParam(1,"Data\\Image\\ItemDrop.ispk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"vampire_village.map 149230");
	pUpdate->setParam(1,"Data\\Map\\vampire_village.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"slayers_training.mip 187");
	pUpdate->setParam(1,"Data\\Map\\slayers_training.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"bathory_dungeon_B3F.map 266674");
	pUpdate->setParam(1,"Data\\Map\\bathory_dungeon_B3F.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"eslania_NW.mip 51");
	pUpdate->setParam(1,"Data\\Map\\eslania_NW.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_cleric_4F.map 4304");
	pUpdate->setParam(1,"Data\\Map\\guild_cleric_4F.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"CreatureShadow.cfpki 270");
	pUpdate->setParam(1,"Data\\Image\\CreatureShadow.cfpki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Skill.rpk 19498");
	pUpdate->setParam(1,"Data\\UI\\txt\\Skill.rpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemTile.ispk 136688");
	pUpdate->setParam(1,"Data\\Image\\ItemTile.ispk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_army_4F.mip 47");
	pUpdate->setParam(1,"Data\\Map\\guild_army_4F.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"drobeta_SW.mip 26");
	pUpdate->setParam(1,"Data\\Map\\drobeta_SW.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Item.ispk 419102");
	pUpdate->setParam(1,"Data\\UI\\spk\\item.ispk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"CreatureShadow.cfpk 387307");
	pUpdate->setParam(1,"Data\\Image\\CreatureShadow.cfpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"bathory_dungeon_B1F.map 241144");
	pUpdate->setParam(1,"Data\\Map\\bathory_dungeon_B1F.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemDescription.spki 862");
	pUpdate->setParam(1,"Data\\UI\\spk\\ItemDescription.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_APPEND_SPRITE_PACK);
	pUpdate->setParam(0,"New18Effect.aspk 1293266");
	pUpdate->setParam(1,"Data\\Image\\Effect.aspk");
	pUpdate->setParam(2,"New18Effect.aspki 730");
	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,"guild_cleric_4F.mip 47");
	pUpdate->setParam(1,"Data\\Map\\guild_cleric_4F.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_cleric_3F.mip 167");
	pUpdate->setParam(1,"Data\\Map\\guild_cleric_3F.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"SkillIcon.spk 331662");
	pUpdate->setParam(1,"Data\\UI\\spk\\SkillIcon.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"bathory_dungeon_B2F.map 236896");
	pUpdate->setParam(1,"Data\\Map\\bathory_dungeon_B2F.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"limbo_lair_NW.mip 58");
	pUpdate->setParam(1,"Data\\Map\\limbo_lair_NW.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"drobeta_SE.mip 26");
	pUpdate->setParam(1,"Data\\Map\\drobeta_SE.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"limbo_lair_NE.mip 33");
	pUpdate->setParam(1,"Data\\Map\\limbo_lair_NE.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_army_4F.map 4304");
	pUpdate->setParam(1,"Data\\Map\\guild_army_4F.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_APPEND_SPRITE_PACK);
	pUpdate->setParam(0,"New18Creature.sspk 558166");
	pUpdate->setParam(1,"Data\\Image\\Creature.sspk");
	pUpdate->setParam(2,"New18Creature.sspki 4194");
	pUpdate->setParam(3,"Data\\Image\\Creature.sspki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_knight_4F.mip 47");
	pUpdate->setParam(1,"Data\\Map\\guild_knight_4F.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"SkillMini.spk 100972");
	pUpdate->setParam(1,"Data\\UI\\spk\\SkillMini.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"eslania_SE.mip 51");
	pUpdate->setParam(1,"Data\\Map\\eslania_SE.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"drobeta_NE.mip 33");
	pUpdate->setParam(1,"Data\\Map\\drobeta_NE.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_army_3F.mip 181");
	pUpdate->setParam(1,"Data\\Map\\guild_army_3F.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"bathory_lair.mip 40");
	pUpdate->setParam(1,"Data\\Map\\bathory_lair.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemTile.ifpk 1388");
	pUpdate->setParam(1,"Data\\Image\\ItemTile.ifpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"eslania_NE.mip 152");
	pUpdate->setParam(1,"Data\\Map\\eslania_NE.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_APPEND_SPRITE_PACK);
	pUpdate->setParam(0,"New18Tile.spk 5645274");
	pUpdate->setParam(1,"Data\\Image\\tile.spk");
	pUpdate->setParam(2,"New18Tile.spki 12682");
	pUpdate->setParam(3,"Data\\Image\\tile.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_APPEND_SPRITE_PACK);
	pUpdate->setParam(0,"New18ImageObject.sspk 36842");
	pUpdate->setParam(1,"Data\\Image\\ImageObject.sspk");
	pUpdate->setParam(2,"New18ImageObject.sspki 522");
	pUpdate->setParam(3,"Data\\Image\\ImageObject.sspki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"bathory_dungeon_B2F.mip 75");
	pUpdate->setParam(1,"Data\\Map\\bathory_dungeon_B2F.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"limbo_lair_SW.mip 58");
	pUpdate->setParam(1,"Data\\Map\\limbo_lair_SW.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"SkillIcon.spki 462");
	pUpdate->setParam(1,"Data\\UI\\spk\\SkillIcon.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"bathory_lair.map 33734");
	pUpdate->setParam(1,"Data\\Map\\bathory_lair.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"SkillMini.spki 462");
	pUpdate->setParam(1,"Data\\UI\\spk\\SkillMini.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_knight_3F.mip 174");
	pUpdate->setParam(1,"Data\\Map\\guild_knight_3F.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"drobeta_NW.mip 33");
	pUpdate->setParam(1,"Data\\Map\\drobeta_NW.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"eslania_SW.mip 51");
	pUpdate->setParam(1,"Data\\Map\\eslania_SW.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"slayers_training.map 679678");
	pUpdate->setParam(1,"Data\\Map\\slayers_training.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemDrop.afpk 8780");
	pUpdate->setParam(1,"Data\\Image\\ItemDrop.afpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_knight_4F.map 4304");
	pUpdate->setParam(1,"Data\\Map\\guild_knight_4F.map");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
Beispiel #5
0
	static void _runUpdate(IUpdate * nUpdate)
	{
		Update * update = reinterpret_cast<Update *>(nUpdate->mUpdate);
		update->_runUpdate();
	}
bool Magnetic::prepareUpdate(State &state, const Update &update) {
  // reset reference position if Magnetic has not been updated for a while
  if (timedout()) reference_.reset();

  if (reference_ != GlobalReference::Instance()) {
    reference_ = GlobalReference::Instance();
    if (auto_heading_) reference_->setCurrentHeading(state, getModel()->getTrueHeading(state, update.getVector()));
  }

  getModel()->setReference(reference_->heading());
  return true;
}
Beispiel #7
0
void version16()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 16;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"face.spk 253570");
	pUpdate->setParam(1,"Data\\UI\\spk\\face.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"slayer_sys_button.spk 43434");
	pUpdate->setParam(1,"Data\\UI\\spk\\slayer_sys_button.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Time.spk 98198");
	pUpdate->setParam(1,"Data\\UI\\spk\\Time.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"vampire_sys_button.spk 45826");
	pUpdate->setParam(1,"Data\\UI\\spk\\vampire_sys_button.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"vampire_etc.spk 160744");
	pUpdate->setParam(1,"Data\\UI\\spk\\vampire_etc.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Time.spki 26");
	pUpdate->setParam(1,"Data\\UI\\spk\\Time.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"face.spki 34");
	pUpdate->setParam(1,"Data\\UI\\spk\\face.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"vampire_main.spk 476434");
	pUpdate->setParam(1,"Data\\UI\\spk\\vampire_main.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"slayer_main.spk 470480");
	pUpdate->setParam(1,"Data\\UI\\spk\\slayer_main.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VampireSkillView.spki 14");
	pUpdate->setParam(1,"Data\\UI\\spk\\VampireSkillView.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"minimap.spki 154");
	pUpdate->setParam(1,"Data\\UI\\spk\\minimap.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"minimap.spk 1157772");
	pUpdate->setParam(1,"Data\\UI\\spk\\minimap.spk");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
Beispiel #8
0
void version21()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 21;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Item.inf 33074");
	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,"New18ImageObject.spk 1968462");
	pUpdate->setParam(1,"Data\\Image\\New18ImageObject.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"SkillInfo.inf 7966");
	pUpdate->setParam(1,"Data\\Info\\SkillInfo.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Creature.cfpk 387763");
	pUpdate->setParam(1,"Data\\Image\\Creature.cfpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Creature.cfpki 270");
	pUpdate->setParam(1,"Data\\Image\\Creature.cfpki");
	updateManager.push_back(pUpdate);



	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Chat.inf 10783");
	pUpdate->setParam(1,"Data\\Info\\Chat.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"DarkEden.exe 4276224");
	pUpdate->setParam(1,"DarkEden.exe");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"limbo_lair_SW.map 606494");
	pUpdate->setParam(1,"Data\\Map\\limbo_lair_SW.map");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
Beispiel #9
0
void version6()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 6;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"eslania_NE.map 692298");
	pUpdate->setParam(1,"Data\\Map\\eslania_NE.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"credit.spk 974002");
	pUpdate->setParam(1,"Data\\UI\\spk\\credit.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"drobeta_SW.map 858870");
	pUpdate->setParam(1,"Data\\Map\\drobeta_SW.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_cleric_1F.mip 162");
	pUpdate->setParam(1,"Data\\Map\\guild_cleric_1F.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"drobeta_stadium.map 76446");
	pUpdate->setParam(1,"Data\\Map\\drobeta_stadium.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"limbo_lair_NE.map 578298");
	pUpdate->setParam(1,"Data\\Map\\limbo_lair_NE.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"limbo_lair_SE.map 602508");
	pUpdate->setParam(1,"Data\\Map\\limbo_lair_SE.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_knight_B1.mip 204");
	pUpdate->setParam(1,"Data\\Map\\guild_knight_B1.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"drobeta_SE.map 618706");
	pUpdate->setParam(1,"Data\\Map\\drobeta_SE.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_cleric_B1.mip 169");
	pUpdate->setParam(1,"Data\\Map\\guild_cleric_B1.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"drobeta_NW.map 647922");
	pUpdate->setParam(1,"Data\\Map\\drobeta_NW.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"eslania_SW.map 562644");
	pUpdate->setParam(1,"Data\\Map\\eslania_SW.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Item.rpk 83923");
	pUpdate->setParam(1,"Data\\UI\\txt\\Item.rpk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemTile.ispki 922");
	pUpdate->setParam(1,"Data\\Image\\ItemTile.ispki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"eslania_SE.map 611136");
	pUpdate->setParam(1,"Data\\Map\\eslania_SE.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"drobeta_NE.map 649370");
	pUpdate->setParam(1,"Data\\Map\\drobeta_NE.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_army_B1.mip 174");
	pUpdate->setParam(1,"Data\\Map\\guild_army_B1.mip");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
Beispiel #10
0
void version2()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 2;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"common_button.spk 22184");
	pUpdate->setParam(1,"Data\\UI\\spk\\common_button.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"AddonShadow.cfpk 1413570");
	pUpdate->setParam(1,"Data\\Image\\AddonShadow.cfpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"MousePointer.spk 16350");
	pUpdate->setParam(1,"Data\\UI\\spk\\MousePointer.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"AssembleMessageBoxCommon.spk 123968");
	pUpdate->setParam(1,"Data\\UI\\spk\\AssembleMessageBoxCommon.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VampireGameMenu.spk 142870");
	pUpdate->setParam(1,"Data\\UI\\spk\\VampireGameMenu.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"AssembleMessageBox.spk 120510");
	pUpdate->setParam(1,"Data\\UI\\spk\\AssembleMessageBox.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ClientConfig.inf 263");
	pUpdate->setParam(1,"Data\\Info\\ClientConfig.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"AssembleMessageBoxButton.spk 41814");
	pUpdate->setParam(1,"Data\\UI\\spk\\AssembleMessageBoxButton.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"tutorial_heliport.mip 61");
	pUpdate->setParam(1,"Data\\Map\\tutorial_heliport.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Addon.cfpk 1413570");
	pUpdate->setParam(1,"Data\\Image\\Addon.cfpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"tutorial_bokdo.mip 110");
	pUpdate->setParam(1,"Data\\Map\\tutorial_bokdo.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Tutorial_Book.spk 563728");
	pUpdate->setParam(1,"Data\\UI\\spk\\Tutorial_Book.spk");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
Beispiel #11
0
void version4()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 4;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"limbo_dungeon.mip 299");
	pUpdate->setParam(1,"Data\\Map\\limbo_dungeon.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"UI.spk 73662");
	pUpdate->setParam(1,"Data\\Image\\UI.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"UI.spki 14");
	pUpdate->setParam(1,"Data\\Image\\UI.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_knight_2F.mip 160");
	pUpdate->setParam(1,"Data\\Map\\guild_knight_2F.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VampireSkillView.spk 375782");
	pUpdate->setParam(1,"Data\\UI\\spk\\VampireSkillView.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"eslania_dungeon.mip 320");
	pUpdate->setParam(1,"Data\\Map\\eslania_dungeon.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Book.rpk 20349");
	pUpdate->setParam(1,"Data\\UI\\txt\\Book.rpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"TutorialEtc.rpk 3452");
	pUpdate->setParam(1,"Data\\UI\\txt\\TutorialEtc.rpk");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
Beispiel #12
0
void version20()
{
	UpdateManager updateManager;
	Update* pUpdate;
	int version = 20;


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Effect.efpk 123088");
	pUpdate->setParam(1,"Data\\Image\\Effect.efpk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Creature.inf 27443");
	pUpdate->setParam(1,"Data\\Info\\Creature.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VD_drained.wav 179244");
	pUpdate->setParam(1,"Data\\Sound\\VD_drained.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VD_damage.wav 16428");
	pUpdate->setParam(1,"Data\\Sound\\VD_damage.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Help.rpk 10740");
	pUpdate->setParam(1,"Data\\UI\\txt\\Help.rpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"CreatureSprite.inf 1246");
	pUpdate->setParam(1,"Data\\Info\\CreatureSprite.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VD_die.wav 116780");
	pUpdate->setParam(1,"Data\\Sound\\VD_die.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"UICreature.cfpk 1578");
	pUpdate->setParam(1,"Data\\UI\\frame\\UICreature.cfpk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_knight_3F.map 40710");
	pUpdate->setParam(1,"Data\\Map\\guild_knight_3F.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ShopTemplate.inf 1204");
	pUpdate->setParam(1,"Data\\Info\\ShopTemplate.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Slayer_blade_TS.wav 69292");
	pUpdate->setParam(1,"Data\\Sound\\Slayer_blade_TS.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"BF_drain.wav 225580");
	pUpdate->setParam(1,"Data\\Sound\\BF_drain.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Action.inf 41685");
	pUpdate->setParam(1,"Data\\Info\\Action.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Creature.ispki 47514");
	pUpdate->setParam(1,"Data\\Image\\Creature.ispki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"NpcFace.spk 1478514");
	pUpdate->setParam(1,"Data\\UI\\spk\\NpcFace.spk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Slayer_Enchant_Identify.wav 161412");
	pUpdate->setParam(1,"Data\\Sound\\Slayer_Enchant_Identify.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"bathory_dungeon_B3F.mip 156");
	pUpdate->setParam(1,"Data\\Map\\bathory_dungeon_B3F.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Slayer_Heal_Sacrifice.wav 110380");
	pUpdate->setParam(1,"Data\\Sound\\Slayer_Heal_Sacrifice.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"EffectStatus.inf 587");
	pUpdate->setParam(1,"Data\\Info\\EffectStatus.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Slayer_Enchant_DetectInvisibility.wav 71980");
	pUpdate->setParam(1,"Data\\Sound\\Slayer_Enchant_DetectInvisibility.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"limbo_lair_SE.mip 233");
	pUpdate->setParam(1,"Data\\Map\\limbo_lair_SE.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"UICreature.ispk 583074");
	pUpdate->setParam(1,"Data\\UI\\spk\\UICreature.ispk");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_army_3F.map 41686");
	pUpdate->setParam(1,"Data\\Map\\guild_army_3F.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemOption.inf 4714");
	pUpdate->setParam(1,"Data\\Info\\ItemOption.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Slayer_enchant_PFA.wav 66988");
	pUpdate->setParam(1,"Data\\Sound\\Slayer_enchant_PFA.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Slayer_sword_SW.wav 47660");
	pUpdate->setParam(1,"Data\\Sound\\Slayer_sword_SW.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Slayer_sword_LH.wav 30590");
	pUpdate->setParam(1,"Data\\Sound\\Slayer_sword_LH.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"BF_attack.wav 35948");
	pUpdate->setParam(1,"Data\\Sound\\BF_attack.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VD_attack.wav 28108");
	pUpdate->setParam(1,"Data\\Sound\\VD_attack.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"BF_die.wav 192044");
	pUpdate->setParam(1,"Data\\Sound\\BF_die.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"NpcFace.spki 190");
	pUpdate->setParam(1,"Data\\UI\\spk\\NpcFace.spki");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Slayer_sword_SC.wav 47468");
	pUpdate->setParam(1,"Data\\Sound\\Slayer_sword_SC.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"BF_damage.wav 21452");
	pUpdate->setParam(1,"Data\\Sound\\BF_damage.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Sound.inf 9547");
	pUpdate->setParam(1,"Data\\Info\\Sound.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"NPCScript.inf 48008");
	pUpdate->setParam(1,"Data\\Info\\NPCScript.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"DEUtil.dll 32768");
	pUpdate->setParam(1,"DEUtil.dll");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"vampire_village.mip 215");
	pUpdate->setParam(1,"Data\\Map\\vampire_village.mip");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild_cleric_3F.map 42942");
	pUpdate->setParam(1,"Data\\Map\\guild_cleric_3F.map");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Zone.inf 6165");
	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,"EffectSpriteType.inf 868");
	pUpdate->setParam(1,"Data\\Info\\EffectSpriteType.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Skill.inf 5935");
	pUpdate->setParam(1,"Data\\Info\\Skill.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Vampire_AcidSwamp.wav 103468");
	pUpdate->setParam(1,"Data\\Sound\\Vampire_AcidSwamp.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VampireExp.inf 1204");
	pUpdate->setParam(1,"Data\\Info\\VampireExp.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"VD_drain.wav 216364");
	pUpdate->setParam(1,"Data\\Sound\\VD_drain.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"BF_drained.wav 181036");
	pUpdate->setParam(1,"Data\\Sound\\BF_drained.wav");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"NPC.inf 548");
	pUpdate->setParam(1,"Data\\Info\\NPC.inf");
	updateManager.push_back(pUpdate);


	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"String.inf 2729");
	pUpdate->setParam(1,"Data\\Info\\String.inf");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"New18Creature.ispk 4343846");
	pUpdate->setParam(1,"Data\\Image\\New18Creature.ispk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_DIRECTORY);
	pUpdate->setParam(0,"Data\\Profile");
	updateManager.push_back(pUpdate);


	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR, version);
	remove(filename);
	updateManager.save(filename);
}
Beispiel #13
0
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);

}
Beispiel #14
0
void version14()
{

	UpdateManager updateManager;
	Update * pUpdate;
	int version = 14;

	//--------------------------------------------------------------------------------
	// save
	//--------------------------------------------------------------------------------
	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Action.inf 23527");
	pUpdate->setParam(1,"Data\\Info\\Action.inf");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Chat.inf 10569");
	pUpdate->setParam(1,"Data\\Info\\Chat.inf");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ClientConfig.inf 177");
	pUpdate->setParam(1,"Data\\Info\\ClientConfig.inf");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Config.exe 36864");
	pUpdate->setParam(1,"Config.exe");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Creature.inf 7084");
	pUpdate->setParam(1,"Data\\Info\\Creature.inf");
	updateManager.push_back(pUpdate);
	//5

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Effect.efpk 57668");
	pUpdate->setParam(1,"Data\\Image\\Effect.efpk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"EffectSpriteType.inf 304");
	pUpdate->setParam(1,"Data\\Info\\EffectSpriteType.inf");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"EffectStatus.inf 158");
	pUpdate->setParam(1,"Data\\Info\\EffectStatus.inf");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Etc.spk 14830");
	pUpdate->setParam(1,"Data\\Image\\Etc.spk");
	updateManager.push_back(pUpdate);
	//10

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Exchange.spk 380028");
	pUpdate->setParam(1,"Data\\UI\\SPK\\Exchange.spk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ExchangeVampire.spk 437152");
	pUpdate->setParam(1,"Data\\UI\\SPK\\ExchangeVampire.spk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Exit-01.map 541650");
	pUpdate->setParam(1,"Data\\Map\\Exit-01.map");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Exit-02.map 699632");
	pUpdate->setParam(1,"Data\\Map\\Exit-02.map");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Exit-03.map 568822");
	pUpdate->setParam(1,"Data\\Map\\Exit-03.map");
	updateManager.push_back(pUpdate);
	//15

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Exit-04.map 602400");
	pUpdate->setParam(1,"Data\\Map\\Exit-04.map");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemBroken.afpk 982");
	pUpdate->setParam(1,"Data\\Image\\ItemBroken.afpk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemBroken.ifpk 140");
	pUpdate->setParam(1,"Data\\Image\\ItemBroken.ifpk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemBroken.spk 35130");
	pUpdate->setParam(1,"Data\\Image\\ItemBroken.spk");
	updateManager.push_back(pUpdate);
	//20

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemDrop.afpk 5550");
	pUpdate->setParam(1,"Data\\Image\\ItemDrop.afpk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemTile.ifpk 878");
	pUpdate->setParam(1,"Data\\Image\\ItemTile.ifpk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemTile.ispk 90292");
	pUpdate->setParam(1,"Data\\Image\\ItemTile.ispk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"NPC.inf 176");
	pUpdate->setParam(1,"Data\\Info\\NPC.inf");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_APPEND_SPRITE_PACK);
	pUpdate->setParam(0,"NewEffect.aspk 991390");
	pUpdate->setParam(1,"Data\\Image\\Effect.aspk");
	pUpdate->setParam(2,"NewEffect.aspki 250");
	pUpdate->setParam(3,"Data\\Image\\Effect.aspki");
	updateManager.push_back(pUpdate);
	//26

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_APPEND_SPRITE_PACK);
	pUpdate->setParam(0,"NewImageObject.spk 2133494");
	pUpdate->setParam(1,"Data\\Image\\ImageObject.spk");
	pUpdate->setParam(2,"NewImageObject.spki 314");
	pUpdate->setParam(3,"Data\\Image\\ImageObject.spki");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_APPEND_SPRITE_PACK);
	pUpdate->setParam(0,"NewImageObject.sspk 5946");
	pUpdate->setParam(1,"Data\\Image\\ImageObject.sspk");
	pUpdate->setParam(2,"NewImageObject.sspki 314");
	pUpdate->setParam(3,"Data\\Image\\ImageObject.sspki");
	updateManager.push_back(pUpdate);
	//30

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_APPEND_SPRITE_PACK);
	pUpdate->setParam(0,"NewTile.spk 5866180");
	pUpdate->setParam(1,"Data\\Image\\Tile.spk");
	pUpdate->setParam(2,"NewTile.spki 15282");
	pUpdate->setParam(3,"Data\\Image\\Tile.spki");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ShopTemplate.inf 379");
	pUpdate->setParam(1,"Data\\Info\\ShopTemplate.inf");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Skill.inf 4626");
	pUpdate->setParam(1,"Data\\Info\\Skill.inf");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Storage.spk 490982");
	pUpdate->setParam(1,"Data\\UI\\SPK\\Storage.spk");
	updateManager.push_back(pUpdate);
	//35

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"StorageVampire.spk 535284");
	pUpdate->setParam(1,"Data\\UI\\SPK\\StorageVampire.spk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"String.inf 1844");
	pUpdate->setParam(1,"Data\\Info\\String.inf");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"UserOption.inf 32");
	pUpdate->setParam(1,"Data\\Info\\UserOption.inf");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"Zone.inf 632");
	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,"bg00.spr 49234");
	pUpdate->setParam(1,"Data\\Image\\bg00.spr");
	updateManager.push_back(pUpdate);
	//40

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"gb1.spr 47226");
	pUpdate->setParam(1,"Data\\Image\\gb1.spr");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild-1.map 43222");
	pUpdate->setParam(1,"Data\\Map\\guild-1.map");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild-2.map 41110");
	pUpdate->setParam(1,"Data\\Map\\guild-2.map");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild-3.map 44778");
	pUpdate->setParam(1,"Data\\Map\\guild-3.map");
	updateManager.push_back(pUpdate);
	//45

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"guild-B1.map 36636");
	pUpdate->setParam(1,"Data\\Map\\guild-B1.map");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"itemDrop.ispk 351268");
	pUpdate->setParam(1,"Data\\Image\\itemDrop.ispk");
	updateManager.push_back(pUpdate);

	pUpdate = new Update();
	pUpdate->setVersion(version);
	pUpdate->setUpdateType(UPDATETYPE_CREATE_FILE);
	pUpdate->setParam(0,"ItemOption.inf 2684");
	pUpdate->setParam(1,"Data\\Info\\ItemOption.inf");
	updateManager.push_back(pUpdate);
	//48

	char filename[256];
	sprintf(filename,"%s/v%05d/index.dat",PATCH_DIR,version);
	remove(filename);
	updateManager.save(filename);

}
 void Update::cbSetBounds(rdpContext* context, rdpBounds* bounds) {
     Update *self = reinterpret_cast<wsgContext *>(context)->pUpdate;
     if (self) {
         self->SetBounds(context, bounds);
     }
 }
Beispiel #16
0
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);
}
 void Update::cbSynchronize(rdpContext* context) {
     Update *self = reinterpret_cast<wsgContext *>(context)->pUpdate;
     if (self) {
         self->Synchronize(context);
     }
 }
Beispiel #18
0
int Update::update_thread(void *p)
{
    Update *update = static_cast<Update *>(p);
    return update->Thread();
}