Skip to content

Commit

Permalink
export SongCount
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotlinski committed Jul 2, 2018
1 parent 441072b commit 9c7f6c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,12 @@ static void write_song_locations() {
fputs("SongLocations\n", f);
for (size_t i = 0; i < song_locations.size(); ++i) {
fprintf(f,
"dw %i, $%x\n",
"DW %i, $%x\n",
song_locations[i].bank,
song_locations[i].ptr);
}
fprintf(f, "Export SongCount\nSongCount\nDB %i\n",
(int)song_locations.size());
}

void write_music_to_disk() {
Expand Down

0 comments on commit 9c7f6c9

Please sign in to comment.