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
+2 -2
View File
@@ -1,13 +1,13 @@
#ifndef JKRARAM_H
#define JKRARAM_H
#include "dolphin/types.h"
#include "JSystem/JKernel/JKRAramHeap.h"
#include "JSystem/JKernel/JKRDvdRipper.h"
#include "JSystem/JKernel/JKRThread.h"
#include "dolphin/types.h"
class JKRHeap;
class JKRAMCommand;
class JKRAramBlock;
class JKRAram : public JKRThread {
private:
+3
View File
@@ -5,6 +5,9 @@
#include "JSystem/JKernel/JKRArchive.h"
#include "dolphin/types.h"
class JKRAramBlock;
class JKRDvdFile;
class JKRAramArchive : public JKRArchive {
public:
JKRAramArchive(long, JKRArchive::EMountDirection);
-3
View File
@@ -1,9 +1,6 @@
#ifndef JKRARAMBLOCK_H
#define JKRARAMBLOCK_H
#include "dolphin/types.h"
#include "JSystem/JKernel/JKRArchive.h"
#include "JSystem/JSupport/JSUList.h"
#include "dolphin/types.h"
+1 -1
View File
@@ -3,7 +3,7 @@
#include "JSystem/JKernel/JKRAramBlock.h"
#include "JSystem/JKernel/JKRDisposer.h"
#include "dolphin/os/OS.h"
#include "dolphin/os/OSMutex.h"
#include "dolphin/types.h"
class JKRAramHeap : public JKRDisposer {
+2 -1
View File
@@ -3,7 +3,8 @@
#include "JSystem/JSupport/JSUList.h"
#include "dolphin/ar/arq.h"
#include "dolphin/os/OS.h"
#include "dolphin/os/OSMessage.h"
#include "dolphin/os/OSMutex.h"
#include "dolphin/types.h"
class JKRAramBlock;
+2 -3
View File
@@ -2,12 +2,11 @@
#define JKRARCHIVE_H
#include "JSystem/JKernel/JKRCompression.h"
#include "JSystem/JKernel/JKRDecomp.h"
#include "JSystem/JKernel/JKRDvdFile.h"
#include "JSystem/JKernel/JKRFileLoader.h"
#include "JSystem/JKernel/JKRHeap.h"
#include "global.h"
class JKRHeap;
struct SArcHeader {
/* 0x00 */ u32 signature;
/* 0x04 */ u32 file_length;
+3
View File
@@ -4,6 +4,9 @@
#include "JSystem/JKernel/JKRArchive.h"
#include "dolphin/types.h"
class JKRAramBlock;
class JKRDvdFile;
class JKRCompArchive : public JKRArchive {
public:
JKRCompArchive(long, JKRArchive::EMountDirection);
@@ -2,6 +2,7 @@
#define JKRDVDARAMRIPPER_H
#include "JSystem/JKernel/JKRDvdRipper.h"
#include "JSystem/JSupport/JSUList.h"
#include "dolphin/types.h"
class JKRAramBlock;
+4 -1
View File
@@ -3,9 +3,12 @@
#include "JSystem/JKernel/JKRFile.h"
#include "dolphin/dvd/dvd.h"
#include "dolphin/os/OS.h"
#include "dolphin/os/OSMessage.h"
#include "dolphin/os/OSMutex.h"
#include "dolphin/types.h"
struct OSThread;
class JKRADCommand;
class JKRAramBlock;
class JSUFileInputStream;
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef JKRDVDRIPPER_H
#define JKRDVDRIPPER_H
#include "JSystem/JKernel/JKRDecomp.h"
#include "JSystem/JKernel/JKRCompression.h"
#include "dolphin/types.h"
enum JKRExpandSwitch {
+1 -1
View File
@@ -2,7 +2,7 @@
#define JKRHEAP_H
#include "JSystem/JKernel/JKRDisposer.h"
#include "dolphin/os/OS.h"
#include "dolphin/os/OSMutex.h"
#include "dolphin/types.h"
class JKRHeap;
+3 -2
View File
@@ -4,7 +4,9 @@
#include "JSystem/JKernel/JKRDisposer.h"
#include "JSystem/JKernel/JKRHeap.h"
#include "JSystem/JSupport/JSUList.h"
#include "dolphin/os/OS.h"
#include "dolphin/os/OSMessage.h"
#include "dolphin/os/OSThread.h"
#include "dolphin/os/OSTime.h"
#include "dolphin/types.h"
struct JKRThreadName_ {
@@ -13,7 +15,6 @@ struct JKRThreadName_ {
};
class JUTConsole;
class JKRHeap;
class JKRThread : JKRDisposer {
public:
class TLoad {