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:
@ -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;
|
||||
|
||||
|
@ -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; }
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user