Commit Graph

63 Commits

Author SHA1 Message Date
nmlgc cf95cc8717 [Maintenance] [th01] Remove `extern "C"` from all remaining areas of code
Nothing says "we're getting things done" quite as much as this.

Part of P0214, funded by Ember2528.
2022-08-14 23:03:15 +02:00
nmlgc e79f6c62bf [Decompilation] [th01] .GRP / .GRZ / .PTN: Move all data to C land
Cross-executable ZUN bloat 🤮

Part of P0213, funded by Ember2528 and GhostRiderCog.
2022-08-11 23:21:23 +02:00
nmlgc a0096e19c1 [Pipeline] bmp2arr: Emit 16- and 32-bit arrays in C++ mode
Part of P0205, funded by [Anonymous] and Yanga.
2022-07-17 19:48:40 +02:00
nmlgc 3ea61a8fa7 [Pipeline] bmp2arr: Emit trailing commas in C modes
Part of P0205, funded by [Anonymous] and Yanga.
2022-07-17 19:46:54 +02:00
nmlgc 73670108ae [Pipeline] bmp2arr: Add a C++ output format
This one will use the DotRect template from `planar.h` and generate a
single 16- or 32-dot value per row. Since this converter has a goal of
maximum portability, it makes sense to keep raw the multidimensional
C-style arrays around as a possible output format.

Part of P0205, funded by [Anonymous] and Yanga.
2022-07-17 19:45:14 +02:00
nmlgc caf48cf3ef [Pipeline] bmp2arr: Move C type generation into a single function
Part of P0205, funded by [Anonymous] and Yanga.
2022-07-17 19:40:36 +02:00
nmlgc 47dc6a6285 [Pipeline] bmp2arr: Support sprite widths of 32 pixels
It's more appropriate to have a single check in the task verification
code.

Part of P0205, funded by [Anonymous] and Yanga.
2022-07-17 19:35:33 +02:00
nmlgc a2358bef47 [Maintenance] Remove `extern "C"` from `x86real.h` and `decomp.hpp`
One of those per delivery now, eh?

Part of P0189, funded by Arandui and Lmocinemod.
2022-04-16 23:53:46 +02:00
nmlgc 15b4011ff2 [Maintenance] Remove inconsistent newlines before `extern "C"` braces
Part of P0168, funded by Blue Bolt and rosenrose.
2021-11-28 18:53:09 +01:00
nmlgc 1c5ed4b06e [Maintenance] Copy <dos.h>'s 16-bit x86 Real Mode declarations to a new file
DOS is not the same thing as the underlying CPU, after all. A separate
file not only indicates to future port authors which parts of the code
are x86-specific, but it also speeds up build times…

… in theory, because removing 677 lines from 49 files each doesn't seem
to speed up the build as much as I had hoped? But apparently my whole
system mysteriously got faster in the meantime, and I was getting 22-23
seconds for the entire repo even before this commit. Good enough.

Part of P0134, funded by [Anonymous].
2021-02-20 23:49:45 +01:00
nmlgc e8ac905d25 [Maintenance] master.hpp transition: Machine identification
Part of P0133, funded by [Anonymous].
2021-01-30 18:47:35 +01:00
nmlgc ec8668264c [Pipeline] bmp2arr: Fail if any non-#000/#FFF pixels are found
And that's all the minimum functionality I wanted to have.
Closes #8.

Part of P0113, funded by Lmocinemod.
2020-09-07 21:18:34 +02:00
nmlgc fea00067d7 [Pipeline] bmp2arr: Extend debug output to cover *all* relevant fields
And with that, we might even get away with not having command-line
help 😛

Part of P0113, funded by Lmocinemod.
2020-09-07 17:36:01 +02:00
nmlgc 23bf61b773 [Pipeline] bmp2arr: Add -q for silencing debug output on stderr
Part of P0113, funded by Lmocinemod.
2020-09-07 17:32:04 +02:00
nmlgc ea8d2466fe [Pipeline] bmp2arr: Require the output type to be provided explicitly
Part of P0113, funded by Lmocinemod.
2020-09-07 17:29:45 +02:00
nmlgc 24699942e6 [Pipeline] bmp2arr: Introduce error codes, and a separate reporting function
Part of P0113, funded by Lmocinemod.
2020-09-07 17:29:44 +02:00
nmlgc 66b72477d2 [Pipeline] bmp2arr: Use bitflags for the preshift/upside-down/debug BMP options
More ergonomic in initializer lists when used as a library.

Part of P0113, funded by Lmocinemod.
2020-09-07 17:29:43 +02:00
nmlgc dfc153ccaa [Pipeline] Merge Jonathan Campbell's sprite converter
Original code at

	https://github.com/joncampbell123/doslib/tree/master/tool/rec98/touhou

