1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +00:00

Obliterate hsBool

This commit is contained in:
2012-07-11 01:28:00 -04:00
parent 5f78b33db4
commit a709e17069
1041 changed files with 7889 additions and 8070 deletions

View File

@ -104,7 +104,7 @@ void plAgePage::SetFlags(uint8_t f, bool on)
}
// now preservs original string
hsBool plAgePage::SetFromString( const char *stringIn )
bool plAgePage::SetFromString( const char *stringIn )
{
char *c, seps[] = ", \n";
std::string string = stringIn;
@ -396,7 +396,7 @@ const char *plAgeDescription::GetSectionName( void ) const
return "AgeInfo";
}
hsBool plAgeDescription::IParseToken( const char *token, hsStringTokenizer *tokenizer, uint32_t userData )
bool plAgeDescription::IParseToken( const char *token, hsStringTokenizer *tokenizer, uint32_t userData )
{
char *tok;

View File

@ -86,7 +86,7 @@ class plAgePage
void SetSeqSuffix( uint32_t s ) { fSeqSuffix = s; }
void SetFlags(uint8_t f, bool on=true);
hsBool SetFromString( const char *string );
bool SetFromString( const char *string );
char *GetAsString( void ) const;
plAgePage &operator=( const plAgePage &src );
@ -118,7 +118,7 @@ private:
void IDeInit( void );
// Overload for plInitSectionTokenReader
virtual hsBool IParseToken( const char *token, hsStringTokenizer *tokenizer, uint32_t userData );
virtual bool IParseToken( const char *token, hsStringTokenizer *tokenizer, uint32_t userData );
public:
static char kAgeDescPath[];
@ -169,10 +169,10 @@ public:
int32_t GetSequencePrefix( void ) const { return fSeqPrefix; }
uint32_t GetReleaseVersion( void ) const { return fReleaseVersion; }
hsBool IsGlobalAge( void ) const { return ( fSeqPrefix < 0 ) ? true : false; }
bool IsGlobalAge( void ) const { return ( fSeqPrefix < 0 ) ? true : false; }
// Setters
hsBool SetStart(short year, short month, short day, short hour, short minute, short second)
bool SetStart(short year, short month, short day, short hour, short minute, short second)
{ return fStart.SetTime(year,month,day,hour,minute,second); }
void SetDayLength(const float l) { fDayLength = l; }

View File

@ -151,7 +151,7 @@ protected:
virtual const char* GetSectionName() const { return "version"; }
virtual hsBool IParseToken(const char* token, hsStringTokenizer* tokenizer, uint32_t userData)
virtual bool IParseToken(const char* token, hsStringTokenizer* tokenizer, uint32_t userData)
{
if (stricmp(token, "format") == 0)
fDest->SetFormatVersion(atoi(tokenizer->next()));
@ -185,7 +185,7 @@ protected:
return new plManifestFile(name, "", sum, size, zippedSize, flags);
}
virtual hsBool IParseToken(const char* token, hsStringTokenizer* tokenizer, uint32_t userData)
virtual bool IParseToken(const char* token, hsStringTokenizer* tokenizer, uint32_t userData)
{
plManifestFile* file = IReadManifestFile(token, tokenizer, userData, false);
AddFile(file);