Skip to content

Commit

Permalink
add map file size updating
Browse files Browse the repository at this point in the history
  • Loading branch information
xan1242 committed Nov 19, 2022
1 parent c9866b0 commit 4f4199e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MPFmaster/MPFmaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1544,6 +1544,10 @@ int MPF_UpdateSamples(char* mpffilename, char* samplefolder)
fwrite(&(sample), sizeof(PATHFINDSAMPLE), 1, f);
}

// update the map file size
uint32_t mapsize = ftell(f);
fseek(f, 0x38, SEEK_SET);
fwrite(&mapsize, sizeof(uint32_t), 1, f);

free(mpfdata);
return 0;
Expand Down

0 comments on commit 4f4199e

Please sign in to comment.