Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ def MatchingFor(*versions):
Object(NonMatching, "Kameda/Race2D.cpp"),
Object(Matching, "Kameda/ReadPrintMessage.cpp"),
Object(Matching, "Kameda/PrintProgressive.cpp"),
Object(NonMatching, "Kameda/PrintMemoryCard.cpp"),
Object(Matching, "Kameda/PrintMemoryCard.cpp"),
Object(NonMatching, "Kameda/PreRace2D.cpp"),
Object(Matching, "Kameda/Go2D.cpp"),
Object(Matching, "Kameda/Mario.cpp"),
Expand Down
104 changes: 55 additions & 49 deletions include/Kameda/PrintMemoryCard.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#ifndef PRINTMEMORYCARD_H
#define PRINTMEMORYCARD_H

#include <JSystem/JKernel/JKRHeap.h>
#include "JSystem/JKernel/JKRHeap.h"
#include "Kameda/PrintWindow.h"
#include "Osako/ResMgr.h"

class PrintMemoryCard
{
public:
PrintMemoryCard(JKRHeap *heap); // 0x8016be58

// TODO: are these actually correct?
enum MessageID
{
Expand Down Expand Up @@ -48,62 +48,68 @@ class PrintMemoryCard
mcGstBrokenNoLoad,
mcBrokenNoLoad,
// these are lan related for whatever reason
mcTooManyFilesContinue, // begin lan setup
mcNoSpaceContinue, // disconnect lan link
mcMsg38, // disconnecting LAN Link
mcMsg39, // Quit are you sure?
mcMsg40 // black screen, no text here, also panic if bmg gets requested
mcTooManyFilesContinue, // begin lan setup
mcNoSpaceContinue, // disconnect lan link
mcMsg38, // disconnecting LAN Link
mcMsg39, // Quit are you sure?
mcMsg40 // black screen, no text here, also panic if bmg gets requested
};


PrintMemoryCard(JKRHeap *heap); // 0x8016be58
~PrintMemoryCard();

// TODO
void setStuff(u8 a, u8 b, u8 c) {
_c = a ;
void setStuff(u8 a, u8 b, u8 c)
{
_c = a;
_d = b;
_e = c;
}

void reset(); // 0x8016bf24
void init(MessageID); // 0x8016bf90
void changeMessage(); // 0x8016bfac
void draw(); // 0x8016c3e0
void calc(); // 0x8016c410
void closeWindow(); // 0x8016c92c
void closeWindowNoSe(); // 0x8016c9f8
void setBmgPtr(); // 0x8016ca9c
void isMessage(); // 0x8016cb0c
void getChoiceType(); // 0x8016cb98
void getWindowSize(); // 0x8016cc34
void getWindowColor(); // 0x8016cd00
// Inline/Unused
// void initWindow();
// ~PrintMemoryCard();
void reset(); // 0x8016bf24
void init(MessageID); // 0x8016bf90
void initWindow();
void changeMessage(); // 0x8016bfac
void draw(); // 0x8016c3e0
void calc(); // 0x8016c410
void closeWindow(); // 0x8016c92c
void closeWindowNoSe(); // 0x8016c9f8
void setBmgPtr(); // 0x8016ca9c
bool isMessage(); // 0x8016cb0c
s32 getChoiceType(); // 0x8016cb98
int getWindowSize(); // 0x8016cc34
int getWindowColor(); // 0x8016cd00

int get_1cThing() {
if (_20 == 0 || _20 == 25)
int get_1cThing()
{
if (mFrame == 0 || mFrame == 25)
return 3;
return _1c;
}
}

int get_14Thing() {
if (_1c == 2 && (_20 == 0 || _20 == 25))
return _14;
return 2;
}
int get_14Thing()
{
if (_1c == 2 && (mFrame == 0 || mFrame == 25))
return _14;
return 2;
}

private:
// TODO
u8 _0[0x4];
void *mpBmg; // 0x4
u8 _8[0xc - 0x8];
u8 _c;
u8 _d;
u8 _e;
u8 _f[0x14 - 0xf];
int _14;
u8 _18[4];
int _1c;
int _20;
u8 _24[0x30 - 0x24];
}; // Size: 0x30
void *mResColor; // 0x0
void *mResCard; // 0x4
PrintWindow *mPrintWindow; // 0x8
u8 _c; // 0xc
u8 _d; // 0xd
u8 _e; // 0xe
u8 _f; // 0xf
PrintMemoryCard::MessageID mMessageID; // 0x10
s32 _14; // 0x14
s32 _18; // 0x18
s32 _1c; // 0x1c
s32 mFrame; // 0x20
s32 _24; // 0x24
s32 _28; // 0x28
JUTColor mColor; // 0x2c
}; // Size: 0x30

#endif // PRINTMEMORYCARD_H
#endif // PRINTMEMORYCARD_H
Loading
Loading