mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
ui: Added really fancy splash screen (updater in the future)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user