Extract voicegroups

This commit is contained in:
octorock
2021-09-11 15:56:10 +02:00
parent 8de026b945
commit 5b71bd95f7
4 changed files with 7331 additions and 2838 deletions
+7 -2
View File
@@ -31,8 +31,13 @@ AsmFile::AsmFile(std::string filename) : m_filename(filename)
{
FILE *fp = std::fopen(filename.c_str(), "rb");
if (fp == NULL)
FATAL_ERROR("Failed to open \"%s\" for reading.\n", filename.c_str());
if (fp == NULL) {
// TODO pass current build assets path to preproc
fp = std::fopen(("build/tmc_eu/assets/" + filename).c_str(), "rb");
if (fp == NULL)
FATAL_ERROR("Failed to open \"%s\" for reading.\n", filename.c_str());
}
std::fseek(fp, 0, SEEK_END);