-
Notifications
You must be signed in to change notification settings - Fork 109
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 #342 from red031000/master
decompile save_follow_mon
- Loading branch information
Showing
7 changed files
with
54 additions
and
109 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,38 @@ | ||
#include "save_follow_mon.h" | ||
|
||
#include "global.h" | ||
|
||
#include "save_arrays.h" | ||
|
||
u32 Save_FollowMon_sizeof(void) { | ||
return sizeof(SaveFollowMon); | ||
} | ||
|
||
void Save_FollowMon_Init(SaveFollowMon *followMon) { | ||
memset(followMon, 0, sizeof(SaveFollowMon)); | ||
followMon->mapNo = 0; | ||
} | ||
|
||
SaveFollowMon *Save_FollowMon_Get(SaveData *saveData) { | ||
return (SaveFollowMon *)SaveArray_Get(saveData, SAVE_FOLLOW_MON); | ||
} | ||
|
||
void Save_FollowMon_SetMapID(u32 mapNo, SaveFollowMon *followMon) { | ||
followMon->mapNo = mapNo; | ||
} | ||
|
||
u32 Save_FollowMon_GetMapID(SaveFollowMon *followMon) { | ||
return followMon->mapNo; | ||
} | ||
|
||
void Save_FollowMon_SetUnused2bitField(u8 value, SaveFollowMon *followMon) { | ||
followMon->unused = value; | ||
} | ||
|
||
void Save_FollowMon_SetInhibitFlagState(SaveFollowMon *followMon, u8 flag) { | ||
followMon->inhibitFlag = flag; | ||
} | ||
|
||
u8 Save_FollowMon_GetInhibitFlagState(SaveFollowMon *followMon) { | ||
return (u8)followMon->inhibitFlag; | ||
} |
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