diff options
| author | Jcw87 <Jcw87@users.noreply.github.com> | 2023-05-12 12:10:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-12 12:10:14 -0700 |
| commit | 221f40e6097dfe76c76602aa21aa07d5f760dce4 (patch) | |
| tree | b8f2549712927365bcffd13688729555a4276ff1 /include/JSystem/JUtility | |
| parent | 8c7cda85891b41cfdbce72ed4efb00292f34a16a (diff) | |
Remove #includes from headers (#334)
* add "global.h" to files that use it
* add MSL_C includes to files that use them
* remove dolphin includes from headers that don't need them
* remove JSupport includes from headers that don't need them
* remove JKernel includes from headers that don't need them
* remove JUtility includes from headers that don't need them
* remove J3D includes from headers that don't need them
* remove J2D includes from headers that don't need them
* remove JAudio2 includes from headers that don't need them
* remove Z2AudioLib includes from headers that don't need them
* remove JMessage includes from headers that don't need them
* remove JParticle includes from headers that don't need them
* remove SComponent includes from headers that don't need them
* remove dol includes from headers that don't need them
* sort includes
Diffstat (limited to 'include/JSystem/JUtility')
| -rw-r--r-- | include/JSystem/JUtility/JUTCacheFont.h | 7 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTDbPrint.h | 3 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTException.h | 10 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTFont.h | 1 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTGamePad.h | 2 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTPalette.h | 3 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTProcBar.h | 4 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTResFont.h | 5 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTResource.h | 5 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTTexture.h | 5 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTVideo.h | 5 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTXfb.h | 4 | ||||
| -rw-r--r-- | include/JSystem/JUtility/TColor.h | 2 |
13 files changed, 38 insertions, 18 deletions
diff --git a/include/JSystem/JUtility/JUTCacheFont.h b/include/JSystem/JUtility/JUTCacheFont.h index c244852aeb..f4802ad632 100644 --- a/include/JSystem/JUtility/JUTCacheFont.h +++ b/include/JSystem/JUtility/JUTCacheFont.h @@ -1,9 +1,12 @@ #ifndef JUTCACHEFONT_H #define JUTCACHEFONT_H -#include "dolphin/types.h" #include "JSystem/JUtility/JUTResFont.h" -#include "JSystem/JKernel/JKRAram.h" +#include "dolphin/gx/GXEnum.h" +#include "dolphin/types.h" +#include "global.h" + +class JKRAramBlock; class JUTCacheFont : public JUTResFont { public: diff --git a/include/JSystem/JUtility/JUTDbPrint.h b/include/JSystem/JUtility/JUTDbPrint.h index 30b325183d..abb86b051c 100644 --- a/include/JSystem/JUtility/JUTDbPrint.h +++ b/include/JSystem/JUtility/JUTDbPrint.h @@ -1,10 +1,11 @@ #ifndef JUTDBPRINT_H #define JUTDBPRINT_H -#include "JSystem/JKernel/JKRHeap.h" #include "JSystem/JUtility/JUTFont.h" #include "dolphin/types.h" +class JKRHeap; + // TODO: fix struct struct unk_print { /* 0x00 */ unk_print* mNext; diff --git a/include/JSystem/JUtility/JUTException.h b/include/JSystem/JUtility/JUTException.h index e03079cd50..6fac9abae8 100644 --- a/include/JSystem/JUtility/JUTException.h +++ b/include/JSystem/JUtility/JUTException.h @@ -3,14 +3,18 @@ #include "JSystem/JKernel/JKRThread.h" #include "JSystem/JSupport/JSUList.h" -#include "JSystem/JUtility/JUTDirectPrint.h" #include "JSystem/JUtility/JUTGamePad.h" #include "Runtime.PPCEABI.H/__va_arg.h" -#include "dolphin/gx/GX.h" -#include "dolphin/os/OS.h" +#include "dolphin/gx/GXEnum.h" +#include "dolphin/os/OSError.h" +#include "dolphin/os/OSMessage.h" #include "dolphin/types.h" #include "global.h" +typedef struct _GXRenderModeObj GXRenderModeObj; +typedef struct OSContext OSContext; +class JUTDirectPrint; + class JUTExternalFB { public: /* 802E40CC */ JUTExternalFB(_GXRenderModeObj*, GXGamma, void*, u32); diff --git a/include/JSystem/JUtility/JUTFont.h b/include/JSystem/JUtility/JUTFont.h index 4cb04da538..dc6037c0f7 100644 --- a/include/JSystem/JUtility/JUTFont.h +++ b/include/JSystem/JUtility/JUTFont.h @@ -3,7 +3,6 @@ #include "JSystem/JUtility/TColor.h" #include "MSL_C/string.h" -#include "dolphin/gx/GX.h" #include "dolphin/types.h" struct ResFONT { diff --git a/include/JSystem/JUtility/JUTGamePad.h b/include/JSystem/JUtility/JUTGamePad.h index 707b63e2f8..322fd52aa9 100644 --- a/include/JSystem/JUtility/JUTGamePad.h +++ b/include/JSystem/JUtility/JUTGamePad.h @@ -3,7 +3,7 @@ #include "JSystem/JKernel/JKRDisposer.h" #include "JSystem/JSupport/JSUList.h" -#include "dolphin/os/OS.h" +#include "dolphin/os/OSTime.h" #include "dolphin/pad/Pad.h" #include "dolphin/types.h" diff --git a/include/JSystem/JUtility/JUTPalette.h b/include/JSystem/JUtility/JUTPalette.h index 329ca6ff2e..9705458d01 100644 --- a/include/JSystem/JUtility/JUTPalette.h +++ b/include/JSystem/JUtility/JUTPalette.h @@ -1,7 +1,8 @@ #ifndef JUTPALETTE_H #define JUTPALETTE_H -#include "dolphin/gx/GX.h" +#include "dolphin/gx/GXEnum.h" +#include "dolphin/gx/GXStruct.h" #include "dolphin/types.h" enum JUTTransparency { UNK0, UNK1 }; diff --git a/include/JSystem/JUtility/JUTProcBar.h b/include/JSystem/JUtility/JUTProcBar.h index d5ecd5f0d1..c3edd4768e 100644 --- a/include/JSystem/JUtility/JUTProcBar.h +++ b/include/JSystem/JUtility/JUTProcBar.h @@ -1,10 +1,12 @@ #ifndef JUTPROCBAR_H #define JUTPROCBAR_H -#include "JSystem/JKernel/JKRHeap.h" #include "JSystem/JUtility/TColor.h" +#include "dolphin/os/OSTime.h" #include "dolphin/types.h" +class JKRHeap; + class JUTProcBar { public: class CTime { diff --git a/include/JSystem/JUtility/JUTResFont.h b/include/JSystem/JUtility/JUTResFont.h index 3a7a067b46..3187947f2e 100644 --- a/include/JSystem/JUtility/JUTResFont.h +++ b/include/JSystem/JUtility/JUTResFont.h @@ -1,8 +1,11 @@ #ifndef JUTRESFONT_H #define JUTRESFONT_H -#include "JSystem/JKernel/JKRHeap.h" #include "JSystem/JUtility/JUTFont.h" +#include "dolphin/gx/GXEnum.h" +#include "dolphin/gx/GXStruct.h" + +class JKRHeap; typedef bool (*IsLeadByte_func)(int); diff --git a/include/JSystem/JUtility/JUTResource.h b/include/JSystem/JUtility/JUTResource.h index 3447ca53af..3f4846caba 100644 --- a/include/JSystem/JUtility/JUTResource.h +++ b/include/JSystem/JUtility/JUTResource.h @@ -1,10 +1,11 @@ #ifndef JUTRESOURCE_H #define JUTRESOURCE_H -#include "JSystem/JKernel/JKRArchive.h" -#include "JSystem/JSupport/JSUInputStream.h" #include "dolphin/types.h" +class JKRArchive; +class JSUInputStream; + class JUTResReference { private: u8 unk_0x0[0x101]; diff --git a/include/JSystem/JUtility/JUTTexture.h b/include/JSystem/JUtility/JUTTexture.h index c9ab2dd780..c9c179af1e 100644 --- a/include/JSystem/JUtility/JUTTexture.h +++ b/include/JSystem/JUtility/JUTTexture.h @@ -1,9 +1,12 @@ #ifndef JUTTEXTURE_H #define JUTTEXTURE_H -#include "JSystem/JUtility/JUTPalette.h" +#include "dolphin/gx/GXEnum.h" +#include "dolphin/gx/GXStruct.h" #include "dolphin/types.h" +class JUTPalette; + /* * Acts as the header to image data. Usually texture data immediately follows it, * so any pointer arithmetic to go past the end of this structure is so that a diff --git a/include/JSystem/JUtility/JUTVideo.h b/include/JSystem/JUtility/JUTVideo.h index 319a8f2c7c..d031439eba 100644 --- a/include/JSystem/JUtility/JUTVideo.h +++ b/include/JSystem/JUtility/JUTVideo.h @@ -1,8 +1,9 @@ #ifndef JUTVIDEO_H #define JUTVIDEO_H -#include "dolphin/gx/GX.h" -#include "dolphin/os/OS.h" +#include "dolphin/gx/GXStruct.h" +#include "dolphin/os/OSMessage.h" +#include "dolphin/os/OSTime.h" #include "dolphin/types.h" #include "dolphin/vi/vi.h" diff --git a/include/JSystem/JUtility/JUTXfb.h b/include/JSystem/JUtility/JUTXfb.h index 5d3933cc71..2edd92761f 100644 --- a/include/JSystem/JUtility/JUTXfb.h +++ b/include/JSystem/JUtility/JUTXfb.h @@ -1,10 +1,12 @@ #ifndef JUTXFB_H #define JUTXFB_H -#include "JSystem/JKernel/JKRHeap.h" #include "JSystem/JUtility/JUTVideo.h" #include "dolphin/types.h" +typedef struct _GXRenderModeObj GXRenderModeObj; +class JKRHeap; + class JUTXfb { public: enum EXfbNumber { // TODO: placeholder diff --git a/include/JSystem/JUtility/TColor.h b/include/JSystem/JUtility/TColor.h index 344a6cf10b..7e7e00f23f 100644 --- a/include/JSystem/JUtility/TColor.h +++ b/include/JSystem/JUtility/TColor.h @@ -1,7 +1,7 @@ #ifndef TCOLOR_H #define TCOLOR_H -#include "dolphin/gx/GX.h" +#include "dolphin/gx/GXStruct.h" #include "dolphin/types.h" namespace JUtility { |
