- added another option when converting model textures (keepsmallest)

This commit is contained in:
Mark Vejvoda
2011-03-13 09:57:04 +00:00
parent 39bf1b986e
commit d0a95b1ff5
5 changed files with 68 additions and 29 deletions

View File

@@ -1384,6 +1384,12 @@ bool renameFile(string oldFile, string newFile) {
return (result == 0);
}
long getFileSize(string filename) {
struct stat stbuf;
stat(filename.c_str(), &stbuf);
return stbuf.st_size;
}
// =====================================
// ModeInfo
// =====================================