mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Replace all include guard ifdefs with "#pragma once"
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _AVIDUMP_H
|
||||
#define _AVIDUMP_H
|
||||
#pragma once
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
@@ -32,5 +31,3 @@ class AVIDump
|
||||
|
||||
static void Stop();
|
||||
};
|
||||
|
||||
#endif // _AVIDUMP_H
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
// Video backend must define these functions
|
||||
// ------------------------------------------
|
||||
|
||||
#ifndef _BPFUNCTIONS_H
|
||||
#define _BPFUNCTIONS_H
|
||||
#pragma once
|
||||
|
||||
#include "BPMemory.h"
|
||||
#include "VideoCommon.h"
|
||||
@@ -41,5 +40,3 @@ bool GetConfig(const int &type);
|
||||
void SetTextureMode(const BPCmd &bp);
|
||||
void SetInterlacingMode(const BPCmd &bp);
|
||||
};
|
||||
|
||||
#endif // _BPFUNCTIONS_H
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _BPMEMORY_H
|
||||
#define _BPMEMORY_H
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
@@ -1051,5 +1050,3 @@ extern BPMemory bpmem;
|
||||
void LoadBPReg(u32 value0);
|
||||
|
||||
void GetBPRegInfo(const u8* data, char* name, size_t name_size, char* desc, size_t desc_size);
|
||||
|
||||
#endif // _BPMEMORY_H
|
||||
|
||||
@@ -2,13 +2,10 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _BPSTRUCTS_H_
|
||||
#define _BPSTRUCTS_H_
|
||||
#pragma once
|
||||
|
||||
#include "BPMemory.h"
|
||||
|
||||
void BPInit();
|
||||
void LoadBPReg(u32 value0);
|
||||
void BPReload();
|
||||
|
||||
#endif // _BPSTRUCTS_H_
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _CPMEMORY_H
|
||||
#define _CPMEMORY_H
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
@@ -253,5 +252,3 @@ void LoadCPReg(u32 SubCmd, u32 Value);
|
||||
|
||||
// Fills memory with data from CP regs
|
||||
void FillCPMemoryArray(u32 *memory);
|
||||
|
||||
#endif // _CPMEMORY_H
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _COMMANDPROCESSOR_H
|
||||
#define _COMMANDPROCESSOR_H
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "VideoBackendBase.h"
|
||||
@@ -160,7 +159,3 @@ void Update();
|
||||
extern volatile u32 VITicks;
|
||||
|
||||
} // namespace CommandProcessor
|
||||
|
||||
#endif // _COMMANDPROCESSOR_H
|
||||
|
||||
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _CONSTANTMANAGER_H
|
||||
#define _CONSTANTMANAGER_H
|
||||
#pragma once
|
||||
|
||||
// all constant buffer attributes must be 16 bytes aligned, so this are the only allowed components:
|
||||
typedef float float4[4];
|
||||
@@ -38,5 +37,3 @@ struct VertexShaderConstants
|
||||
float4 posttransformmatrices[64];
|
||||
float4 depthparams;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _DATAREADER_H
|
||||
#define _DATAREADER_H
|
||||
#pragma once
|
||||
|
||||
#include "VertexManagerBase.h"
|
||||
|
||||
@@ -169,5 +168,3 @@ private:
|
||||
u8 *buffer;
|
||||
int offset;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _GFX_DEBUGGER_H_
|
||||
#define _GFX_DEBUGGER_H_
|
||||
#pragma once
|
||||
|
||||
class GFXDebuggerBase
|
||||
{
|
||||
@@ -62,6 +61,3 @@ void GFXDebuggerUpdateScreen();
|
||||
#define GFX_DEBUGGER_PAUSE_AT(event,update) {if (((GFXDebuggerToPauseAtNext & event) && --GFXDebuggerEventToPauseCount<=0) || GFXDebuggerPauseFlag) GFXDebuggerToPause(update);}
|
||||
#define GFX_DEBUGGER_PAUSE_LOG_AT(event,update,dumpfunc) {if (((GFXDebuggerToPauseAtNext & event) && --GFXDebuggerEventToPauseCount<=0) || GFXDebuggerPauseFlag) {{dumpfunc};GFXDebuggerToPause(update);}}
|
||||
#define GFX_DEBUGGER_LOG_AT(event,dumpfunc) {if (( GFXDebuggerToPauseAtNext & event ) ) {{dumpfunc};}}
|
||||
|
||||
|
||||
#endif // _GFX_DEBUGGER_H_
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef _EMUWINDOW_H
|
||||
#define _EMUWINDOW_H
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
@@ -17,5 +16,3 @@ void OSDMenu(WPARAM wParam);
|
||||
void SetWindowText(const TCHAR* text);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _FPS_COUNTER_H_
|
||||
#define _FPS_COUNTER_H_
|
||||
#pragma once
|
||||
|
||||
// Initializes the FPS counter.
|
||||
void InitFPSCounter();
|
||||
@@ -11,5 +10,3 @@ void InitFPSCounter();
|
||||
// Called when a frame is rendered. Returns the value to be displayed on
|
||||
// screen as the FPS counter (updated every second).
|
||||
int UpdateFPSCounter();
|
||||
|
||||
#endif // _FPS_COUNTER_H_
|
||||
@@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _FIFO_H
|
||||
#define _FIFO_H
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "VideoBackendBase.h"
|
||||
@@ -34,5 +33,3 @@ void Fifo_SetRendering(bool bEnabled);
|
||||
|
||||
// Implemented by the Video Backend
|
||||
void VideoFifo_CheckAsyncRequest();
|
||||
|
||||
#endif // _FIFO_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
|
||||
#ifndef _FRAMEBUFFERMANAGERBASE_H
|
||||
#define _FRAMEBUFFERMANAGERBASE_H
|
||||
#pragma once
|
||||
|
||||
#include <list>
|
||||
|
||||
@@ -98,5 +96,3 @@ private:
|
||||
};
|
||||
|
||||
extern FramebufferManagerBase *g_framebuffer_manager;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _HIRESTEXTURES_H
|
||||
#define _HIRESTEXTURES_H
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include "VideoCommon.h"
|
||||
@@ -16,5 +15,3 @@ bool HiresTexExists(const char *filename);
|
||||
PC_TexFormat GetHiresTex(const char *fileName, unsigned int *pWidth, unsigned int *pHeight, unsigned int *required_size, int texformat, unsigned int data_size, u8 *data);
|
||||
|
||||
};
|
||||
|
||||
#endif // _HIRESTEXTURES_H
|
||||
|
||||
@@ -2,13 +2,9 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _IMAGEWRITE_H
|
||||
#define _IMAGEWRITE_H
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
bool SaveData(const char* filename, const char* pdata);
|
||||
bool TextureToPng(u8* data, int row_stride, const std::string filename, int width, int height, bool saveAlpha = true);
|
||||
|
||||
#endif // _IMAGEWRITE_H
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// This is currently only used by the DX backend, but it may make sense to
|
||||
// use it in the GL backend or a future DX10 backend too.
|
||||
|
||||
#ifndef _INDEXGENERATOR_H
|
||||
#define _INDEXGENERATOR_H
|
||||
#pragma once
|
||||
|
||||
#include "CommonTypes.h"
|
||||
|
||||
class IndexGenerator
|
||||
@@ -45,5 +45,3 @@ private:
|
||||
static u16 *BASEIptr;
|
||||
static u32 base_index;
|
||||
};
|
||||
|
||||
#endif // _INDEXGENERATOR_H
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _LIGHTINGSHADERGEN_H_
|
||||
#define _LIGHTINGSHADERGEN_H_
|
||||
#pragma once
|
||||
|
||||
#include "ShaderGenCommon.h"
|
||||
#include "NativeVertexFormat.h"
|
||||
@@ -260,5 +259,3 @@ static void GenerateLightingShader(T& object, LightingUidData& uid_data, int com
|
||||
object.Write("}\n");
|
||||
}
|
||||
}
|
||||
|
||||
#endif // _LIGHTINGSHADERGEN_H_
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _LOOKUPTABLES_H
|
||||
#define _LOOKUPTABLES_H
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
@@ -30,5 +29,3 @@ inline u8 Convert6To8(u8 v)
|
||||
// Swizzle bits: 00123456 -> 12345612
|
||||
return (v << 2) | (v >> 4);
|
||||
}
|
||||
|
||||
#endif // _LOOKUPTABLES_H
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
|
||||
#ifndef _VIDEOCOMMON_MAINBASE_H_
|
||||
#define _VIDEOCOMMON_MAINBASE_H_
|
||||
#pragma once
|
||||
|
||||
#include "CommonTypes.h"
|
||||
|
||||
@@ -11,5 +9,3 @@ extern volatile u32 s_swapRequested;
|
||||
|
||||
void VideoFifo_CheckEFBAccess();
|
||||
void VideoFifo_CheckSwapRequestAt(u32 xfbAddr, u32 fbWidth, u32 fbHeight);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,22 +1,8 @@
|
||||
// Copyright (C) 2003 Dolphin Project.
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, version 2.0.
|
||||
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License 2.0 for more details.
|
||||
|
||||
// A copy of the GPL 2.0 should have been included with the program.
|
||||
// If not, see http://www.gnu.org/licenses/
|
||||
|
||||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#ifndef _NATIVEVERTEXFORMAT_H
|
||||
#define _NATIVEVERTEXFORMAT_H
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
@@ -116,5 +102,3 @@ protected:
|
||||
|
||||
u32 vertex_stride;
|
||||
};
|
||||
|
||||
#endif // _NATIVEVERTEXFORMAT_H
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user