Skip to content

Commit

Permalink
better help message
Browse files Browse the repository at this point in the history
  • Loading branch information
akifle47 committed Dec 12, 2024
1 parent 5ab3981 commit 086ab85
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <fstream>

static const char* CACHE_FILE_NAME = "ptfxwiz.cache";
static std::filesystem::path gBaseGameFileSystemPath;

//returns whether it should quit
bool ProcessInput(const char* input);
Expand Down Expand Up @@ -68,6 +69,9 @@ int main(int32_t argc, char** argv)
return -1;
}

gBaseGameFileSystemPath = gamePath;
gBaseGameFileSystemPath.remove_filename().concat("pc\\data\\effects\\");

if(argc == 1)
{
PrintHelp();
Expand Down Expand Up @@ -186,8 +190,9 @@ void PrintHelp()
{
printf("<arguments> are required and [arguments] are optional.\n");
printf("usage: [option] <in_file> [out_directory]\n");
printf("examples: gta_core.wpfl output/\n");
printf(" gta_core.wpfl output/\n");
printf("examples: %sgta_core.wpfl\n", gBaseGameFileSystemPath.string().c_str());
printf(" %sgta_core.wpfl output/\n", gBaseGameFileSystemPath.string().c_str());
printf(" %sgta_core.json output/\n", gBaseGameFileSystemPath.string().c_str());
printf("or drag and drop a file on ptfxwiz.exe\n");
printf("if no output directory is provided the file(s) will be saved in the same directory <in_file> is in.\n");
printf(" options:\n");
Expand Down

0 comments on commit 086ab85

Please sign in to comment.