X-Git-Url: https://jxself.org/git/?p=inform.git;a=blobdiff_plain;f=src%2Ffiles.c;fp=src%2Ffiles.c;h=50fdf5a4f99d9b949affc0d4ee2151affa799748;hp=06e85d07031e821b8abc1de0ec7a8c94bae3ab0e;hb=ee3b3a0cb830792c0569230872a0af20eab8bb7b;hpb=8e63120c630c94c598d4e2d6ba823dac59bce8fa diff --git a/src/files.c b/src/files.c index 06e85d0..50fdf5a 100644 --- a/src/files.c +++ b/src/files.c @@ -7,7 +7,7 @@ /* routines in "inform.c", since they are tied up with ICL */ /* settings and are very host OS-dependent. */ /* */ -/* Part of Inform 6.40 */ +/* Part of Inform 6.41 */ /* copyright (c) Graham Nelson 1993 - 2022 */ /* */ /* Inform is free software: you can redistribute it and/or modify */ @@ -273,7 +273,7 @@ extern int file_load_chars(int file_number, char *buffer, int length) } /* ------------------------------------------------------------------------- */ -/* Final assembly and output of the story file/module. */ +/* Final assembly and output of the story file. */ /* ------------------------------------------------------------------------- */ FILE *sf_handle; @@ -283,9 +283,7 @@ static void sf_put(int c) if (!glulx_mode) { /* The checksum is the unsigned sum mod 65536 of the bytes in the - story file from 0x0040 (first byte after header) to the end. - - The link data does not contribute to the checksum of a module. */ + story file from 0x0040 (first byte after header) to the end. */ checksum_low_byte += c; if (checksum_low_byte>=256) @@ -400,9 +398,6 @@ static void output_file_z(void) /* Enter the length information into the header. */ length=((int32) Write_Strings_At) + static_strings_extent; - if (module_switch) length += link_data_size + - zcode_backpatch_size + - zmachine_backpatch_size; while ((length%length_scale_factor)!=0) { length++; blanks++; } length=length/length_scale_factor; @@ -425,7 +420,7 @@ static void output_file_z(void) /* Set the type and creator to Andrew Plotkin's MaxZip, a popular Z-code interpreter on the Macintosh */ - if (!module_switch) fsetfileinfo(new_name, 'mxZR', 'ZCOD'); + fsetfileinfo(new_name, 'mxZR', 'ZCOD'); #endif /* (1) Output the paged memory. */ @@ -468,7 +463,6 @@ static void output_file_z(void) size_before_code = size; j=0; - if (!module_switch) for (i=0; i