sys: Save project backup if ImHex crashes

This commit is contained in:
WerWolv
2021-08-17 13:41:44 +02:00
parent 551da69a4c
commit 4d677f430b
5 changed files with 33 additions and 13 deletions

View File

@@ -106,6 +106,7 @@ namespace hex {
EVENT_DEF(EventProjectFileStore);
EVENT_DEF(EventProjectFileLoad);
EVENT_DEF(EventSettingsChanged);
EVENT_DEF(EventAbnormalTermination, int);
EVENT_DEF(RequestOpenWindow, std::string);
EVENT_DEF(RequestSelectionChange, Region);

View File

@@ -214,8 +214,6 @@ namespace hex {
void ContentRegistry::Language::addLocalizations(std::string_view languageCode, const LanguageDefinition &definition) {
getLanguageDefinitions()[languageCode.data()].push_back(definition);
EventManager::post<EventSettingsChanged>();
}
std::map<std::string, std::string>& ContentRegistry::Language::getLanguages() {