Skip to content

Commit

Permalink
Show basic usage when no argument is given
Browse files Browse the repository at this point in the history
See #5
  • Loading branch information
qsantos committed Mar 6, 2024
1 parent b7a2474 commit e4d64b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions withdll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ static BOOL CALLBACK ExportCallback(_In_opt_ PVOID pContext, _In_ ULONG nOrdinal
}

int CDECL main(int argc, char **argv) {
if (argc <= 1) {
puts("Usage: timeskew.exe COMMAND...");
puts("Allow changing the speed of time for a given command");
return 1;
}

// Find timeskew.dll
CHAR dllPath[MAX_PATH];
CHAR *end = dllPath + GetModuleFileNameA(NULL, dllPath, MAX_PATH);
Expand Down

0 comments on commit e4d64b6

Please sign in to comment.