/*
-Copyright (C) 2004-2010 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
remove(tempPath);
- SDL_Delay(250); // wait a bit, just to be sure!
-
if (music != NULL)
{
Mix_HaltMusic();
return false;
}
- snprintf(tempPath, sizeof tempPath, "%s.tags", filename);
+ #if USEPAK
+ snprintf(tempPath, sizeof tempPath, "%smusic.tags", engine->userHomeDirectory);
+ remove(tempPath);
+ char tagfilename[PATH_MAX];
+ snprintf(tagfilename, sizeof tagfilename, "%s.tags", filename);
+ engine->unpack(tagfilename, PAK_TAGS);
+ #else
+ snprintf(tempPath, sizeof tempPath, "%s.tags", filename);
+ #endif
FILE *fp = fopen(tempPath, "r");
char line[1024];