Commit Graph

69 Commits

Author SHA1 Message Date
camthesaxman cafb3b54d1 allow bit depth conversion when possible 2017-12-04 23:02:18 -06:00
sceptillion 81de5a0a1c fix issue with line numbers in errors when using preproc with C 2017-11-25 22:08:30 -08:00
sceptillion 7de07844ee fix global labels in preproc 2017-11-20 14:57:07 -08:00
camthesaxman 7529e63a5a fix out of bounds read when scanning comments 2017-10-22 23:40:14 -05:00
Cameron Hall 3e03d362fa Merge pull request #443 from camthesaxman/png_palettes
add png -> gbapal conversion
2017-10-09 00:05:22 -05:00
yenatch b0d49dbbfb Merge branch 'master' into scaninc 2017-10-08 23:54:46 -04:00
camthesaxman d2ca90a04f add png -> gbapal conversion 2017-10-08 17:01:56 -05:00
yenatch b21c159b08 scaninc: fix buffer overflow 2017-07-29 14:57:06 -04:00
camthesaxman 0a856fda0c fix std::string buffer overflow in scaninc 2017-07-28 17:07:01 -05:00
yenatch c0ebc30a60 scaninc: skip whitespace/comments in the read loop
fixes e73ec108ad
2017-07-24 00:17:38 -04:00
yenatch e98e074138 scaninc: allow multiple include paths
also use a queue instead of a stack for filesToProcess
2017-07-23 23:11:26 -04:00
yenatch d2a1118862 scaninc: optimize for unix newlines
this probably has no effect whatsoever
2017-07-23 22:37:53 -04:00
yenatch e73ec108ad scaninc: skipping comments seems to be faster than removing them 2017-07-23 22:34:49 -04:00
yenatch 89c9c19446 scaninc: faster incbin detection 2017-07-23 22:29:57 -04:00
yenatch 7451ea31c6 scaninc: add -I and stop hardcoding include paths 2017-07-23 21:44:37 -04:00
yenatch 0faa6c9c93 scaninc: read c includes
Now editing .h files triggers a rebuild.
Also allow .h and .inc files to be passed as a main argument.
src/ and include/ are temporarily hardcoded.
2017-07-22 18:49:38 -04:00
yenatch 8f1190efd6 Error on tool warnings 2017-07-06 22:20:50 -04:00
yenatch 3e6d1757d0 Fix gbagfx warning 2017-07-06 22:12:34 -04:00
camthesaxman 543820c726 strip debugging symbols from tools 2017-05-11 21:57:48 -05:00
Cameron 46048394ac add LDFLAGS variable to tools makefiles 2017-05-11 21:51:54 -05:00
YamaArashi 08725a4773 German ProcessRecvCmds 2017-05-05 20:04:15 -07:00
camthesaxman 7c96b16179 use std:: prefix and remove some unused functions 2017-02-03 23:19:18 -06:00
YamaArashi 18e21f8b09 remove C++14 feature from tools 2017-02-03 20:34:51 -08:00
Cameron Hall 72bc8f23d3 make scaninc build under GCC (#218) 2017-01-25 22:15:49 -08:00
Cameron Hall 3f2ea6a1f0 make preproc build under GCC (#215) 2017-01-24 17:50:28 -08:00
YamaArashi c854250658 preproc incbins 2017-01-23 21:31:28 -08:00
YamaArashi 535ed69d33 change preproc syntax for C strings 2017-01-22 22:08:38 -08:00
YamaArashi 42e277b298 simplify delta compression algorithm 2017-01-08 16:54:21 -08:00
yenatch c1330157ee aif2pcm: Accept .aiff files too. 2017-01-08 18:08:25 -05:00
yenatch de69de433b aif2pcm: Fix delta compression for foreign audio.
The direction should not be reversed if the delta is too large.
The new code is redundant, but the intent is more obvious.
2017-01-08 18:00:49 -05:00
yenatch 10e5474a65 aif2pcm: Fix length reporting. Don't use a MARK chunk if no loop.
The reported sample length in the aif header can differ from the actual
length of the SSND chunk. The END marker was being misused to contain
the reported length, but this still counts as a loop in aif2agb, even
if the START marker is omitted (it defaults to the END value).

Now the reported length is in the COMM chunk, which is more correct.
2017-01-08 16:06:19 -05:00
YamaArashi 8c4b69e1d0 make ROM match 2017-01-06 21:01:49 -08:00
yenatch c7398d66cb Dump the cries and rewrite aif2pcm. (#156) 2017-01-06 20:12:47 -08:00
yenatch 7901739b40 aif2pcm: Initialize pcm length if there are no MARK chunks. 2016-11-13 02:07:44 -05:00
yenatch 2fe1ee8638 aif2pcm: Avoid reading past eof. 2016-11-13 02:04:55 -05:00
yenatch 6dd4d9fd31 aif2pcm: Use uint8_t and fix implicitly signed char. 2016-11-13 01:47:11 -05:00
Cameron Hall 02860a983c add aif2pcm to .gitignore 2016-09-29 15:39:00 -07:00
YamaArashi 5878577c41 fix alignment issues with some versions of ld 2016-09-28 19:59:10 -07:00
YamaArashi e5fd0e3e1b begin using common symbols 2016-09-25 01:40:53 -07:00
YamaArashi 61ea6194c9 introduce RAM variable LD script generator tool 2016-09-25 00:32:04 -07:00
YamaArashi a1f83e332f add error check to RL decompression 2016-09-11 10:02:01 -07:00
YamaArashi a7aee9914e include stdint.h in aif2pcm main.c 2016-09-10 18:06:57 -07:00
yenatch 9ce874ce6d aif2pcm: Use uint32_t instead of unsigned long for .bin output. 2016-09-10 19:54:50 -04:00
YamaArashi 9cbf1aae19 make aif2pcm compatible with VS2015 2016-09-10 13:27:38 -07:00
Marcus Huderle f7351a803b Remove debugging statement from aif2pcm. 2016-09-10 11:24:33 -07:00
Marcus Huderle 3cb79cf078 Merge 'master' with 'origin/master' 2016-09-10 11:00:02 -07:00
Marcus Huderle b96fa854e1 Use .aif files for programmable wave instruments. 2016-09-08 17:57:29 -07:00
Marcus Huderle 001e1c77b8 Output .bin file for direct sound metadata (loop point, pitch adust, and number of samples). This was needed since we couldn't incbin a string argument in a macro. 2016-09-08 16:42:47 -07:00
Marcus Huderle ccdc106333 Convert .aif files to .pcm samples, and update Makefile to use aif2pcm tool. 2016-09-08 14:06:35 -07:00
YamaArashi 31c8226f60 support xcmd (partially) 2016-08-29 00:29:05 -07:00