summaryrefslogtreecommitdiff
path: root/Loader
diff options
context:
space:
mode:
Diffstat (limited to 'Loader')
-rw-r--r--Loader/loader-psyq.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Loader/loader-psyq.cpp b/Loader/loader-psyq.cpp
new file mode 100644
index 0000000..d6d8876
--- /dev/null
+++ b/Loader/loader-psyq.cpp
@@ -0,0 +1,20 @@
+#include "database.h"
+
+union psyq_header_t {
+ struct {
+ Uint8 id[8];
+ Uint32 text, data, pc0, gp0, t_addr, t_size;
+ Uint32 d_addr, d_size, b_addr, b_size, s_addr, s_size;
+ Uint32 sp, fp, gp, ra, s0;
+ };
+ Uint8 raw[0x800];
+};
+
+class loader_psyq : public Base {
+ public:
+ static void load(Handle * input, Database * database) {
+ psyq_header_t head;
+
+ input->read(&head, sizeof(head));
+ }
+};