summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjdflyer <jdflyer10@gmail.com>2022-01-17 20:00:12 -0700
committerjdflyer <jdflyer10@gmail.com>2022-01-17 20:00:12 -0700
commitecc987f34cff6397e9785063effcc5f2e7dc33c5 (patch)
treef313955fb3df6bdf6437a1d6b902797710fec6d0 /include
parent824a9eabc9e54bb5f5c6318fe0eb7e62aff2173c (diff)
Hyrule field speedhack and shiftability fixes
Diffstat (limited to 'include')
-rw-r--r--include/d/map/d_map_path.h14
-rw-r--r--include/dolphin/gx/GX.h4
2 files changed, 14 insertions, 4 deletions
diff --git a/include/d/map/d_map_path.h b/include/d/map/d_map_path.h
index f4fc8a3f2e..e1efd518f8 100644
--- a/include/d/map/d_map_path.h
+++ b/include/d/map/d_map_path.h
@@ -6,7 +6,13 @@
class dDrawPath_c : public dDlst_base_c {
public:
- struct line_class {};
+ struct line_class {
+ /*0x0*/ u8 unk0;
+ /*0x1*/ u8 unk1;
+ /*0x2*/ u8 unk2;
+ /*0x3*/ u8 unk3;
+ /*0x4*/ u16* unk4;
+ };
struct poly_class {};
@@ -52,7 +58,7 @@ public:
virtual void isDrawPath() = 0;
virtual void preRenderingMap() = 0;
virtual void postRenderingMap() = 0;
- virtual void getBackColor() const = 0;
+ virtual GXColor* getBackColor() const = 0;
};
class dRenderingFDAmap_c : public dRenderingMap_c {
@@ -65,8 +71,8 @@ public:
/* 8002ABF8 */ virtual ~dRenderingFDAmap_c();
/* 8003D188 */ virtual void preRenderingMap();
/* 8003D320 */ virtual void postRenderingMap();
- /* 8003D68C */ virtual void getDecoLineColor(int, int);
- /* 8003D6B8 */ virtual void getDecorationLineWidth(int);
+ /* 8003D68C */ virtual GXColor* getDecoLineColor(int, int);
+ /* 8003D6B8 */ virtual s32 getDecorationLineWidth(int);
private:
/* 0x04 */ int field_0x4;
diff --git a/include/dolphin/gx/GX.h b/include/dolphin/gx/GX.h
index d7aeb521c6..d5bd716e52 100644
--- a/include/dolphin/gx/GX.h
+++ b/include/dolphin/gx/GX.h
@@ -990,6 +990,10 @@ inline void GXPosition2u16(u16 x, u16 y) {
GFX_FIFO(u16) = y;
}
+inline void GXPosition1x16(u16 x) {
+ GFX_FIFO(u16) = x;
+}
+
inline void GXEnd() {}
};