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
  • Loading branch information
PopovEvgeniy committed Aug 20, 2022
1 parent 3463a84 commit f11a953
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
15 changes: 6 additions & 9 deletions magicswf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand Down
6 changes: 3 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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.
1.4.4 - 1.4.5 - Small changes.

0 comments on commit f11a953

Please sign in to comment.