mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
* wip
* get rid of seg2_dialog_table and fix crashes
* remove unused include
* change more types to s32
* remove dialog tables from eu_translation.h
* fix dialog_table_get signature
* Change `oToadMessageDialogId` to s32
* remove exit from dialog_table_add
* warning
* calloc allocated dialogs
* avoid memcpy on allocation fail
* Move dialog entry text field init to dialog_table_init
* Free original dialog entries' text field
* Put all reset logic in one place
* Run autogen
* Remove ``get_dialog_text_ascii`` from autogen
* minor fix
* free dialog->str if replaced
* nevermind
* remove get_dialog_unmodified from autogen
* Change -1 to DIALOG_NONE
* update stuff to s32
* use growing array functions
* Change limit to something more reasonable
* add null check
* remove explicit cast
* Minor fixes
* more type fix
* peachy review
* Fix weird enums in autogen
* remove extra newline :p
* add dialog restore
* bump max dialogs just a lil bit 🥺
* add lua behavior params
* all OBJECT fields are now Lua variables
* Revert lua behavior params changes
* isaac review
* fix segfault
---------
Co-authored-by: PeachyPeachSM64 <72323920+PeachyPeachSM64@users.noreply.github.com>
32 lines
951 B
C
32 lines
951 B
C
#ifndef EU_TRANSLATION_H
|
|
#define EU_TRANSLATION_H
|
|
|
|
#include "types.h"
|
|
|
|
// EU changes most text to arrays for each language. This define allows these
|
|
// differences to be combined.
|
|
#ifdef VERSION_EU
|
|
#define LANGUAGE_ARRAY(cmd) cmd[LANGUAGE_FUNCTION]
|
|
#else
|
|
#define LANGUAGE_ARRAY(cmd) cmd
|
|
#endif
|
|
|
|
extern u8 *course_name_table_eu_en[];
|
|
extern u8 *act_name_table_eu_en[];
|
|
extern u8 *dialog_table_eu_en_original[];
|
|
extern u8 *course_name_table_eu_en_original[];
|
|
extern u8 *act_name_table_eu_en_original[];
|
|
|
|
extern u8 *course_name_table_eu_fr[];
|
|
extern u8 *act_name_table_eu_fr[];
|
|
extern u8 *dialog_table_eu_fr_original[];
|
|
extern u8 *course_name_table_eu_fr_original[];
|
|
extern u8 *act_name_table_eu_fr_original[];
|
|
|
|
extern u8 *course_name_table_eu_de[];
|
|
extern u8 *act_name_table_eu_de[];
|
|
extern u8 *dialog_table_eu_de_original[];
|
|
extern u8 *course_name_table_eu_de_original[];
|
|
extern u8 *act_name_table_eu_de_original[];
|
|
|
|
#endif // EU_TRANSLATION_H
|