Core/ConfigManager: Use forward declarations where applicable

Avoids dragging in IniFile, EXI device and SI device headers in this header which is
quite widely used throughout the codebase.

This also uncovered a few cases where indirect inclusions were being
relied upon, which this also fixes.
This commit is contained in:
Lioncash
2019-06-07 18:25:32 -04:00
parent e73a3ba1c6
commit c0c0e412e0
16 changed files with 36 additions and 11 deletions

View File

@ -11,9 +11,9 @@
#include <utility>
#include <vector>
#include "Common/IniFile.h"
#include "Core/HW/EXI/EXI_Device.h"
#include "Core/HW/SI/SI_Device.h"
#include "Common/CommonTypes.h"
class IniFile;
namespace DiscIO
{
@ -24,19 +24,26 @@ struct Partition;
class Volume;
} // namespace DiscIO
namespace IOS
namespace ExpansionInterface
{
namespace ES
enum TEXIDevices : int;
} // namespace ExpansionInterface
namespace IOS::ES
{
class TMDReader;
}
} // namespace IOS
} // namespace IOS::ES
namespace PowerPC
{
enum class CPUCore;
} // namespace PowerPC
namespace SerialInterface
{
enum SIDevices : int;
} // namespace SerialInterface
struct BootParameters;
// DSP Backend Types