mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-14 08:47:57 -05:00
Use ZoneState to check whether localize key is duplicated
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Game/GameLanguage.h"
|
||||
#include "Localize/LocalizeReadingZoneState.h"
|
||||
#include "Parsing/IParserLineStream.h"
|
||||
|
||||
#include <map>
|
||||
@ -14,12 +15,13 @@ class LocalizeFileReader
|
||||
IParserLineStream* m_stream;
|
||||
std::vector<std::unique_ptr<IParserLineStream>> m_open_streams;
|
||||
GameLanguage m_language;
|
||||
LocalizeReadingZoneState* m_zone_state;
|
||||
|
||||
bool OpenBaseStream(std::istream& stream);
|
||||
void SetupStreamProxies();
|
||||
|
||||
public:
|
||||
LocalizeFileReader(std::istream& stream, std::string fileName, GameLanguage language);
|
||||
LocalizeFileReader(std::istream& stream, std::string fileName, GameLanguage language, LocalizeReadingZoneState* zoneState);
|
||||
|
||||
std::map<std::string, std::string> ReadLocalizeFile();
|
||||
};
|
||||
|
Reference in New Issue
Block a user