-
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.
[MKW] Fix a bug that leads to the rejection of one's item request wit…
…hout justification The root cause of the bug is that the game utilizes the time at which a player receives an item as an identifier when responding to a client's request for an item. The aforementioned value is not unique.
- Loading branch information
1 parent
4a8f3d1
commit aee7ed4
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.