mirror of
https://github.com/projectPiki/pikmin2.git
synced 2025-02-26 08:40:02 +00:00
Cleanup inline usage in Demo::initiate
Co-Authored-By: roeming <25447777+roeming@users.noreply.github.com>
This commit is contained in:
parent
32dc3ebb1a
commit
28e2be45ed
@ -23,32 +23,6 @@ struct DemoInitiator {
|
||||
void numberSet(const char*, const char*, u8);
|
||||
void setDefault(const char*, u8, u32);
|
||||
|
||||
// these likely correspond to inlined functions above
|
||||
inline void assertInitialized(char* buffer, u32* AST_ID)
|
||||
{
|
||||
mAST_ID = AST_ID;
|
||||
|
||||
mSongChosen = false;
|
||||
P2ASSERTLINE(41, isInitialized());
|
||||
|
||||
*mAST_ID = -1;
|
||||
strcpy(buffer, "");
|
||||
*mByte = -1;
|
||||
}
|
||||
|
||||
inline bool isInitialized() { return mByte && mName; }
|
||||
|
||||
inline void SetSongIfNotSet(u32 id, const char* comp)
|
||||
{
|
||||
if (!mSongChosen) {
|
||||
if (strcmp(mName, comp) == 0) {
|
||||
mSongChosen = true;
|
||||
*mAST_ID = id;
|
||||
*mByte = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
u8* mByte; // _00
|
||||
const char* mName; // _04
|
||||
bool mSongChosen; // _08
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user