diff options
Diffstat (limited to 'gba/source/main.c')
-rw-r--r-- | gba/source/main.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gba/source/main.c b/gba/source/main.c index aeb05af..0934e91 100644 --- a/gba/source/main.c +++ b/gba/source/main.c | |||
@@ -113,6 +113,21 @@ int main(void) | |||
113 | sendU32(trainerIdNum); | 113 | sendU32(trainerIdNum); |
114 | waitForAck(); | 114 | waitForAck(); |
115 | 115 | ||
116 | // Send cart language. | ||
117 | u8 cartLang = 0; | ||
118 | switch (*(u8*)(0x80000AF)) | ||
119 | { | ||
120 | case 'J': cartLang = Japanese; break; | ||
121 | case 'E': cartLang = English; break; | ||
122 | case 'F': cartLang = French; break; | ||
123 | case 'I': cartLang = Italian; break; | ||
124 | case 'D': cartLang = German; break; | ||
125 | case 'S': cartLang = Spanish; break; | ||
126 | } | ||
127 | |||
128 | sendU32(cartLang); | ||
129 | waitForAck(); | ||
130 | |||
116 | // Does the player want to import this game? | 131 | // Does the player want to import this game? |
117 | if (waitForResponse() == 0) | 132 | if (waitForResponse() == 0) |
118 | { | 133 | { |
@@ -193,7 +208,7 @@ int main(void) | |||
193 | 208 | ||
194 | struct PokemonIntermediate pki; | 209 | struct PokemonIntermediate pki; |
195 | 210 | ||
196 | PokemonIntermediateInit(&pki, bpkm, trainerIdNum, secretIdNum, &gameData); | 211 | PokemonIntermediateInit(&pki, bpkm, trainerIdNum, secretIdNum); |
197 | PokemonIntermediateStream(&pki); | 212 | PokemonIntermediateStream(&pki); |
198 | } | 213 | } |
199 | } | 214 | } |