FULLPIPE: Started scene loading

This commit is contained in:
Eugene Sandulenko 2013-06-20 16:39:05 -04:00
parent 2412eb23ad
commit bb4ea153ff
7 changed files with 92 additions and 26 deletions

View file

@ -285,4 +285,16 @@ CObject *MfcArchive::parseClass(bool *isCopyReturned) {
return res;
}
char *genFileName(int superId, int sceneId, const char *ext) {
char *s = (char *)calloc(256, 1);
if (superId) {
snprintf(s, 255, "%04d%04d.%s", superId, sceneId, ext);
} else {
snprintf(s, 255, "%04d.%s", sceneId, ext);
}
return s;
}
} // End of namespace Fullpipe