FULLPIPE: Started scene loading
This commit is contained in:
parent
2412eb23ad
commit
bb4ea153ff
7 changed files with 92 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue