add crash flag
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / linux-arm (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled

This commit is contained in:
Green Sky
2025-08-04 18:45:51 +02:00
parent 2f230d7ea7
commit e27276bf65

View File

@@ -55,6 +55,10 @@ StartScreen::StartScreen(const std::vector<std::string_view>& args, SDL_Renderer
const auto& plugin_path = args.at(ai);
// TODO: check for dups
queued_plugin_paths.push_back(static_cast<std::string>(plugin_path));
} else if (args.at(ai) == "--crash") {
// HACK: force bad pointer
int* _p {reinterpret_cast<int*>(args.size())};
*_p = 1337;
} else {
std::cerr << "TOMATO error: unknown cli arg: '" << args.at(ai) << "'\n";
}