Implement zx0 compression

Compress data tables with the ZX0 compression algorithm
This commit is contained in:
Philippe Symons
2025-04-24 21:14:48 +02:00
parent ba8738fc4b
commit 532a095d77
38 changed files with 7255 additions and 6159 deletions

View File

@@ -223,7 +223,7 @@ int ptgb_write(const byte *text, bool instant, int length)
return 0; // str - text;
}
// This is mostly used for debug stuff, I shouldn't rely it on it much.
int ptgb_write_debug(const char *text, bool instant)
int ptgb_write_debug(const u16* charset, const char *text, bool instant)
{
byte temp_holding[256];
int i;
@@ -240,7 +240,7 @@ int ptgb_write_debug(const char *text, bool instant)
}
else
{
temp_holding[i] = get_gen_3_char(text[i], false);
temp_holding[i] = get_char_from_charset(charset, text[i]);
}
}
return ptgb_write(temp_holding, instant);