diff options
author | Chris Xiong <chirs241097@gmail.com> | 2015-10-11 22:16:30 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2015-10-11 22:16:30 +0800 |
commit | bdcabc1e059ba9415e8d1f8cb436c77545680670 (patch) | |
tree | 18bd9f864290b6ad2258b143817e8bccbc3ae657 /extensions | |
parent | c279262556b2ffb4324cc6e52b4d4dd9cd1bd91a (diff) | |
download | SMELT-bdcabc1e059ba9415e8d1f8cb436c77545680670.tar.xz |
Add smDtpFileR::getFileCRC.
Modify anmutil and dtputil.
Make the example compatible with Arch Linux.
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/smdatapack.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/smdatapack.cpp b/extensions/smdatapack.cpp index 8b2c12b..fa572da 100644 --- a/extensions/smdatapack.cpp +++ b/extensions/smdatapack.cpp @@ -126,6 +126,8 @@ void smDtpFileR::releaseFilePtr(const char* path) } DWORD smDtpFileR::getFileSize(const char* path) {if(m.find(std::string(path))==m.end()){printf("error: file not found in the archive.\n");return 0;}return m[std::string(path)].size;} +DWORD smDtpFileR::getFileCRC(const char* path) +{if(m.find(std::string(path))==m.end()){printf("error: file not found in the archive.\n");return 0;}return m[std::string(path)].crc;} smDtpFileW::smDtpFileW(){fcnt=0;} bool smDtpFileW::addFile(const char* path,const char* realpath) |