*/
#include "headers.h"
+#include <errno.h>
Engine::Engine()
{
}
}
- if ((fileType == PAK_MUSIC) || (fileType == PAK_FONT))
+ if ((fileType == PAK_MUSIC) || (fileType == PAK_FONT) || (fileType == PAK_TAGS))
{
char tempPath[PATH_MAX];
fp = fopen(tempPath, "wb");
}
+ if (fileType == PAK_TAGS)
+ {
+ snprintf(tempPath, sizeof tempPath, "%smusic.tags", userHomeDirectory);
+ fp = fopen(tempPath, "wb");
+ }
+
if (fileType == PAK_FONT)
{
snprintf(tempPath, sizeof tempPath, "%sfont.ttf", userHomeDirectory);
if (!fp)
{
+ printf("Fatal Error: could not open %s for writing: %s", tempPath, strerror(errno));
return false;
}