mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Use ResourcePath for audio files
This commit is contained in:
@@ -90,7 +90,7 @@ TEST(MapFormat, Random)
|
||||
|
||||
static JsonNode getFromArchive(CZipLoader & archive, const std::string & archiveFilename)
|
||||
{
|
||||
ResourcePath resource(archiveFilename, EResType::TEXT);
|
||||
JsonPath resource = JsonPath::builtin(archiveFilename);
|
||||
|
||||
if(!archive.existsResource(resource))
|
||||
throw std::runtime_error(archiveFilename + " not found");
|
||||
|
||||
Reference in New Issue
Block a user