From: Laszlo T. <ave...@us...> - 2011-02-07 20:25:59
|
ielister: Total/Midnight Commander lister plugin for displaying IE filetypes The branch master has been updated via dc76a5cc72b5f45fa16471dde80691c90e02e911 (commit) Summary of changes: ielister.cpp | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) from 284ffe40835a3fc564aac384174e74a9e05191f8 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://gemrb.git.sourceforge.net/git/gitweb.cgi?p=gemrb/ielister;a=commitdiff;h=dc76a5cc72b5f45fa16471dde80691c90e02e911 commit dc76a5cc72b5f45fa16471dde80691c90e02e911 Author: Avenger <ave...@so...> Date: Mon Feb 7 21:25:16 2011 +0100 fixed unprintable characters added wav resource field to pst regions diff --git a/ielister.cpp b/ielister.cpp index b818ac8..fddebf7 100644 --- a/ielister.cpp +++ b/ielister.cpp @@ -300,6 +300,17 @@ char* strlcpy(char* p,char*p2,int maxlen) return p; } +void cmemcpy(char*p, char *p2, int maxlen) +{ + for(int i=0;i<maxlen;i++) { + if (p2[i]<32 && p2[i]) { + p[i]='?'; + } else { + p[i]=p2[i]; + } + } +} + int OutStream::DrawIndent() { if(indent<0 || indent>4) @@ -355,6 +366,7 @@ int OutStream::AddString(int length, const char *label) return -1; } } + cmemcpy(tmpstr,tmpstr,length); if(!signature[0]) { memcpy(signature,tmpstr,RESREFSIZE); @@ -2118,19 +2130,20 @@ retry: os.AddString(RESREFSIZE,"Key"); os.AddString(RESREFSIZE,"Script"); os.AddPoint("Use point"); - for(k=0;k<11;k++) + for(k=0;k<9;k++) { os.AddDword("UNKNOWN"); } - os.AddPoint("Unknown point"); if (pst) { + os.AddString(RESREFSIZE,"Wav"); + os.AddPoint("Talk point"); os.AddDword("Name strref"); - os.AddString(RESREFSIZE,"Dialog"); //? + os.AddString(RESREFSIZE,"Dialog"); } else { - for(k=0;k<3;k++) + for(k=0;k<6;k++) { os.AddDword("UNKNOWN"); } ----------------------------------------------------------------------- This is an automated email from the git hooks/post-receive script. -- ielister: Total/Midnight Commander lister plugin for displaying IE filetypes |