Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #696 from lioncash/more-forward-decls
Convert some more header inclusions into forward declarations
  • Loading branch information
Parlane committed Jul 30, 2014
2 parents 4b66c6c + 522a5c3 commit a3ca3b0
Show file tree
Hide file tree
Showing 22 changed files with 33 additions and 21 deletions.
1 change: 1 addition & 0 deletions Source/Core/Core/HW/DSPHLE/MailHandler.cpp
Expand Up @@ -2,6 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.

#include "Common/ChunkFile.h"
#include "Core/HW/DSPHLE/MailHandler.h"

CMailHandler::CMailHandler()
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/HW/DSPHLE/MailHandler.h
Expand Up @@ -5,10 +5,10 @@
#pragma once

#include <queue>

#include "Common/ChunkFile.h"
#include "Common/Common.h"

class PointerWrap;

class CMailHandler
{
public:
Expand Down
3 changes: 3 additions & 0 deletions Source/Core/Core/HW/GCMemcardRaw.cpp
@@ -1,9 +1,12 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.

#include "Common/ChunkFile.h"
#include "Core/Core.h"
#include "Core/HW/GCMemcard.h"
#include "Core/HW/GCMemcardRaw.h"

#define SIZE_TO_Mb (1024 * 8 * 16)
#define MC_HDR_SIZE 0xA000

Expand Down
3 changes: 2 additions & 1 deletion Source/Core/Core/HW/GCMemcardRaw.h
Expand Up @@ -4,10 +4,11 @@

#pragma once

#include "Common/ChunkFile.h"
#include "Common/Thread.h"
#include "Core/HW/GCMemcard.h"

class PointerWrap;

// Data structure to be passed to the flushing thread.
struct FlushData
{
Expand Down
1 change: 1 addition & 0 deletions Source/Core/Core/HW/HW.cpp
Expand Up @@ -2,6 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.

#include "Common/ChunkFile.h"
#include "Common/Common.h"

#include "Core/ConfigManager.h"
Expand Down
3 changes: 1 addition & 2 deletions Source/Core/Core/HW/HW.h
Expand Up @@ -4,8 +4,7 @@

#pragma once

#include "Common/ChunkFile.h"
#include "Common/Common.h"
class PointerWrap;

namespace HW
{
Expand Down
1 change: 1 addition & 0 deletions Source/Core/Core/IPC_HLE/WII_IPC_HLE_WiiMote.cpp
Expand Up @@ -2,6 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.

#include "Common/ChunkFile.h"
#include "Common/Common.h"
#include "Common/StringUtil.h"

Expand Down
3 changes: 1 addition & 2 deletions Source/Core/Core/IPC_HLE/WII_IPC_HLE_WiiMote.h
Expand Up @@ -6,11 +6,10 @@

#include <map>
#include <string>

#include "Common/ChunkFile.h"
#include "Core/IPC_HLE/hci.h"

class CWII_IPC_HLE_Device_usb_oh1_57e_305;
class PointerWrap;

CWII_IPC_HLE_Device_usb_oh1_57e_305* GetUsbPointer();
void SetUsbPointer(CWII_IPC_HLE_Device_usb_oh1_57e_305* ptr);
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/Software/Clipper.cpp
Expand Up @@ -35,14 +35,14 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "Common/ChunkFile.h"
#include "VideoBackends/Software/BPMemLoader.h"
#include "VideoBackends/Software/Clipper.h"
#include "VideoBackends/Software/NativeVertexFormat.h"
#include "VideoBackends/Software/Rasterizer.h"
#include "VideoBackends/Software/SWStatistics.h"
#include "VideoBackends/Software/XFMemLoader.h"


namespace Clipper
{
enum { NUM_CLIPPED_VERTICES = 33, NUM_INDICES = NUM_CLIPPED_VERTICES + 3 };
Expand Down
5 changes: 2 additions & 3 deletions Source/Core/VideoBackends/Software/Clipper.h
Expand Up @@ -4,9 +4,8 @@

#pragma once

#include "Common/ChunkFile.h"
#include "Common/Common.h"
#include "VideoBackends/Software/NativeVertexFormat.h"
struct OutputVertexData;
class PointerWrap;

namespace Clipper
{
Expand Down
1 change: 1 addition & 0 deletions Source/Core/VideoBackends/Software/OpcodeDecoder.cpp
Expand Up @@ -2,6 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.

#include "Common/ChunkFile.h"
#include "Common/Common.h"
#include "Core/HW/Memmap.h"
#include "VideoBackends/Software/BPMemLoader.h"
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/VideoBackends/Software/OpcodeDecoder.h
Expand Up @@ -4,9 +4,10 @@

#pragma once

#include "Common/ChunkFile.h"
#include "Common/CommonTypes.h"

class PointerWrap;

namespace OpcodeDecoder
{

Expand Down
1 change: 1 addition & 0 deletions Source/Core/VideoBackends/Software/Rasterizer.cpp
Expand Up @@ -8,6 +8,7 @@
#include "VideoBackends/Software/BPMemLoader.h"
#include "VideoBackends/Software/EfbInterface.h"
#include "VideoBackends/Software/HwRasterizer.h"
#include "VideoBackends/Software/NativeVertexFormat.h"
#include "VideoBackends/Software/Rasterizer.h"
#include "VideoBackends/Software/SWStatistics.h"
#include "VideoBackends/Software/SWVideoConfig.h"
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/VideoBackends/Software/Rasterizer.h
Expand Up @@ -5,7 +5,8 @@
#pragma once

#include "Common/ChunkFile.h"
#include "VideoBackends/Software/NativeVertexFormat.h"

struct OutputVertexData;

namespace Rasterizer
{
Expand Down
5 changes: 3 additions & 2 deletions Source/Core/VideoBackends/Software/SWVertexLoader.cpp
Expand Up @@ -2,6 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.

#include "Common/ChunkFile.h"
#include "Common/Common.h"

#include "VideoBackends/Software/CPMemLoader.h"
Expand All @@ -22,13 +23,13 @@
SWVertexLoader::SWVertexLoader() :
m_VertexSize(0),
m_NumAttributeLoaders(0)
{
{
VertexLoader_Normal::Init();
VertexLoader_Position::Init();
VertexLoader_TextCoord::Init();

m_SetupUnit = new SetupUnit;
}
}

SWVertexLoader::~SWVertexLoader()
{
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/Software/SWVertexLoader.h
Expand Up @@ -4,12 +4,12 @@

#pragma once

#include "Common/ChunkFile.h"
#include "Common/Common.h"

#include "VideoBackends/Software/CPMemLoader.h"
#include "VideoBackends/Software/NativeVertexFormat.h"

class PointerWrap;
class SetupUnit;

class SWVertexLoader
Expand Down
1 change: 1 addition & 0 deletions Source/Core/VideoBackends/Software/SetupUnit.cpp
Expand Up @@ -2,6 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.

#include "Common/ChunkFile.h"
#include "VideoBackends/Software/Clipper.h"
#include "VideoBackends/Software/CPMemLoader.h"
#include "VideoBackends/Software/OpcodeDecoder.h"
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/VideoBackends/Software/SetupUnit.h
Expand Up @@ -4,10 +4,11 @@

#pragma once

#include "Common/ChunkFile.h"
#include "Common/Common.h"
#include "VideoBackends/Software/NativeVertexFormat.h"

class PointerWrap;

class SetupUnit
{
u8 m_PrimType;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/Software/Tev.cpp
Expand Up @@ -4,8 +4,8 @@

#include <cmath>

#include "Common/ChunkFile.h"
#include "Common/Common.h"

#include "VideoBackends/Software/DebugUtil.h"
#include "VideoBackends/Software/EfbInterface.h"
#include "VideoBackends/Software/SWStatistics.h"
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/VideoBackends/Software/Tev.h
Expand Up @@ -4,9 +4,10 @@

#pragma once

#include "Common/ChunkFile.h"
#include "VideoBackends/Software/BPMemLoader.h"

class PointerWrap;

class Tev
{
struct InputRegType
Expand Down
1 change: 1 addition & 0 deletions Source/Core/VideoCommon/VideoState.cpp
Expand Up @@ -2,6 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.

#include "Common/ChunkFile.h"
#include "VideoCommon/BPMemory.h"
#include "VideoCommon/CommandProcessor.h"
#include "VideoCommon/CPMemory.h"
Expand Down
3 changes: 1 addition & 2 deletions Source/Core/VideoCommon/VideoState.h
Expand Up @@ -4,8 +4,7 @@

#pragma once

#include "Common/ChunkFile.h"
#include "Common/Common.h"
class PointerWrap;

void VideoCommon_DoState(PointerWrap &p);
void VideoCommon_RunLoop(bool enable);
Expand Down

0 comments on commit a3ca3b0

Please sign in to comment.