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
This commit is contained in:
Jcw87
2023-05-12 12:10:14 -07:00
committed by GitHub
parent 8c7cda8589
commit 221f40e609
640 changed files with 1703 additions and 560 deletions
+5 -2
View File
@@ -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:
+2 -1
View File
@@ -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;
+7 -3
View File
@@ -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);
-1
View File
@@ -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 {
+1 -1
View File
@@ -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"
+2 -1
View File
@@ -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 };
+3 -1
View File
@@ -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 {
+4 -1
View File
@@ -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);
+3 -2
View File
@@ -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];
+4 -1
View File
@@ -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
+3 -2
View File
@@ -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"
+3 -1
View File
@@ -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
+1 -1
View File
@@ -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 {