From 627d814f487ac38d4f9b9b71da9bef46f33b3dad Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 11 Oct 2015 22:04:05 +0800 Subject: Implement the collision system and a simple effect. Fixed a problem that keeps the screen black on start up. Replace the build script in dtputil with makefile. Sync with the newest SMELT revision. --- tools/dtputil/anmutil.cpp | 5 +++-- tools/dtputil/build | 3 --- tools/dtputil/dtputil.cpp | 5 +++-- tools/dtputil/makefile | 10 ++++++++++ 4 files changed, 16 insertions(+), 7 deletions(-) delete mode 100755 tools/dtputil/build create mode 100644 tools/dtputil/makefile (limited to 'tools') diff --git a/tools/dtputil/anmutil.cpp b/tools/dtputil/anmutil.cpp index 6636e2c..fd5d376 100644 --- a/tools/dtputil/anmutil.cpp +++ b/tools/dtputil/anmutil.cpp @@ -45,7 +45,7 @@ int main(int argc,char** argv) puts(c); char *ptr=file.getFilePtr(c); if(!ptr)printf("error\n");else - printf("size:%lu, first bytes:%c%c%c\n",file.getFileSize(c),*ptr,*(ptr+1),*(ptr+2)); + printf("size:%u, CRC 0x%08X\n",file.getFileSize(c),file.getFileCRC(c)); file.releaseFilePtr(c); } } @@ -53,7 +53,8 @@ int main(int argc,char** argv) for(int i=3;i