/*************************/ /*** Dave Lib Routines ***/ /*************************/ #include #include #include "stdio.h" #include #include #include #include #include #include #include #include "psxtypes.h" #include "FaceStore.h" #include #include "..\..\..\tools\data\include\dStructs.h" #include "DaveLib.h" GString OutStr,IncludeFile; bool DebugOn= false; float Scale=1.0; int StripLength=3; FileCycle MyFiles; //*************************************************************************** void DebugStr() {if (DebugOn) std::cout<3 && (Str[0]=='-' || Str[0]=='/') && (Str[2]==':' || Str[2]==':')) RetStr=&Str[3]; else GObject::Error(ERR_FATAL,"Problem with cmd line option %s",Str); return(RetStr); } //*************************************************************************** bool CheckPlusMinus(const char * Str) { if (strlen(Str)==3 && (Str[0]=='-' || Str[0]=='/') && (Str[2]=='-' || Str[2]=='+')) { } else GObject::Error(ERR_FATAL,"Problem with cmd line option %s",Str); return(Str[2]=='+'); } //*************************************************************************** int ZeroAndCountCommas(char * Str) { int Len=strlen(Str); int NumOfCommas=0; for (int f=0;f', '?', '@', '{', '}', '[', ']', '¼', }; static const int nbBadFileChars = (sizeof(BadFileChars) / sizeof(char)); GString ReplaceBadFileChars(GString s) { GString out; const char *textin = (const char*)s; char *textout = new char[s.Len()+1]; memset(textout, 0, s.Len()+1); int i, p; p=0; for (i=0; i