fix discordrpc in EU

This commit is contained in:
fgsfds 2020-06-23 02:58:39 +03:00
parent cb9bd73866
commit 1ba31e1266
1 changed files with 7 additions and 6 deletions

View File

@ -54,6 +54,7 @@ static s16 lastCourseNum = -1;
static s16 lastActNum = -1; static s16 lastActNum = -1;
#ifdef VERSION_EU #ifdef VERSION_EU
#include "eu_translation.h"
extern s32 gInGameLanguage; extern s32 gInGameLanguage;
#endif #endif
@ -159,13 +160,13 @@ static void set_details(void) {
courseNameTbl = segmented_to_virtual(seg2_course_name_table); courseNameTbl = segmented_to_virtual(seg2_course_name_table);
#else #else
switch (gInGameLanguage) { switch (gInGameLanguage) {
case LANGUAGE_ENGLISH: case LANG_ENGLISH:
courseNameTbl = segmented_to_virtual(course_name_table_eu_en); courseNameTbl = segmented_to_virtual(course_name_table_eu_en);
break; break;
case LANGUAGE_FRENCH: case LANG_FRENCH:
courseNameTbl = segmented_to_virtual(course_name_table_eu_fr); courseNameTbl = segmented_to_virtual(course_name_table_eu_fr);
break; break;
case LANGUAGE_GERMAN: case LANG_GERMAN:
courseNameTbl = segmented_to_virtual(course_name_table_eu_de); courseNameTbl = segmented_to_virtual(course_name_table_eu_de);
break; break;
} }
@ -192,13 +193,13 @@ static void set_state(void) {
actNameTbl = segmented_to_virtual(seg2_act_name_table); actNameTbl = segmented_to_virtual(seg2_act_name_table);
#else #else
switch (gInGameLanguage) { switch (gInGameLanguage) {
case LANGUAGE_ENGLISH: case LANG_ENGLISH:
actNameTbl = segmented_to_virtual(act_name_table_eu_en); actNameTbl = segmented_to_virtual(act_name_table_eu_en);
break; break;
case LANGUAGE_FRENCH: case LANG_FRENCH:
actNameTbl = segmented_to_virtual(act_name_table_eu_fr); actNameTbl = segmented_to_virtual(act_name_table_eu_fr);
break; break;
case LANGUAGE_GERMAN: case LANG_GERMAN:
actNameTbl = segmented_to_virtual(act_name_table_eu_de); actNameTbl = segmented_to_virtual(act_name_table_eu_de);
break; break;
} }