mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-29 21:56:54 +02:00
Register vcmi-only strings as part of 'vcmi' mod instead of 'core'
This commit is contained in:
parent
4947baebee
commit
050157db9d
@ -239,8 +239,8 @@ void CBonusTypeHandler::loadItem(const JsonNode & source, CBonusType & dest, con
|
||||
|
||||
if (!dest.hidden)
|
||||
{
|
||||
VLC->generaltexth->registerString( "core", dest.getNameTextID(), source["name"].String());
|
||||
VLC->generaltexth->registerString( "core", dest.getDescriptionTextID(), source["description"].String());
|
||||
VLC->generaltexth->registerString( "vcmi", dest.getNameTextID(), source["name"].String());
|
||||
VLC->generaltexth->registerString( "vcmi", dest.getDescriptionTextID(), source["description"].String());
|
||||
}
|
||||
|
||||
const JsonNode & graphics = source["graphics"];
|
||||
|
@ -500,6 +500,7 @@ CGeneralTextHandler::CGeneralTextHandler():
|
||||
readToVector("core.overview", "DATA/OVERVIEW.TXT" );
|
||||
readToVector("core.arraytxt", "DATA/ARRAYTXT.TXT" );
|
||||
readToVector("core.priskill", "DATA/PRISKILL.TXT" );
|
||||
readToVector("core.plcolors", "DATA/PLCOLORS.TXT" );
|
||||
readToVector("core.jktext", "DATA/JKTEXT.TXT" );
|
||||
readToVector("core.tvrninfo", "DATA/TVRNINFO.TXT" );
|
||||
readToVector("core.turndur", "DATA/TURNDUR.TXT" );
|
||||
@ -554,20 +555,6 @@ CGeneralTextHandler::CGeneralTextHandler():
|
||||
}
|
||||
while (parser.endLine());
|
||||
}
|
||||
{
|
||||
CLegacyConfigParser parser(TextPath::builtin("DATA/PLCOLORS.TXT"));
|
||||
size_t index = 0;
|
||||
do
|
||||
{
|
||||
std::string color = parser.readString();
|
||||
|
||||
registerString("core", {"core.plcolors", index}, color);
|
||||
color[0] = toupper(color[0]);
|
||||
registerString("core", {"vcmi.capitalColors", index}, color);
|
||||
index += 1;
|
||||
}
|
||||
while (parser.endLine());
|
||||
}
|
||||
{
|
||||
CLegacyConfigParser parser(TextPath::builtin("DATA/SEERHUT.TXT"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user