A lot of changes
- Fix the broken itemindex of ComboBox in the Settings dialog - Change from LCID to uint32_t - Rewrite the headers of the lang related functions (can handle the whole LCID as input) - Add dummy functions to unix.c - Add proper combobox handling in win_settings.c - Added a lot of debug calls temporarily - Reactivate every disabled option related to language changes - Move lang_id to 86box.h from win.h - Implement on-fly resource switch as discussed with OBattler - Reimplement everything language related in the initialization section of the program - Implemented the ladder of three points 1, what is the --lang? 2, what are definied in the config? (to be implemented) 3, what is the system language
This commit is contained in:
@@ -1221,8 +1221,15 @@ char* plat_vidapi_name(int i)
|
||||
return "default";
|
||||
}
|
||||
|
||||
void
|
||||
set_language(uint32_t id)
|
||||
{
|
||||
lang_id = id;
|
||||
}
|
||||
|
||||
|
||||
/* Sets up the program language before initialization. */
|
||||
int plat_set_language(char* langcode)
|
||||
uint32_t plat_language_code(char* langcode)
|
||||
{
|
||||
/* or maybe not */
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user