gbaconv

A set of tools aimed at GameBoy Advance developers
Log | Files | Refs | README | LICENSE

commit 1794c820237504c20188d1c9a7baf9b6283e34e2
parent 27d4877e7c9a581030b5f735659a73e6f285ee4c
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri, 22 Feb 2019 09:43:39 +0100

Revert previous change, start the loop from zero, this will make formatting easier.

Diffstat:
Mwav2gba.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wav2gba.c b/wav2gba.c @@ -98,8 +98,8 @@ int main(int argc, char *argv[]) { fprintf(output_file, "const s8 %s[] = {\n", argv[3]); - for (size_t loop = WAVE_HEADER_LENGTH; loop < input_file_size; loop++) { - fprintf(output_file, "0x%x,", input_file_buffer[loop]+128); + for (size_t loop = 0; loop < input_file_size - WAVE_HEADER_LENGTH; loop++) { + fprintf(output_file, "0x%x,", input_file_buffer[WAVE_HEADER_LENGTH + loop] + 128); } fseek(output_file, ftell(output_file)-1, 0);