/*************************/ /*** Dave Lib Routines ***/ /*************************/ #include #include #include "stdio.h" #include #include #include #include #include #include #include #include "psxtypes.h" #include "FaceStore.h" #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