mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
Add rpath to binary executable on macOS (#258)
* removing superfluous slash from paths * Add a necessary rpath to the imhex binary * add a little error handling to dlopen * fall back on en-US if no language specified in prefs * PR changes as per @WerWolv
This commit is contained in:
@@ -100,8 +100,12 @@ namespace hex {
|
||||
{
|
||||
auto language = ContentRegistry::Settings::getSetting("hex.builtin.setting.interface", "hex.builtin.setting.interface.language");
|
||||
|
||||
if (language.is_string())
|
||||
if (language.is_string()) {
|
||||
LangEntry::loadLanguage(static_cast<std::string>(language));
|
||||
} else {
|
||||
// If no language is specified, fall back to English.
|
||||
LangEntry::loadLanguage("en-US");
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
@@ -787,4 +791,4 @@ namespace hex {
|
||||
ImGui::DestroyContext();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user