From: kub Date: Thu, 21 Mar 2024 18:08:54 +0000 (+0100) Subject: core, big endian fix (save/load) X-Git-Tag: v2.00~87 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64360d13b092b6fc7ca1094af02707da7ff2739f;p=picodrive.git core, big endian fix (save/load) --- diff --git a/pico/state.c b/pico/state.c index 3b93765f..635c95d2 100644 --- a/pico/state.c +++ b/pico/state.c @@ -187,7 +187,7 @@ static const char * const chunk_names[CHUNK_DEFAULT_COUNT] = { "32X events", }; -static int write_chunk(chunk_name_e name, int len, void *data, void *file) +static int write_chunk(unsigned char name, int len, void *data, void *file) { size_t bwritten = 0; bwritten += areaWrite(&name, 1, 1, file);