Skip to content

Commit

Permalink
--version startup parameter on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Nov 10, 2023
1 parent 738f6be commit 64c7840
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,15 @@ int main(int argc, char** argv)
}
}
#endif
#if defined(DEATH_TARGET_UNIX)
for (int i = 1; i < argc; i++) {
if (strcmp(argv[i], "--version") == 0) {
// Just print current version below the logo and quit
fputs(NCINE_VERSION, stdout);
return 0;
}
}
#endif

return MainApplication::start([]() -> std::unique_ptr<IAppEventHandler> {
return std::make_unique<GameEventHandler>();
Expand Down

0 comments on commit 64c7840

Please sign in to comment.