Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PopovEvgeniy committed Sep 27, 2024
1 parent 1fa0742 commit 392084f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
14 changes: 7 additions & 7 deletions grpdecompiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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");
}

Expand All @@ -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)
Expand All @@ -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;
Expand All @@ -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;
Expand Down
25 changes: 13 additions & 12 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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

Expand All @@ -57,19 +57,20 @@ 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.
2.0.7 Small bug fixed.
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.
2.1.4.1 Documentation updated.
2.1.5 Small changes.

0 comments on commit 392084f

Please sign in to comment.