diff --git a/src/hypseus.cpp b/src/hypseus.cpp index 8e62b5fb..95f938e9 100644 --- a/src/hypseus.cpp +++ b/src/hypseus.cpp @@ -279,6 +279,7 @@ int main(int argc, char **argv) // if command line was bogus, quit else { printerror("Bad command line or initialization problem."); + printusage(); } // if our g_game class was allocated diff --git a/src/io/error.cpp b/src/io/error.cpp index 965388cc..1a9399ca 100644 --- a/src/io/error.cpp +++ b/src/io/error.cpp @@ -73,3 +73,46 @@ void printnotice(const char *s) { LOGE << s; } + +void printusage() +{ + const char * usage = R"USAGE( + Hypseus Singe (C)2023 DirtBagXon + + Usage: hypseus vldp -framefile ... + + The above arguments are, at minimum, required: + + - consists of a supported Daphne ROM or 'singe' + + - Singe games require an extra '-script ' + defines the main Singe LUA game file. + + - Other common arguments are: + + -bezel + -fastboot + -fullscreen + -gamepad + -nolinear_scale + + - Common Singe arguments: + + -script : (This is required) + -blend_sprites + -manymouse + + See documentation for a full list of available arguments: + + Visit: https://github.com/DirtBagXon/hypseus-singe + + Use -v to display version and build information. + + )USAGE"; + +#ifdef WIN32 + MessageBox(NULL, usage, "Usage", MB_OK | MB_ICONINFORMATION); +#else + fprintf(stdout, "%s", usage); +#endif +} diff --git a/src/io/error.h b/src/io/error.h index 5e0c3c5e..f1b8b097 100644 --- a/src/io/error.h +++ b/src/io/error.h @@ -23,3 +23,4 @@ void printerror(const char *); void printnowookin(const char *s); void printnotice(const char *s); +void printusage();