Thanks a lot! Almost completes issue #8.
2020-07-09 13:14:44 +02:00
Jonathan Campbell 3e0f8286df [Pipeline] bmp2arr: use malloc/free in a way that would make C++ compilers and their type checking happy 2020-07-09 00:39:06 -07:00
Jonathan Campbell 86c4d541a8 [Pipeline] bmp2arr: __BORLANDC__ and __TURBOC__ case 2020-07-09 00:37:00 -07:00
Jonathan Campbell 44b0313b38 [Pipeline] bmp2arr: write_sprite inner function should be private 2020-07-06 15:16:05 -07:00
Jonathan Campbell 2e4d0b3b8f [Pipeline] bmp2arr: conversion to lib finish 2020-07-06 15:14:50 -07:00
Jonathan Campbell feba961470 [Pipeline] bmp2arr: begin moving to lib 2020-07-06 15:09:42 -07:00
Jonathan Campbell 7afb28dc06 [Pipeline] bmp2arr: Follow MSVC 1.5 warnings 2020-06-27 17:42:55 -07:00
Jonathan Campbell bd7e028609 [Pipeline] bmp2arr: Complete changes. I can now compile bmp2arr.c using Microsoft Visual C++ 1.5 (the 16-bit compiler) 2020-06-27 17:39:45 -07:00
Jonathan Campbell e1e8be3d0d [Pipeline] bmp2arr: Try to work for Borland C and Microsoft C++ 2020-06-27 17:36:46 -07:00
Jonathan Campbell 80a1c99318 [Pipeline] bmp2arr: Remove OMF 2020-06-27 17:17:52 -07:00
Jonathan Campbell 2ac9e7c970 [Pipeline] bmp2arr: preshift grouping 2020-06-26 20:16:32 -07:00
Jonathan Campbell c3b46f6e5d [Pipeline] bmp2arr: Fix C commas 2020-06-26 20:14:35 -07:00
Jonathan Campbell 00da4aa422 [Pipeline] bmp2arr: preshift for sparks, begin 2020-06-26 20:12:46 -07:00
Jonathan Campbell 6485b8c88d [Pipeline] bmp2arr: Fix preshift, do not use data from sprite following the current 2020-06-26 19:58:50 -07:00
Jonathan Campbell 54288cfe60 [Pipeline] bmp2arr: preshift BMP 2020-06-26 19:51:02 -07:00
Jonathan Campbell 1ff658c307 [Pipeline] bmp2arr: more preshift 2020-06-26 19:50:09 -07:00
Jonathan Campbell d857f579e2 [Pipeline] bmp2arr: Begin preshift 2020-06-26 19:43:12 -07:00
Jonathan Campbell cc466c4654 [Pipeline] bmp2arr: more 2020-06-26 17:46:51 -07:00
Jonathan Campbell f90fe92f6c [Pipeline] bmp2arr: more 2020-06-26 17:36:39 -07:00
Jonathan Campbell d55ebe0358 [Pipeline] bmp2arr: row marker 2020-06-26 17:35:48 -07:00
Jonathan Campbell c45c6f860e [Pipeline] bmp2arr: asm more 2020-06-26 17:34:19 -07:00
Jonathan Campbell 776629ac0c [Pipeline] bmp2arr: ASM out 2020-06-26 17:32:32 -07:00
Jonathan Campbell 129b98cf4d [Pipeline] bmp2arr: Bitmap output, stride correct 2020-06-26 17:27:27 -07:00
Jonathan Campbell c36719f5fc [Pipeline] bmp2arr: more 2020-06-26 17:04:15 -07:00
Jonathan Campbell 1cc15151e8 [Pipeline] bmp2arr: scan, emit 2020-06-26 17:01:21 -07:00
Jonathan Campbell 9c62e00991 [Pipeline] bmp2arr: more 2020-06-26 16:26:20 -07:00
Jonathan Campbell e583a1c8ee [Pipeline] bmp2arr: Break out 2020-06-26 16:25:16 -07:00
Jonathan Campbell 1c673900f8 [Pipeline] bmp2arr: Make functions 2020-06-26 16:20:25 -07:00
Jonathan Campbell 06700a75b1 [Pipeline] bmp2arr: Begin save output 2020-06-26 16:16:56 -07:00
Jonathan Campbell 74c0ab7d42 [Pipeline] bmp2arr: Binary output 2020-06-26 15:44:57 -07:00
Jonathan Campbell deffa4d87c [Pipeline] bmp2arr: output symname 2020-06-26 15:41:45 -07:00
Jonathan Campbell 847205b79c [Pipeline] bmp2arr: Sprite width/height validation 2020-06-26 00:09:59 -07:00
Jonathan Campbell 51e335935a [Pipeline] bmp2arr: No output needed 2020-06-26 00:08:22 -07:00