mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-10 00:08:23 +03:00
Use little_endian.h in libsys4
This commit is contained in:
+1
-1
@@ -18,9 +18,9 @@
|
||||
#include <stdlib.h>
|
||||
#include "system4.h"
|
||||
#include "system4/file.h"
|
||||
#include "system4/little_endian.h"
|
||||
|
||||
#include "mixer.h"
|
||||
#include "little_endian.h"
|
||||
#include "xsystem4.h"
|
||||
|
||||
#define BGI_MAX 100
|
||||
|
||||
+1
-1
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "system4/dasm.h"
|
||||
#include "system4/hashtable.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
#include "system4/utfsjis.h"
|
||||
|
||||
@@ -33,7 +34,6 @@
|
||||
#include "vm/page.h"
|
||||
|
||||
#include "debugger.h"
|
||||
#include "little_endian.h"
|
||||
#include "xsystem4.h"
|
||||
|
||||
bool dbg_dap = false;
|
||||
|
||||
+1
-1
@@ -26,6 +26,7 @@
|
||||
|
||||
#include "system4.h"
|
||||
#include "system4/file.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
#include "system4/utfsjis.h"
|
||||
|
||||
@@ -35,7 +36,6 @@
|
||||
|
||||
#include "scene.h"
|
||||
#include "debugger.h"
|
||||
#include "little_endian.h"
|
||||
#include "xsystem4.h"
|
||||
|
||||
struct dbg_cmd_node;
|
||||
|
||||
+1
-1
@@ -23,6 +23,7 @@
|
||||
#include "system4/ain.h"
|
||||
#include "system4/file.h"
|
||||
#include "system4/instructions.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
#include "system4/utfsjis.h"
|
||||
#include "vm.h"
|
||||
@@ -30,7 +31,6 @@
|
||||
#include "vm/page.h"
|
||||
|
||||
#include "debugger.h"
|
||||
#include "little_endian.h"
|
||||
|
||||
struct variable {
|
||||
enum ain_data_type data_type;
|
||||
|
||||
+1
-1
@@ -23,9 +23,9 @@
|
||||
#include "system4/string.h"
|
||||
#include "system4/acx.h"
|
||||
#include "system4/file.h"
|
||||
#include "system4/little_endian.h"
|
||||
|
||||
#include "hll.h"
|
||||
#include "little_endian.h"
|
||||
#include "vm/heap.h"
|
||||
#include "vm/page.h"
|
||||
#include "xsystem4.h"
|
||||
|
||||
+1
-1
@@ -20,13 +20,13 @@
|
||||
#include <zlib.h>
|
||||
|
||||
#include "system4/file.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
#include "system4/mt19937int.h"
|
||||
|
||||
#include "hll.h"
|
||||
#include "audio.h"
|
||||
#include "iarray.h"
|
||||
#include "little_endian.h"
|
||||
#include "savedata.h"
|
||||
#include "vm/page.h"
|
||||
#include "xsystem4.h"
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
#include "system4/hashtable.h"
|
||||
#include "system4/mt19937int.h"
|
||||
#include "system4/string.h"
|
||||
#include "little_endian.h"
|
||||
#include "system4/little_endian.h"
|
||||
|
||||
#include "audio.h"
|
||||
#include "sact.h"
|
||||
|
||||
+1
-1
@@ -19,11 +19,11 @@
|
||||
|
||||
#include "system4/archive.h"
|
||||
#include "system4/buffer.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
|
||||
#include "hll.h"
|
||||
#include "asset_manager.h"
|
||||
#include "little_endian.h"
|
||||
#include "vm/heap.h"
|
||||
#include "vm/page.h"
|
||||
#include "xsystem4.h"
|
||||
|
||||
+1
-1
@@ -25,10 +25,10 @@
|
||||
#include "system4.h"
|
||||
#include "system4/buffer.h"
|
||||
#include "system4/file.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
|
||||
#include "hll.h"
|
||||
#include "little_endian.h"
|
||||
#include "savedata.h"
|
||||
#include "vm/heap.h"
|
||||
#include "vm/page.h"
|
||||
|
||||
+3
-3
@@ -22,9 +22,9 @@
|
||||
|
||||
#include "system4.h"
|
||||
#include "system4/file.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
|
||||
#include "little_endian.h"
|
||||
#include "hll.h"
|
||||
#include "xsystem4.h"
|
||||
|
||||
@@ -149,7 +149,7 @@ static struct rea *rea_open(const char *path)
|
||||
goto err;
|
||||
}
|
||||
|
||||
uint32_t mdlf_size = LittleEndian_getDW(header, 28);
|
||||
uint32_t mdlf_size = LittleEndian_getDW((uint8_t*)header, 28);
|
||||
rea->index_stream = inflate_stream_new(rea->fp, mdlf_size);
|
||||
if (!rea->index_stream)
|
||||
goto err;
|
||||
@@ -164,7 +164,7 @@ static struct rea *rea_open(const char *path)
|
||||
WARNING("%s: cannot find MDCD section", display_utf0(path));
|
||||
goto err;
|
||||
}
|
||||
rea->mdcd_size = LittleEndian_getDW(mdcd_header, 4);
|
||||
rea->mdcd_size = LittleEndian_getDW((uint8_t*)mdcd_header, 4);
|
||||
rea->mdcd_offset = ftell(rea->fp);
|
||||
return rea;
|
||||
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
#include "system4/cg.h"
|
||||
#include "system4/file.h"
|
||||
#include "system4/mt19937int.h"
|
||||
#include "little_endian.h"
|
||||
#include "system4/little_endian.h"
|
||||
|
||||
#include "hll.h"
|
||||
#include "sact.h"
|
||||
|
||||
+1
-1
@@ -22,10 +22,10 @@
|
||||
#include "system4.h"
|
||||
#include "system4/ain.h"
|
||||
#include "system4/file.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
#include "system4/utfsjis.h"
|
||||
|
||||
#include "little_endian.h"
|
||||
#include "vm.h"
|
||||
#include "xsystem4.h"
|
||||
|
||||
|
||||
@@ -23,11 +23,11 @@
|
||||
|
||||
#include "system4.h"
|
||||
#include "system4/buffer.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
#include "system4/file.h"
|
||||
|
||||
#include "hll.h"
|
||||
#include "little_endian.h"
|
||||
#include "xsystem4.h"
|
||||
|
||||
/*
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <string.h>
|
||||
#include <zlib.h>
|
||||
|
||||
#include "little_endian.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/buffer.h"
|
||||
#include "system4/file.h"
|
||||
#include "system4/string.h"
|
||||
|
||||
+1
-1
@@ -20,10 +20,10 @@
|
||||
#include <errno.h>
|
||||
|
||||
#include "system4/file.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
#include "system4/utfsjis.h"
|
||||
|
||||
#include "little_endian.h"
|
||||
#include "hll.h"
|
||||
#include "xsystem4.h"
|
||||
|
||||
|
||||
+1
-1
@@ -16,8 +16,8 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include "little_endian.h"
|
||||
#include "system4.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
#include "system4/utfsjis.h"
|
||||
#include "vm/heap.h"
|
||||
|
||||
+1
-1
@@ -21,11 +21,11 @@
|
||||
#include "system4.h"
|
||||
#include "system4/archive.h"
|
||||
#include "system4/hashtable.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
|
||||
#include "asset_manager.h"
|
||||
#include "audio.h"
|
||||
#include "little_endian.h"
|
||||
#include "swf.h"
|
||||
#include "xsystem4.h"
|
||||
#include "parts.h"
|
||||
|
||||
+1
-1
@@ -30,6 +30,7 @@
|
||||
#include "system4/file.h"
|
||||
#include "system4/ini.h"
|
||||
#include "system4/instructions.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
#include "system4/utfsjis.h"
|
||||
|
||||
@@ -38,7 +39,6 @@
|
||||
#include "debugger.h"
|
||||
#include "gfx/gfx.h"
|
||||
#include "gfx/font.h"
|
||||
#include "little_endian.h"
|
||||
#include "vm.h"
|
||||
|
||||
#include "version.h"
|
||||
|
||||
@@ -28,11 +28,11 @@
|
||||
#include "system4/ain.h"
|
||||
#include "system4/instructions.h"
|
||||
#include "system4/file.h"
|
||||
#include "system4/little_endian.h"
|
||||
#include "system4/string.h"
|
||||
#include "system4/utfsjis.h"
|
||||
|
||||
#include "debugger.h"
|
||||
#include "little_endian.h"
|
||||
#include "input.h"
|
||||
#include "savedata.h"
|
||||
#include "vm.h"
|
||||
|
||||
Reference in New Issue
Block a user