1
0
Fork 0
This commit is contained in:
BitPatty 2017-02-23 18:10:27 +01:00
parent 759fe528e7
commit 6c778bb096
7 changed files with 103475 additions and 103475 deletions

View file

@ -1,4 +1,4 @@
#include "sms.h"
#include "inc/sms.h"
int doublejumped;
int preva;

View file

@ -2,7 +2,7 @@
* Empty c file demonstrating available functions the Bin2Gecko and DolInsert tools can replace
*/
#include "sms.h"
#include "inc/sms.h"
//Variable
int variable;

View file

@ -1,45 +1,45 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#include <string.h>
#include "sms.h"
static J2DTextBox textbox;
int OnUpdate(MarDirector* director) {
int (*GameUpdate)(MarDirector* director) = GetObjectFunction(director, Director_GameUpdate);
//Update
return GameUpdate(director);
}
void OnDraw2D(J2DOrthoGraph* graphics)
{
Vector mariopos = **gpMarioPos;
int state = GetMarioStatus();
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);
J2DGrafContext_Setup2D((J2DGrafContext*)graphics); //Run replaced branch
J2DScreen_Draw((J2DScreen*)&textbox, 0, 0, (J2DGrafContext*)graphics, 0x81);
//GXSetScissor(0, 0, 0x0280, 0x01c0);
}
void OnSetup(MarDirector* director)
{
JUTRect rect;
MarDirector_SetupObjects(director); //Run replaced branch
JUTRect_Set(&rect, 0, 0, 512, 512);
//textbox = (J2DTextBox*)malloc(sizeof(J2DTextBox));
J2DTextBox_Create(&textbox, 0, &rect, GameFont, GameStrTable, 2, 0);
char* info;
info = (char*)malloc(128);
J2DTextBox_SetString(&textbox, info);
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#include <string.h>
#include "inc/sms.h"
static J2DTextBox textbox;
int OnUpdate(MarDirector* director) {
int (*GameUpdate)(MarDirector* director) = GetObjectFunction(director, Director_GameUpdate);
//Update
return GameUpdate(director);
}
void OnDraw2D(J2DOrthoGraph* graphics)
{
Vector mariopos = **gpMarioPos;
int state = GetMarioStatus();
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);
J2DGrafContext_Setup2D((J2DGrafContext*)graphics); //Run replaced branch
J2DScreen_Draw((J2DScreen*)&textbox, 0, 0, (J2DGrafContext*)graphics, 0x81);
//GXSetScissor(0, 0, 0x0280, 0x01c0);
}
void OnSetup(MarDirector* director)
{
JUTRect rect;
MarDirector_SetupObjects(director); //Run replaced branch
JUTRect_Set(&rect, 0, 0, 512, 512);
//textbox = (J2DTextBox*)malloc(sizeof(J2DTextBox));
J2DTextBox_Create(&textbox, 0, &rect, GameFont, GameStrTable, 2, 0);
char* info;
info = (char*)malloc(128);
J2DTextBox_SetString(&textbox, info);
}

View file

@ -5,7 +5,7 @@
#include <stdarg.h>
#include <string.h>
#include <stdbool.h>
#include "sms.h"
#include "inc/sms.h"
/*
Super Mario Sunshine Disassembly example

View file

@ -6,7 +6,7 @@
#include <stdint.h>
#include <stdarg.h>
#include <math.h>
#include "sms.h"
#include "inc/sms.h"
//This version is different from the released version:
/* 4 effects can occur at the same time

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff