-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from MikeIsAStar/fix-item-negotiation-bug
[MKW] Fix a bug that leads to the rejection of one's item request without justification
- Loading branch information
Showing
6 changed files
with
186 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#pragma once | ||
|
||
#include <wwfcUtil.h> | ||
|
||
namespace mkw::System | ||
{ | ||
|
||
#if RMC | ||
|
||
class RaceManager | ||
{ | ||
public: | ||
u32 timer() const | ||
{ | ||
return m_timer; | ||
} | ||
|
||
static RaceManager* Instance() | ||
{ | ||
return s_instance; | ||
} | ||
|
||
private: | ||
/* 0x00 */ u8 _00[0x20 - 0x00]; | ||
/* 0x20 */ u32 m_timer; | ||
/* 0x24 */ u8 _24[0x4C - 0x24]; | ||
|
||
static RaceManager* s_instance | ||
AT(RMCXD_PORT(0x809BD730, 0x809B8F70, 0x809BC790, 0x809ABD70)); | ||
}; | ||
|
||
static_assert(sizeof(RaceManager) == 0x4C); | ||
|
||
#endif | ||
|
||
} // namespace mkw::System |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.