cleanup
This commit is contained in:
parent
759fe528e7
commit
6c778bb096
7 changed files with 103475 additions and 103475 deletions
|
@ -1,4 +1,4 @@
|
||||||
#include "sms.h"
|
#include "inc/sms.h"
|
||||||
|
|
||||||
int doublejumped;
|
int doublejumped;
|
||||||
int preva;
|
int preva;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Empty c file demonstrating available functions the Bin2Gecko and DolInsert tools can replace
|
* Empty c file demonstrating available functions the Bin2Gecko and DolInsert tools can replace
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "sms.h"
|
#include "inc/sms.h"
|
||||||
|
|
||||||
//Variable
|
//Variable
|
||||||
int variable;
|
int variable;
|
||||||
|
|
|
@ -1,45 +1,45 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "sms.h"
|
#include "inc/sms.h"
|
||||||
|
|
||||||
static J2DTextBox textbox;
|
static J2DTextBox textbox;
|
||||||
|
|
||||||
int OnUpdate(MarDirector* director) {
|
int OnUpdate(MarDirector* director) {
|
||||||
int (*GameUpdate)(MarDirector* director) = GetObjectFunction(director, Director_GameUpdate);
|
int (*GameUpdate)(MarDirector* director) = GetObjectFunction(director, Director_GameUpdate);
|
||||||
|
|
||||||
//Update
|
//Update
|
||||||
|
|
||||||
return GameUpdate(director);
|
return GameUpdate(director);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnDraw2D(J2DOrthoGraph* graphics)
|
void OnDraw2D(J2DOrthoGraph* graphics)
|
||||||
{
|
{
|
||||||
Vector mariopos = **gpMarioPos;
|
Vector mariopos = **gpMarioPos;
|
||||||
int state = GetMarioStatus();
|
int state = GetMarioStatus();
|
||||||
snprintf(J2DTextBox_GetStringPtr(&textbox), 128, "Mario X: %f\nMario Y: %f\nMario Z: %f\nMario State: %X\nNext Stage: %d-%d",
|
snprintf(J2DTextBox_GetStringPtr(&textbox), 128, "Mario X: %f\nMario Y: %f\nMario Z: %f\nMario State: %X\nNext Stage: %d-%d",
|
||||||
mariopos.x, mariopos.y, mariopos.z, state, *ChangeScenario, *ChangeEpisode);
|
mariopos.x, mariopos.y, mariopos.z, state, *ChangeScenario, *ChangeEpisode);
|
||||||
|
|
||||||
J2DGrafContext_Setup2D((J2DGrafContext*)graphics); //Run replaced branch
|
J2DGrafContext_Setup2D((J2DGrafContext*)graphics); //Run replaced branch
|
||||||
|
|
||||||
J2DScreen_Draw((J2DScreen*)&textbox, 0, 0, (J2DGrafContext*)graphics, 0x81);
|
J2DScreen_Draw((J2DScreen*)&textbox, 0, 0, (J2DGrafContext*)graphics, 0x81);
|
||||||
//GXSetScissor(0, 0, 0x0280, 0x01c0);
|
//GXSetScissor(0, 0, 0x0280, 0x01c0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnSetup(MarDirector* director)
|
void OnSetup(MarDirector* director)
|
||||||
{
|
{
|
||||||
JUTRect rect;
|
JUTRect rect;
|
||||||
|
|
||||||
MarDirector_SetupObjects(director); //Run replaced branch
|
MarDirector_SetupObjects(director); //Run replaced branch
|
||||||
|
|
||||||
JUTRect_Set(&rect, 0, 0, 512, 512);
|
JUTRect_Set(&rect, 0, 0, 512, 512);
|
||||||
//textbox = (J2DTextBox*)malloc(sizeof(J2DTextBox));
|
//textbox = (J2DTextBox*)malloc(sizeof(J2DTextBox));
|
||||||
J2DTextBox_Create(&textbox, 0, &rect, GameFont, GameStrTable, 2, 0);
|
J2DTextBox_Create(&textbox, 0, &rect, GameFont, GameStrTable, 2, 0);
|
||||||
|
|
||||||
char* info;
|
char* info;
|
||||||
info = (char*)malloc(128);
|
info = (char*)malloc(128);
|
||||||
|
|
||||||
J2DTextBox_SetString(&textbox, info);
|
J2DTextBox_SetString(&textbox, info);
|
||||||
}
|
}
|
|
@ -5,7 +5,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "sms.h"
|
#include "inc/sms.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Super Mario Sunshine Disassembly example
|
Super Mario Sunshine Disassembly example
|
|
@ -6,7 +6,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "sms.h"
|
#include "inc/sms.h"
|
||||||
|
|
||||||
//This version is different from the released version:
|
//This version is different from the released version:
|
||||||
/* 4 effects can occur at the same time
|
/* 4 effects can occur at the same time
|
||||||
|
|
1090
sms.h → inc/sms.h
1090
sms.h → inc/sms.h
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Reference in a new issue