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
PopovEvgeniy committed Feb 16, 2023
1 parent fd9ac48 commit 6c8cab9
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions grpdecompiler.c
Original file line number Diff line number Diff line change
@@ -43,10 +43,10 @@ void show_intro()
{
putchar('\n');
puts("GRP DECOMPILER");
puts("Version 2.1");
puts("Version 2.1.1");
puts("This program distributed under GNU GENERAL PUBLIC LICENSE");
puts("File extraction tools for GRP pseudo-archives by Popov Evgeniy Alekseyevich");
puts("2010-2022 years");
puts("2010-2023 years");
}

void show_message(const char *message)
@@ -58,8 +58,7 @@ void show_message(const char *message)
void show_progress(const unsigned long int start,const unsigned long int stop)
{
unsigned long int progress;
progress=start+1;
progress*=100;
progress=(start+1)*100;
progress/=stop;
putchar('\r');
printf("Amount of extracted files: %ld from %ld.Progress:%ld%%",start+1,stop,progress);
@@ -71,7 +70,7 @@ FILE *open_input_file(const char *name)
target=fopen(name,"rb");
if (target==NULL)
{
puts("Can't open input file");
show_message("Can't open input file");
exit(1);
}
return target;
@@ -200,7 +199,7 @@ size_t check_format(FILE *input)
fread(&target,sizeof(grp_block),1,input);
if(strncmp(target.information,"KenSilverman",12)!=0)
{
puts("Bad signature of GRP pseudo-archive!");
show_message("Bad signature of GRP pseudo-archive!");
exit(4);
}
return (size_t)target.length;
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GRP DECOMPILER

Version 2.1
Version 2.1.1

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

@@ -70,4 +70,4 @@ Version history
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 - Small changes.
2.0.8 - 2.1.1 - Small changes.

0 comments on commit 6c8cab9

Please sign in to comment.