Skip to content
Permalink
Browse files

5.0.1

  • Loading branch information...
BernardoGiordano committed Nov 20, 2017
1 parent db04784 commit ceb28667d4ea7f916658a5590319bc44c409e37d
Showing with 17 additions and 9 deletions.
  1. +1 −1 Makefile
  2. +2 −2 assets/romfs/i18n/it/app.txt
  3. +4 −4 source/editor.c
  4. +5 −2 source/main.c
  5. +5 −0 source/pkx.c
@@ -46,7 +46,7 @@ PRODUCT_CODE := CTR-HB-PKSM

VERSION_MAJOR := 5
VERSION_MINOR := 0
VERSION_MICRO := 0
VERSION_MICRO := 1

ROSALINA := 0

@@ -572,5 +572,5 @@ Errore nel download dei dati!
Installando l'ultima release...
Ultima release installata!
Avviare il gioco?
Ultra Sole
Ultra Luna
Ultrasole
Ultraluna
@@ -111,12 +111,12 @@ void setWC(u8* mainbuf, u8* wcbuf, int i, int nInjected[]) {

mainbuf[GBO + 72] = (u8)((mainbuf[GBO + 72] & 0xFE) | 1);
if (game == GAME_HG || game == GAME_SS) {
*(mainbuf + ofs.wondercardLocation - 0x100 + GBO + (2047 >> 3)) = 0x80;
memcpy(&mainbuf[ofs.wondercardLocation + GBO + nInjected[0] * ofs.wondercardSize], wcbuf, ofs.wondercardSize);
*(mainbuf + 0x9D3C + GBO + (2047 >> 3)) = 0x80;
memcpy(&mainbuf[0x9E3C + GBO + nInjected[0] * ofs.wondercardSize], wcbuf, ofs.wondercardSize);
}
else if (game == GAME_PLATINUM) {
*(mainbuf + ofs.wondercardLocation - 0x100 + GBO + (2047 >> 3)) = 0x80;
memcpy(&mainbuf[ofs.wondercardLocation + GBO + nInjected[0] * ofs.wondercardSize], wcbuf, ofs.wondercardSize);
*(mainbuf + 0xB4C0 + GBO + (2047 >> 3)) = 0x80;
memcpy(&mainbuf[0xB5C0 + GBO + nInjected[0] * ofs.wondercardSize], wcbuf, ofs.wondercardSize);
}
else if (game == GAME_DIAMOND || game == GAME_PEARL) {
memcpy(&mainbuf[0xA7D0 + GBO + nInjected[0] * 4], &DPActiveFlag[0], 4);
@@ -286,26 +286,29 @@ int main() {
{
bank(mainbuf);
}
else
infoDisp(L"This hasn't been implemented (yet).");
}

if (touch.px > 165 && touch.px < 305 && touch.py > 20 && touch.py < 73) {
if (game_is3DS())
{
pokemonEditor(mainbuf);
}
else
infoDisp(L"This hasn't been implemented (yet).");
}

if (touch.px > 15 && touch.px < 155 && touch.py > 83 && touch.py < 136) {
eventDatabase(mainbuf);
}

if (touch.px > 165 && touch.px < 305 && touch.py > 83 && touch.py < 136) {

infoDisp(L"This hasn't been implemented (yet).");
}

if (touch.px > 15 && touch.px < 155 && touch.py > 146 && touch.py < 199) {
configMenu();
continue;
}

if (touch.px > 165 && touch.px < 305 && touch.py > 146 && touch.py < 199) {
@@ -452,6 +452,11 @@ FormData *pkx_get_legal_form_data(const u16 species, const int game) {
forms->max = 1;
forms->editable = false;
break;
case 744 :
forms->spriteNum = 0;
forms->max = 1;
forms->editable = false;
break;
case 745 :
forms->spriteNum = 136;
forms->stringNum = 130;

0 comments on commit ceb2866

Please sign in to comment.
You can’t perform that action at this time.