Files
Yanis b72530b1a2 Add Super Mario 64 and Mario Kart 64 (#103)
* start mk64

* splits, rename dol to wii-vc, match some files

* dol apply

* format

* match system, rom and flash

* dol apply & format

* match errordisplay (and almost store)

* match store

* version stuff

* build fixes

* match banner.c

* link soundRVL

* match helpRVL

* match controller.c and random progress

* match library.c

* match libraries

* dol apply

* minor configure.py improvements

* name all functions for mk64-j and mk64-e and started splits

* complete splits for mk64-j

* run dol apply

* complete splits for mk64-e

* forgot __init_cpp_exceptions.cpp

* self-review

* add mk64 to CI

* add mk64 in the supported versions list from the readme

* version improvements

* fix build issues

* oot-vc -> wii-vc

* configure.py improvement

* version stuff

* initial configs

* name all functions

* complete splits and symbols for sm64-e

* more splits and symbols

* more splits and symbols 2

* more splits and symbols 3

* match homebutton differences for jp and us

* emulator progress

* run dol-apply and format

* add sm64 to CI

* fix some build issues

* library.c progress

* library.c progress 2

* library.c progress 3

* frame.c progress

Co-authored-by: cadmic <146315916+cadmic@users.noreply.github.com>

* cpu progress

* frameDrawSetupSP progress

* minor rsp progress

* review

* review 2 + fix match issues

* format

* review 2

* `VERSION >=` -> `VERSION >` for consistency

* add sm64 to the readme

* fake match rspParseGBI_F3DEX2

* review 4

* `VERSION >` -> `VERSION >=`

* format

* fix build issues

---------

Co-authored-by: Yanis42 <35189056+Yanis42@users.noreply.github.com>
Co-authored-by: cadmic <146315916+cadmic@users.noreply.github.com>
2025-10-24 19:32:40 +02:00

41 lines
977 B
C

#ifndef _FLASH_H
#define _FLASH_H
#include "emulator/xlObject.h"
#include "macros.h"
#include "revolution/types.h"
#include "versions.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct Flash {
/* OoT - SM64 - MK64 */
/* 0x00 - 0x00 - 0x00 */ u32 nFlashSize;
#if VERSION < OOT_J
/* N/A - 0x04 - 0x04 */ void* unk_04;
#endif
/* 0x04 - 0x08 - 0x08 */ struct Store* pStore;
/* 0x08 - 0x0C - 0x0C */ s32 flashStatus;
/* 0x0C - 0x10 - 0x10 */ s32 flashCommand;
#if VERSION >= OOT_J
/* 0x10 - N/A - N/A */ s32 nOffsetRAM;
/* 0x14 - N/A - N/A */ s32 unk_14;
/* 0x18 - N/A - N/A */ s32 unk_18;
#endif
} Flash; // size = 0x1C - 0x14 - 0x14
bool fn_80045260(Flash* pFLASH, s32 arg1, void* arg2);
bool fn_800452B0(Flash* pFLASH, s32 arg1, void* arg2);
bool flashGetSize(Flash* pFLASH, u32* pnFlashSize);
bool flashEvent(Flash* pFLASH, s32 nEvent, void* pArgument);
extern _XL_OBJECTTYPE gClassFlash;
#ifdef __cplusplus
}
#endif
#endif