mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
impr: Allow forcing of OOBE through an env var
This commit is contained in:
@@ -285,7 +285,7 @@ namespace hex::plugin::builtin {
|
||||
EventImHexStartupFinished::subscribe([] {
|
||||
const auto currVersion = ImHexApi::System::getImHexVersion();
|
||||
const auto prevLaunchVersion = ContentRegistry::Settings::read<std::string>("hex.builtin.setting.general", "hex.builtin.setting.general.prev_launch_version", "");
|
||||
if (prevLaunchVersion == "") {
|
||||
if (prevLaunchVersion == "" || getEnvironmentVariable("IMHEX_FORCE_OOBE") != "0") {
|
||||
EventFirstLaunch::post();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user