mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Read new MercOpinions.xml format (#323)
Requires accompanying gameDir change. MercOpinions.xml now only contains opinions that are not 0. A new tag with fields "id" and "modifier" are used instead of old ones that had 255 <Opinion%d> $value$ </Opinion%d> tags for all profiles. Loading time of MercOpinions.xml went down from ~4.047 s to 0.011 s due to this change with default 1.13 VFS config. A small cmd utility tool for converting existing MercOpinions.xml data into the new format is available at https://github.com/Asdow/JA2-ConvertXMLData/tree/master
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef __XML_H
|
||||
#define __XML_H
|
||||
|
||||
#include "expat.h"
|
||||
#include "armsdealerinvinit.h"
|
||||
#include "EnemyItemDrops.h"
|
||||
#include "Loading Screen.h"
|
||||
@@ -581,4 +582,6 @@ extern BOOLEAN ReadInAimOldArchive(STR fileName, BOOLEAN localizedVersion);
|
||||
extern BOOLEAN ReadInHistorys(STR fileName, BOOLEAN localizedVersion );
|
||||
extern BOOLEAN ReadInDifficultySettings(STR fileName, BOOLEAN localizedVersion);
|
||||
|
||||
extern const XML_Char* GetAttribute(const XML_Char* name, const XML_Char** atts);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user