01-07-2016, 07:03 PM
(01-07-2016, 03:19 PM)Yarcaz Wrote: it makes me wonder why MKDS Course Editor was able to open the other ".nsbtx.small" & ".nsbmd.small" files just fine without having to "desmall" them first.
Because MKDS Course Editor probably desmalls the file automatically first.
If the file ends with ".small", try to decompress it. If the file fails to open as normal, try to decompress it.
I.e. in pseudocode:
Code:
if (endsWith(file, ".small"))
desmall(file);
if (openAsNSBTX(file) == FAIL) {
desmall(file);
openAsNSBTX(file);
}
(There's unfortunately no easy-to-recognize magic value for these compressed files.)