ui: Added really fancy splash screen (updater in the future)

This commit is contained in:
WerWolv
2021-04-17 15:46:26 +02:00
parent 93e1c4c4e8
commit 24c7f1d5b7
12 changed files with 8121 additions and 11 deletions

View File

@@ -52,7 +52,7 @@ int main(int argc, char **argv) {
ContentRegistry::Views::add<ViewDataProcessor>();
ContentRegistry::Views::add<ViewYara>();
if (argc > 1)
if (argc > 2)
EventManager::post<EventFileDropped>(argv[1]);
window.loop();

View File

@@ -58,6 +58,13 @@ namespace hex {
SharedData::mainArgv = argv;
SharedData::currentProvider = nullptr;
#if defined(RELEASE)
if (argv[argc - 1] != std::string(GIT_COMMIT_HASH)) {
printf("Version mismatch! Make sure you updated all of ImHex\n");
exit(1);
}
#endif
this->createDirectories();
this->initGLFW();
this->initImGui();