forked from zeldaret/oot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into cleanup_colchk_1
- Loading branch information
Showing
101 changed files
with
2,404 additions
and
1,949 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,21 @@ | ||
#ifndef MEMPAK_H | ||
#define MEMPAK_H | ||
|
||
#include "ultra64.h" | ||
|
||
s32 Mempak_Init(s32 controllerNum); | ||
s32 Mempak_GetFreeBytes(s32 controllerNum); | ||
s32 Mempak_FindFiles(s32 controllerNum, char start, char end); | ||
s32 Mempak_Write(s32 controllerNum, char letter, void* buffer, s32 offset, s32 size); | ||
s32 Mempak_Read(s32 controllerNum, char letter, void* buffer, s32 offset, s32 size); | ||
s32 Mempak_CreateFile(s32 controllerNum, char* letter, s32 size); | ||
s32 Mempak_DeleteFile(s32 controllerNum, char letter); | ||
s32 Mempak_GetFileSize(s32 controllerNum, char letter); | ||
|
||
// Converts a file letter to its numerical index | ||
#define MEMPAK_LETTER_TO_INDEX(c) ((c) - 'A') | ||
|
||
// Converts a numerical index to a file letter | ||
#define MEMPAK_INDEX_TO_LETTER(i) ((i) + 'A') | ||
|
||
#endif |
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
Oops, something went wrong.