Support launching integration test window in yaze_test.cc

This commit is contained in:
scawful
2024-08-13 20:54:33 -04:00
parent 4a5270bea9
commit 1d758e2cd4

View File

@@ -21,11 +21,10 @@ int main(int argc, char* argv[]) {
absl::FailureSignalHandlerOptions options;
absl::InstallFailureSignalHandler(options);
// Support the ability to launch an integration test window.
SDL_SetMainReady();
// Check if the argument says `integration`
if (argc > 1 && std::string(argv[1]) == "integration") {
// Support the ability to launch an integration test window.
SDL_SetMainReady();
yaze_test::integration::TestEditor test_editor;
yaze::app::core::Controller controller;
controller.init_test_editor(&test_editor);