diff --git a/grpdecompiler.c b/grpdecompiler.c index 8b8fd6d..b72a8b8 100644 --- a/grpdecompiler.c +++ b/grpdecompiler.c @@ -24,13 +24,13 @@ int main(int argc, char *argv[]) show_intro(); if (argc<3) { - show_message("You must give a target file name and output path as command line arguments!"); + show_message("You must give a target file name and an output path as the command-line arguments!"); } else { show_message("Extracting a files... Please wait"); work(argv[1],argv[2]); - show_message("Work finish"); + show_message("The work has been finished"); } return 0; } @@ -39,8 +39,8 @@ void show_intro() { putchar('\n'); puts("GRP DECOMPILER"); - puts("Version 2.1.4"); - puts("This program distributed under GNU GENERAL PUBLIC LICENSE"); + puts("Version 2.1.5"); + puts("This program is distributed under GNU GENERAL PUBLIC LICENSE"); puts("File extraction tools for GRP pseudo-archives by Popov Evgeniy Alekseyevich, 2010-2024 years"); } @@ -56,7 +56,7 @@ void show_progress(const unsigned long int start,const unsigned long int stop) progress=(start+1)*100; progress/=stop; putchar('\r'); - printf("Amount of extracted files: %ld from %ld.Progress:%ld%%",start+1,stop,progress); + printf("Amount of the extracted files: %ld from %ld.Progress:%ld%%",start+1,stop,progress); } FILE *open_input_file(const char *name) @@ -65,7 +65,7 @@ FILE *open_input_file(const char *name) target=fopen(name,"rb"); if (target==NULL) { - puts("Can't open input file"); + puts("Can't open the input file"); exit(1); } return target; @@ -77,7 +77,7 @@ FILE *create_output_file(const char *name) target=fopen(name,"wb"); if (target==NULL) { - show_message("Can't create ouput file"); + show_message("Can't create the ouput file"); exit(2); } return target; diff --git a/readme.txt b/readme.txt index be844a0..6e22413 100644 --- a/readme.txt +++ b/readme.txt @@ -1,25 +1,25 @@ GRP DECOMPILER - Version 2.1.4 + Version 2.1.5 File extraction tools for GRP pseudo-archives by Popov Evgeniy Alekseyevich -System requirement +System requirements 68 kilobytes of free space on storage media. Description and usage This program lets you extract files from GRP pseudo-archives. -It is used in games that are built on BUILD game engine. -This program takes a target file name and output path as command-line arguments. +It is used in games that are built on the BUILD game engine. +This program takes a target file name and an output path as the command-line arguments. Always add a directory separator (\ or /) at the end of the output path. Exit codes -0 - Operation successfully completed. -1 - Can't open input file. -2 - Can't create output file. +0 - Operation was successfully completed. +1 - Can't open the input file. +2 - Can't create the output file. 3 - Can't allocate memory. 4 - Invalid format. @@ -36,7 +36,7 @@ Source code The code was compiled under Open Watcom. But you can compile it under any modern C compiler. Source code can be compiled for a wide range of operating systems, but you need to create a makefile or build script by yourself. -I provide only two things: the binary file for Windows and makefile for Linux. +I provide only two things: the binary file for Windows and the makefile for Linux. Install and uninstall under Linux @@ -57,14 +57,14 @@ Version history 0.1 – 0.9 – Internal unstable builds. 1.0 – 1.0.4 – Stable branch. 1.0.5 – 1.3 – Small changes in source code. -1.4 – Source code improved. Linux support added. +1.4 – Source code improved. Linux support has been added. 1.5 – Small changes in source code. -1.6 – Small bugs with output filenames fixed. +1.6 – Small bugs with the output filenames fixed. 1.7 – 1.8 – Small changes in source code. 1.9 – Filename checking improved. 1.9.0.1 – Documentation updated. 1.9.1 – 1.9.6 – Small changes. -1.9.8 – 2.0.1 – Small bug with output file names fixed. +1.9.8 – 2.0.1 – Small bug with the output file names fixed. 2.0.2 – 2.0.4 – Small changes. 2.0.4.1 – Makefile updated. 2.0.5 – 2.0.6 – Small changes. @@ -72,4 +72,5 @@ Version history 2.0.7.1 – 2.0.7.2 – Makefile updated. 2.0.8 – 2.1.3 – Small changes. 2.1.4 – Visual C++ support improved. -2.1.4.1 – Documentation updated. \ No newline at end of file +2.1.4.1 – Documentation updated. +2.1.5 – Small changes. \ No newline at end of file