Commit Graph

  • c32d1551c8 fix: regular xxd does not have -n, thus using some argument manipulation magic Quinn 2025-09-15 11:44:32 +02:00
  • b04ce9998f fix: shader hex code is formatted incorrectly Quinn 2025-09-15 11:08:54 +02:00
  • 218b98e684 fix: colour coding on error messages is incorrect Quinn 2025-09-15 11:07:20 +02:00
  • f20171c0d7 fix: using the linker for generating a .o file is a feature for only GNU ld. Quinn 2025-09-15 11:04:04 +02:00
  • 3a7709c392 fix: use more accurate linker flags / calling. Quinn 2025-09-15 10:14:42 +02:00
  • ec36d8c475 add runner architecture to the action cache Quinn 2025-09-15 10:04:58 +02:00
  • a14ef55262 fix: testing compilation does not correctly filter out main.o Quinn 2025-09-15 09:56:08 +02:00
  • d340bbe40b fix: fminf and other <math.h> from libm not found. Quinn 2025-09-15 09:55:48 +02:00
  • 0f6a2579b9 forcibly recompile the libs, so if deps get updated, this will be carried through. Quinn 2025-09-15 09:40:31 +02:00
  • 1ac4592503 Aparrently, the act docker container does not have cmake installed. Quinn 2025-09-15 09:34:27 +02:00
  • 4da02373a5 disable fail fast, so feedback is provided for all matrix combinations Quinn 2025-09-15 09:25:05 +02:00
  • c724ff0449 remove explicit definition for repository, since it messes with act Quinn 2025-09-15 09:20:07 +02:00
  • 348c4e484c fix: clean-libs can fail when it shouldn't Quinn 2025-09-13 21:44:46 +02:00
  • 1140bd97bf fix: linking library glfw, whilst the library compilation produces libglfw3. Quinn 2025-09-13 21:32:33 +02:00
  • 997b15c640 fix: obj/res/ path did not create a directory, so likely failed to place anything there. Quinn 2025-09-13 21:17:07 +02:00
  • f481af7e78 fix: incorrect gl.c path Quinn 2025-09-13 21:16:33 +02:00
  • 1169ca98b1 use threaded makefile for more efficiency. Quinn 2025-09-13 21:11:58 +02:00
  • 75ebff9071 remove pointer arithmatic warnings, since they are just useful Quinn 2025-09-13 21:11:38 +02:00
  • 4f081e7f3e remove usage of mempcpy; this is apart of GNU C Quinn 2025-09-13 21:09:56 +02:00
  • 8a1ed6e3c4 attempt without including windows Quinn 2025-09-13 21:04:29 +02:00
  • a7678c874c write a CI workflow for multiple OSes, that compile and test the code using the makefile. Quinn 2025-09-13 20:04:38 +02:00
  • d9ddae770a fix: just use compiler builtins with endianess Quinn 2025-09-13 19:38:38 +02:00
  • c2e1b67b4c seperate out library compilation from general compilation Quinn 2025-09-12 17:42:46 +02:00
  • 8548c2d037 fix: log macros were using GNU extensions without them needing them. Quinn 2025-09-12 17:34:04 +02:00
  • 7ec6a3b91a fix: using __bswap_X functions over bswap_X macros, which we should be using. Quinn 2025-09-12 17:24:40 +02:00
  • 3f48a7abb2 add compile commands events to gitignore Quinn 2025-09-12 13:12:15 +02:00
  • 667814fb72 rework makefile to put extera emphasis on us no longer performing cross-platform compilation Quinn 2025-09-11 23:27:55 +02:00
  • 23fda298e6 fix: makefile had some duplicate configurations Quinn 2025-09-11 21:37:33 +02:00
  • 03c76b0be6 rename makefile to Makefile, to reflect how everyone seems to name their makefile. Quinn 2025-09-11 23:28:53 +02:00
  • f0d14e76b2 write decompression logic up to the point of hanelling the buffer. Quinn 2025-09-10 12:52:35 +02:00
  • 07f4ea34d2 macro flipped const char Quinn 2025-09-10 12:07:00 +02:00
  • 5de0c77992 start writing code for decompressing chunk data. Quinn 2025-09-05 21:24:21 +02:00
  • 2cfae0fce4 rework error.h, to decrease impact on binary size. Quinn 2025-09-05 15:17:53 +02:00
  • d933931829 fix: shouldn't multiply by CHUNKS, but by SECTOR Quinn 2025-09-04 13:28:13 +02:00
  • f020347f71 change mvchunks parameter order, to be a bit more clear and consistent with functions such as memmove Quinn 2025-09-04 13:04:26 +02:00
  • b13de01f24 fix: violating strict aliasing rules in most areas in the new code. Quinn 2025-09-04 11:13:07 +02:00
  • 3a0704710c add a flag when debugging to generate SIGFPE when signed integer overflow occurs. (this is UB) Quinn 2025-09-04 10:39:30 +02:00
  • b72b8eaee1 add comments to point at where strict aliasing rule violations occur in data scripts Quinn 2025-09-03 22:39:15 +02:00
  • 55635d44ae delete redundant COLOUR32 definitions Quinn 2025-09-01 16:26:38 +02:00
  • 4fa0b41e7a add quit in main.c to atexit, for added safety Quinn 2025-09-01 16:22:45 +02:00
  • 8a5afd6915 write a portable version of endian.h, to replace the system's endian.h. Quinn 2025-08-29 11:46:02 +02:00
  • 8b952fb86f edit makefile to remove redundant flags, and make clean task more conditional Quinn 2025-08-29 11:46:32 +02:00
  • 0baadfca75 update copyright information in all files Quinn 2025-08-29 09:35:44 +02:00
  • 9a45294e56 write some constants for mcx.c, so things are less error-prone. Quinn 2025-08-29 09:35:02 +02:00
  • 5b5f1f54af remove unneeded code Quinn 2025-08-28 16:46:27 +02:00
  • f1141e0db4 fix: not moving chunks correctly in mcx_delchunk_range Quinn 2025-08-28 10:58:26 +02:00
  • 15942b47f5 fix: assertion was inverted Quinn 2025-08-28 10:57:00 +02:00
  • bc8803525d update comments and a parameter name in mcx.h Quinn 2025-08-27 14:57:34 +02:00
  • 7531d786be add a function for range deleting chunks Quinn 2025-08-27 14:37:41 +02:00
  • 2c5b9def28 should set the spare chunk to 0x400, not 0 Quinn 2025-08-27 14:37:33 +02:00
  • cd277873b5 split apart the moving of the data, for further flexibility Quinn 2025-08-27 14:35:12 +02:00
  • f203cabad9 fix: endianess was (often) converted after performing computations or missing completely. Quinn 2025-08-27 14:37:17 +02:00
  • 28dd8af353 add comments Quinn 2025-08-27 12:52:16 +02:00
  • 9c690eb327 add NONNULL attributes to chunk deletion functions Quinn 2025-08-27 12:31:47 +02:00
  • af8211c5ce write function for bulk removal of chunks Quinn 2025-08-27 11:14:52 +02:00
  • 767f3a5c13 refactor of mcx_delchunk to make things a bit more clear and flexible Quinn 2025-08-27 12:03:00 +02:00
  • 43e3e4fe85 fix: not converting big-endian numbers to host. Quinn 2025-08-27 11:53:53 +02:00
  • fad6f366b4 fix: mcx_delchunk was not updating the byte offset of affected chunks. Quinn 2025-08-27 11:41:31 +02:00
  • b7859d56d9 add function for computing the bytesize of the *.mcX file Quinn 2025-08-27 10:08:18 +02:00
  • 7a45724de7 modify planned features in README.md, to add a few of my ideas. Quinn 2025-08-27 09:54:55 +02:00
  • 1c863099a9 write a function for deleting a specific chunk. Quinn 2025-08-26 12:12:26 +02:00
  • 2f68574aea swap order of nbt_proctag and nbt_nexttag Quinn 2025-08-26 11:24:36 +02:00
  • 4e230ae856 add a utility macro for getting the bitwise ceiling. (e.i. the next power of 2) Quinn 2025-08-26 11:18:23 +02:00
  • e02f4091b8 start writing code for *.mcX file parsing, starting with indexing logic. Quinn 2025-08-25 14:29:45 +02:00
  • 1f46640e49 clarify which bytes we're referring to Quinn 2025-08-25 13:44:01 +02:00
  • 17357d4672 remove unused/unmaintained code. Quinn 2025-08-25 12:42:45 +02:00
  • 5644d377de make helper functions for nbt_proctag have similar IO as itself. Quinn 2025-08-25 12:40:17 +02:00
  • 44d2271972 fix: return values and list processing was too funky with nbt_proctag. Quinn 2025-08-25 10:57:15 +02:00
  • 545eecca37 remove CI, because I cannot be bothered. Quinn 2025-08-25 09:32:31 +02:00
  • 6dae1d1600 use a flexible array member for including length with array data Quinn 2025-08-24 13:21:05 +02:00
  • a6442a851e write a function for processing NBT_LIST Quinn 2025-08-24 13:06:04 +02:00
  • ec04177f45 remove exessive comments Quinn 2025-08-24 12:52:43 +02:00
  • 40b8c0ef30 write documentation for nbt_procarr. Quinn 2025-08-24 12:51:59 +02:00
  • 7feb193c51 make procarr code more consise. Quinn 2025-08-24 12:48:21 +02:00
  • 29c8a2b6ea improve documentation for the nbt_proctag function Quinn 2025-08-23 23:19:16 +02:00
  • 8cd29225d1 remove outdated TODO comments Quinn 2025-08-23 23:12:55 +02:00
  • 20ec45f230 fix: not actually returning NULL. Quinn 2025-08-23 23:11:52 +02:00
  • 3cdee8b40c add nbt_proctag to nbt.h Quinn 2025-08-23 23:10:26 +02:00
  • 89ceb5263c put attributes after function declarations Quinn 2025-08-23 23:08:51 +02:00
  • 4fa0a84c94 fix attributes with parameters to be less messy due to vardiac arguments Quinn 2025-08-23 23:01:01 +02:00
  • 8452f7d21e updated contents link in styleref Quinn 2025-08-23 22:36:21 +02:00
  • 6c0a1de365 fix: x86_64 wikipedia link is always the English variant. Quinn 2025-08-23 22:32:07 +02:00
  • d9ee6c9155 replace "UNIX-based systems" with "Linux systems" Quinn 2025-08-23 22:31:06 +02:00
  • 5ba44689ff remove unused file Quinn 2025-08-23 22:26:26 +02:00
  • fb21e7e782 add more planned features to the list Quinn 2025-08-23 22:23:18 +02:00
  • f1ea7dcef8 continue working on nbt_proctag focussing on array processing. Quinn 2025-08-22 13:02:12 +02:00
  • 9996e84ef5 move contents of do while loop in nbt_nexttag into its own funciton Quinn 2025-08-22 09:58:45 +02:00
  • 949cac5bfe move NBT_LIST case into its own function Quinn 2025-08-22 09:52:55 +02:00
  • 3eb92541db simplify the ptr increment a bit, so it's more clear what's going on Quinn 2025-08-20 19:00:57 +02:00
  • df3720b966 refactor via swapping values to instead have n * len, to be len * n Quinn 2025-08-20 18:41:47 +02:00
  • f53e4315ee fix: dpt increment is unecessary. Quinn 2025-08-20 18:35:31 +02:00
  • 24f9ba047e fix: not handling END tags in a list Quinn 2025-08-20 18:29:46 +02:00
  • e67d8c7fd4 fix: lens[dpt] is not a type, should be tags[dpt] Quinn 2025-08-20 16:45:53 +02:00
  • 23b64199d7 implement handling compound lists Quinn 2025-08-20 16:40:24 +02:00
  • 6a9d6f75a4 fix: fatal macro not printing to stderr Quinn 2025-08-20 11:46:31 +02:00
  • e018e1ff1b reorder variables in nbt_nexttag Quinn 2025-08-20 10:46:37 +02:00
  • 1b09d3d7f1 remove need for mems, since the compiler will likely optimise it away regardless Quinn 2025-08-20 10:44:46 +02:00
  • e4b90246c5 remove unused nbt_primsize function Quinn 2025-08-19 11:14:38 +02:00
  • c15046e017 small fix with nbt_proctag, and remove usage of nbt_primsize Quinn 2025-08-19 11:14:14 +02:00
  • e3a8063124 calling nbt_primsize actually takes up more lines than if I didn't. Quinn 2025-08-19 11:07:13 +02:00