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 20, 2022
1 parent f2f4b69 commit 5f0f13f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
13 changes: 5 additions & 8 deletions grpdecompiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void show_intro()
{
putchar('\n');
puts("GRP DECOMPILER");
puts("Version 2.0.8");
puts("Version 2.0.9");
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");
Expand Down Expand Up @@ -72,8 +72,7 @@ FILE *open_input_file(const char *name)
target=fopen(name,"rb");
if (target==NULL)
{
putchar('\n');
puts("Can't open input file");
show_message("Can't open input file");
exit(1);
}
return target;
Expand All @@ -85,8 +84,7 @@ FILE *create_output_file(const char *name)
target=fopen(name,"wb");
if (target==NULL)
{
putchar('\n');
puts("Can't create ouput file");
show_message("Can't create ouput file");
exit(2);
}
return target;
Expand Down Expand Up @@ -134,8 +132,7 @@ void check_memory(const void *memory)
{
if(memory==NULL)
{
putchar('\n');
puts("Can't allocate memory");
show_message("Can't allocate memory");
exit(3);
}

Expand Down Expand Up @@ -204,7 +201,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;
Expand Down
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.0.8
Version 2.0.9

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

Expand Down Expand Up @@ -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 - Small changes.
2.0.8 - 2.0.9 - Small changes.

0 comments on commit 5f0f13f

Please sign in to comment.