Skip to content
This repository has been archived by the owner on Apr 9, 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 Aug 18, 2022
1 parent 61890f6 commit f2f4b69
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 39 deletions.
28 changes: 8 additions & 20 deletions grpdecompiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
#include "format.h"

void show_intro();
void command_line_help();
void show_start_message();
void show_end_message();
void show_message(const char *message);
void show_progress(const unsigned long int start,const unsigned long int stop);
FILE *open_input_file(const char *name);
FILE *create_output_file(const char *name);
Expand All @@ -30,11 +28,13 @@ int main(int argc, char *argv[])
show_intro();
if (argc<3)
{
command_line_help();
show_message("You must give a target file name and output path as command line arguments!");
}
else
{
show_message("Extracting a files... Please wait");
work(argv[1],argv[2]);
show_message("Work finish");
}
return 0;
}
Expand All @@ -43,27 +43,17 @@ void show_intro()
{
putchar('\n');
puts("GRP DECOMPILER");
puts("Version 2.0.7");
puts("Version 2.0.8");
puts("This program distributed under GNU GENERAL PUBLIC LICENSE");
puts("File extraction tools for GRP pseudo-archives by Popov Evgeniy Alekseyevich");
puts("2010-2020 years");
puts("2010-2022 years");
putchar('\n');
}

void command_line_help()
{
puts("You must give a target file name and output path as command line arguments!");
}

void show_start_message()
{
puts("Extracting a files... Please wait");
}

void show_end_message()
void show_message(const char *message)
{
putchar('\n');
puts("Work finish");
puts(message);
}

void show_progress(const unsigned long int start,const unsigned long int stop)
Expand Down Expand Up @@ -251,9 +241,7 @@ void work(const char *file,const char *path)
input=open_input_file(file);
amount=check_format(input);
record=read_blocks(input,amount);
show_start_message();
extract(input,record,amount,path);
show_end_message();
fclose(input);
free(record);
}
39 changes: 20 additions & 19 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GRP DECOMPILER

Version 2.0.7.2
Version 2.0.8

File extraction tools for GRP pseudo-archives by Popov Evgeniy Alekseyevich

Expand All @@ -13,7 +13,7 @@ Description and usage
This program let you extract files from GRP pseudo-archives.
It is used in games that built on BUILD game engine.
This program takes a target file name and output path as command line arguments.
Always add directory separator(\ or /) at end of output path.
Always add directory separator(\ or /) at an end of output path.

Exit codes

Expand All @@ -36,7 +36,7 @@ Source code
The program source code compiled under Open Watcom.
But you can do it under any modern C compiler.
Source code can be compiled for wide range operating systems, but you need to create makefile or build script by yourself.
I provide only two things: compiled binary file for Windows and makefile for Linux.
I provide only two things: compiled the binary file for Windows and makefile for Linux.

Install and uninstall under Linux

Expand All @@ -54,19 +54,20 @@ You can send me a letter to tuzik87@inbox.ru.

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.5 - Small changes in source code
1.6 - Small bugs with 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
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
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.5 - Small changes in source code.
1.6 - Small bugs with 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.
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 - Small changes.

0 comments on commit f2f4b69

Please sign in to comment.