mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Use ResourcePath for referencing texts and json's
This commit is contained in:
@@ -561,7 +561,7 @@ std::vector<JsonNode> CSpellHandler::loadLegacyData()
|
||||
using namespace SpellConfig;
|
||||
std::vector<JsonNode> legacyData;
|
||||
|
||||
CLegacyConfigParser parser("DATA/SPTRAITS.TXT");
|
||||
CLegacyConfigParser parser(TextPath::builtin("DATA/SPTRAITS.TXT"));
|
||||
|
||||
auto readSchool = [&](JsonMap & schools, const std::string & name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user