summaryrefslogtreecommitdiff
path: root/csrc/test/dump_600.c
diff options
context:
space:
mode:
Diffstat (limited to 'csrc/test/dump_600.c')
-rw-r--r--csrc/test/dump_600.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/csrc/test/dump_600.c b/csrc/test/dump_600.c
new file mode 100644
index 0000000..99d224a
--- /dev/null
+++ b/csrc/test/dump_600.c
@@ -0,0 +1,18 @@
+/* gcc -m32 -I.. dump_600.c ../mkf.c ../mkf_00455040.c -o dump_600 */
+/* copy Data.mkf and run this, open loading.data with GIMP,
+ * data type is RGB565 little endian, size 165*256, it's a tortoise card! */
+
+#include <stdio.h>
+#include "mkf.h"
+
+int pixel_fmt = 1;
+
+int main()
+{
+ int mkf_data = load_mkf("Data.mkf");
+ char *data = read_mkf(mkf_data, 600, NULL, NULL);
+ FILE *fp = fopen("600.data", "wb");
+ fwrite(data, 1, 84480, fp);
+ fclose(fp);
+ unload_mkf(mkf_data);
+}