impr: Allow forcing of OOBE through an env var

This commit is contained in:
WerWolv
2025-08-17 14:34:12 +02:00
parent 3b1f32d68d
commit 769087d139

View File

@@ -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;
}