Skip to content

Commit

Permalink
5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoGiordano committed Nov 20, 2017
1 parent db04784 commit ceb2866
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ PRODUCT_CODE := CTR-HB-PKSM

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

ROSALINA := 0

Expand Down
4 changes: 2 additions & 2 deletions assets/romfs/i18n/it/app.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions source/editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 5 additions & 2 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 5 additions & 0 deletions source/pkx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ceb2866

Please sign in to comment.