diff --git a/grpdecompiler.c b/grpdecompiler.c index 15d8df1..6862b26 100644 --- a/grpdecompiler.c +++ b/grpdecompiler.c @@ -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); @@ -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; } @@ -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) @@ -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); } \ No newline at end of file diff --git a/readme.txt b/readme.txt index c7c839b..43477ec 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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 @@ -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 @@ -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 \ No newline at end of file +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. \ No newline at end of file