From f11a953ae0eb622fd181dd147186a3130eaaed3b Mon Sep 17 00:00:00 2001 From: Popov Evgeniy Date: Sun, 21 Aug 2022 02:38:04 +0700 Subject: [PATCH] Small changes --- magicswf.c | 15 ++++++--------- readme.txt | 6 +++--- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/magicswf.c b/magicswf.c index b7d1ba2..45d8c56 100644 --- a/magicswf.c +++ b/magicswf.c @@ -40,7 +40,7 @@ int main(int argc, char *argv[]) void show_intro() { putchar('\n'); - puts("Magic swf. Version 1.4.4"); + puts("Magic swf. Version 1.4.5"); puts("Simple tool for converting Adobe flash movie to self-played movie"); puts("This sofware made by Popov Evgeniy Alekseyevich,2011-2022 years"); puts("This software distributed under GNU GENERAL PUBLIC LICENSE"); @@ -58,8 +58,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; @@ -71,8 +70,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; @@ -123,8 +121,7 @@ char *get_string_memory(const size_t length) memory=(char*)calloc(length+1,sizeof(char)); if(memory==NULL) { - putchar('\n'); - puts("Can't allocate memory"); + show_message("Can't allocate memory"); exit(3); } return memory; @@ -182,7 +179,7 @@ void check_executable(FILE *input) fread(signature,sizeof(char),2,input); if (strncmp(signature,"MZ",2)!=0) { - puts("Executable file of Flash Player Projector corrupted"); + show_message("Executable file of Flash Player Projector corrupted"); exit(4); } @@ -196,7 +193,7 @@ void check_signature(FILE *input) { if (strncmp(signature,"CWS",3)!=0) { - puts("Flash movie corrupted"); + show_message("Flash movie corrupted"); exit(5); } diff --git a/readme.txt b/readme.txt index 9b6048d..412a8b9 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Simple tool for converting Adobe flash movie to self-played movie This software made by Popov Evgeniy Alekseyevich - Version 1.4.4 + Version 1.4.5 System requirement @@ -12,7 +12,7 @@ System requirement Description and usage This program let you convert an Adobe flash movie to a stand-alone self-played movie. -Self-played movie is an executable file: it combines the built-in player and the Flash movie in one file. +Self-played movie is an executable file: it combines the built-in player and Flash movie in one file. This program takes a file name of Flash Player Projector and Flash movie file name as command line arguments. Additional software @@ -53,4 +53,4 @@ Version history 1.4.2 - Small bug fixed. 1.4.3 - Small changes. 1.4.3.1 - 1.4.3.4 - Documentation updated. -1.4.4 - Small changes. \ No newline at end of file +1.4.4 - 1.4.5 - Small changes. \ No newline at end of file