mirror of https://github.com/PCSX2/pcsx2.git
Core: Replace old include guard with pragma once
This commit is contained in:
parent
efc09a7b47
commit
15d8b891d6
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CDVD_INTERNAL_H__
|
#pragma once
|
||||||
#define __CDVD_INTERNAL_H__
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Interrupts - values are flag bits.
|
Interrupts - values are flag bits.
|
||||||
|
@ -289,5 +288,3 @@ static u8 biosLangDefaults[8][16] =
|
||||||
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // Free (Japanese, no examples to use)
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // Free (Japanese, no examples to use)
|
||||||
{0x30, 0x2B, 0x80, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4B}, // China (Simplified Chinese)
|
{0x30, 0x2B, 0x80, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4B}, // China (Simplified Chinese)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -13,9 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CDVD_DISC_READER_H__
|
#pragma once
|
||||||
#define __CDVD_DISC_READER_H__
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
|
@ -101,4 +99,3 @@ s32 cdvdDirectReadSector(u32 sector, s32 mode, u8* buffer);
|
||||||
s32 cdvdGetMediaType();
|
s32 cdvdGetMediaType();
|
||||||
s32 cdvdRefreshData();
|
s32 cdvdRefreshData();
|
||||||
void cdvdParseTOC();
|
void cdvdParseTOC();
|
||||||
#endif /* __CDVD_DISC_READER_H__ */
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CDROM_H__
|
#pragma once
|
||||||
#define __CDROM_H__
|
|
||||||
|
|
||||||
#include "CDVDaccess.h"
|
#include "CDVDaccess.h"
|
||||||
|
|
||||||
|
@ -99,5 +98,3 @@ void cdrWrite0(u8 rt);
|
||||||
void cdrWrite1(u8 rt);
|
void cdrWrite1(u8 rt);
|
||||||
void cdrWrite2(u8 rt);
|
void cdrWrite2(u8 rt);
|
||||||
void cdrWrite3(u8 rt);
|
void cdrWrite3(u8 rt);
|
||||||
|
|
||||||
#endif /* __CDROM_H__ */
|
|
||||||
|
|
|
@ -95,8 +95,7 @@ Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
|
||||||
index in a file.
|
index in a file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __ZLIB_INDEXED_H__
|
#pragma once
|
||||||
#define __ZLIB_INDEXED_H__
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -504,5 +503,3 @@ extract_ret:
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __ZLIB_INDEXED_H__ */
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __COP0_H__
|
#pragma once
|
||||||
#define __COP0_H__
|
|
||||||
|
|
||||||
extern void WriteCP0Status(u32 value);
|
extern void WriteCP0Status(u32 value);
|
||||||
extern void WriteCP0Config(u32 value);
|
extern void WriteCP0Config(u32 value);
|
||||||
|
@ -25,6 +24,3 @@ extern void MapTLB(int i);
|
||||||
|
|
||||||
extern void COP0_UpdatePCCR();
|
extern void COP0_UpdatePCCR();
|
||||||
extern void COP0_DiagnosticPCCR();
|
extern void COP0_DiagnosticPCCR();
|
||||||
|
|
||||||
|
|
||||||
#endif /* __COP0_H__ */
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CACHE_H__
|
#pragma once
|
||||||
#define __CACHE_H__
|
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "SingleRegisterTypes.h"
|
#include "SingleRegisterTypes.h"
|
||||||
|
@ -30,5 +29,3 @@ u16 readCache16(u32 mem);
|
||||||
u32 readCache32(u32 mem);
|
u32 readCache32(u32 mem);
|
||||||
RETURNS_R64 readCache64(u32 mem);
|
RETURNS_R64 readCache64(u32 mem);
|
||||||
RETURNS_R128 readCache128(u32 mem);
|
RETURNS_R128 readCache128(u32 mem);
|
||||||
|
|
||||||
#endif /* __CACHE_H__ */
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DEV9_H__
|
#pragma once
|
||||||
#define __DEV9_H__
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@ -722,4 +721,3 @@ void DEV9CheckChanges(const Pcsx2Config& old_config);
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#pragma warning(error : 4013)
|
#pragma warning(error : 4013)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __ELF_H__
|
#pragma once
|
||||||
#define __ELF_H__
|
|
||||||
|
|
||||||
#include "common/SafeArray.h"
|
#include "common/SafeArray.h"
|
||||||
#include "common/SafeArray.inl"
|
#include "common/SafeArray.inl"
|
||||||
|
@ -164,5 +163,3 @@ extern u32 ElfEntry;
|
||||||
extern std::pair<u32,u32> ElfTextRange;
|
extern std::pair<u32,u32> ElfTextRange;
|
||||||
extern std::string LastELF;
|
extern std::string LastELF;
|
||||||
extern bool isPSXElf;
|
extern bool isPSXElf;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -27,8 +27,7 @@
|
||||||
// just result in the linker having to remove a whole lot of redundant/unused decoder
|
// just result in the linker having to remove a whole lot of redundant/unused decoder
|
||||||
// tables and static functions. -- air
|
// tables and static functions. -- air
|
||||||
|
|
||||||
#ifndef __VLC_H__
|
#pragma once
|
||||||
#define __VLC_H__
|
|
||||||
|
|
||||||
static __fi int GETWORD()
|
static __fi int GETWORD()
|
||||||
{
|
{
|
||||||
|
@ -662,5 +661,3 @@ alignas(16) static const DCTtabSet DCT =
|
||||||
{30,1,16}, {29,1,16}, {28,1,16}, {27,1,16} }
|
{30,1,16}, {29,1,16}, {28,1,16}, {27,1,16} }
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif//__VLC_H__
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PSXBIOS_H__
|
#pragma once
|
||||||
#define __PSXBIOS_H__
|
|
||||||
|
|
||||||
#define IOP_ENOENT 2
|
#define IOP_ENOENT 2
|
||||||
#define IOP_EIO 5
|
#define IOP_EIO 5
|
||||||
|
@ -87,5 +86,3 @@ namespace R3000A
|
||||||
} // namespace R3000A
|
} // namespace R3000A
|
||||||
|
|
||||||
extern void Hle_SetElfPath(const char* elfFileName);
|
extern void Hle_SetElfPath(const char* elfFileName);
|
||||||
|
|
||||||
#endif /* __PSXBIOS_H__ */
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PSXCOUNTERS_H__
|
#pragma once
|
||||||
#define __PSXCOUNTERS_H__
|
|
||||||
|
|
||||||
struct psxCounter {
|
struct psxCounter {
|
||||||
u64 count, target;
|
u64 count, target;
|
||||||
|
@ -44,5 +43,3 @@ extern void psxVBlankStart();
|
||||||
extern void psxVBlankEnd();
|
extern void psxVBlankEnd();
|
||||||
extern void psxCheckStartGate16(int i);
|
extern void psxCheckStartGate16(int i);
|
||||||
extern void psxCheckEndGate16(int i);
|
extern void psxCheckEndGate16(int i);
|
||||||
|
|
||||||
#endif /* __PSXCOUNTERS_H__ */
|
|
||||||
|
|
|
@ -14,8 +14,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __GTE_H__
|
#pragma once
|
||||||
#define __GTE_H__
|
|
||||||
|
|
||||||
void gteMFC2();
|
void gteMFC2();
|
||||||
void gteCFC2();
|
void gteCFC2();
|
||||||
|
@ -46,5 +45,3 @@ void gteRTPT();
|
||||||
void gteGPF();
|
void gteGPF();
|
||||||
void gteGPL();
|
void gteGPL();
|
||||||
void gteNCCT();
|
void gteNCCT();
|
||||||
|
|
||||||
#endif /* __GTE_H__ */
|
|
|
@ -13,9 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PSXSIO2_H__
|
#pragma once
|
||||||
#define __PSXSIO2_H__
|
|
||||||
|
|
||||||
|
|
||||||
#define BUFSIZE 8448
|
#define BUFSIZE 8448
|
||||||
|
|
||||||
|
@ -91,6 +89,3 @@ void psxDma12(u32 madr, u32 bcr, u32 chcr);
|
||||||
|
|
||||||
void psxDMA11Interrupt();
|
void psxDMA11Interrupt();
|
||||||
void psxDMA12Interrupt();
|
void psxDMA12Interrupt();
|
||||||
|
|
||||||
#endif /* __PSXSIO2_H__ */
|
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,7 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __MDEC_H__
|
#pragma once
|
||||||
#define __MDEC_H__
|
|
||||||
|
|
||||||
|
|
||||||
// mdec status:
|
// mdec status:
|
||||||
#define MDEC_BUSY 0x20000000
|
#define MDEC_BUSY 0x20000000
|
||||||
|
@ -100,5 +98,3 @@ void iqtab_init(int *iqtab,unsigned char *iq_y);
|
||||||
void round_init(void);
|
void round_init(void);
|
||||||
void yuv2rgb24(int *blk,unsigned char *image);
|
void yuv2rgb24(int *blk,unsigned char *image);
|
||||||
void yuv2rgb15(int *blk,u16 *image);
|
void yuv2rgb15(int *blk,u16 *image);
|
||||||
|
|
||||||
#endif /* __MDEC_H__ */
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __R3000A_H__
|
#pragma once
|
||||||
#define __R3000A_H__
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -215,5 +214,3 @@ extern void (*psxCP2BSC[32])();
|
||||||
|
|
||||||
extern void psxBiosReset();
|
extern void psxBiosReset();
|
||||||
extern bool psxBiosCall();
|
extern bool psxBiosCall();
|
||||||
|
|
||||||
#endif /* __R3000A_H__ */
|
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
* You should have received a copy of the GNU General Public License along with PCSX2.
|
* You should have received a copy of the GNU General Public License along with PCSX2.
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#ifndef _R5900_OPCODETABLES_H
|
#pragma once
|
||||||
#define _R5900_OPCODETABLES_H
|
|
||||||
|
|
||||||
#include "common/Pcsx2Defs.h"
|
#include "common/Pcsx2Defs.h"
|
||||||
|
|
||||||
|
@ -931,5 +930,3 @@ void VRGET();
|
||||||
void VRINIT();
|
void VRINIT();
|
||||||
void VRXOR();
|
void VRXOR();
|
||||||
//*******************END OF SPECIAL2 *********************
|
//*******************END OF SPECIAL2 *********************
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DECI2_H__
|
#pragma once
|
||||||
#define __DECI2_H__
|
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "deci2_dcmp.h"
|
#include "deci2_dcmp.h"
|
||||||
|
@ -61,5 +60,3 @@ extern s32 connected;
|
||||||
|
|
||||||
int writeData(const u8 *result);
|
int writeData(const u8 *result);
|
||||||
void exchangeSD(DECI2_HEADER *h);
|
void exchangeSD(DECI2_HEADER *h);
|
||||||
|
|
||||||
#endif//__DECI2_H__
|
|
||||||
|
|
|
@ -13,13 +13,10 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DECI2DBGP_H__
|
#pragma once
|
||||||
#define __DECI2DBGP_H__
|
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "deci2.h"
|
#include "deci2.h"
|
||||||
|
|
||||||
void D2_DBGP(const u8 *inbuffer, u8 *outbuffer, char *message, char *eepc, char *ioppc, char *eecy, char *iopcy);
|
void D2_DBGP(const u8 *inbuffer, u8 *outbuffer, char *message, char *eepc, char *ioppc, char *eecy, char *iopcy);
|
||||||
void sendBREAK(u8 source, u16 id, u8 code, u8 result, u8 count);
|
void sendBREAK(u8 source, u16 id, u8 code, u8 result, u8 count);
|
||||||
|
|
||||||
#endif//__DECI2DBGP_H__
|
|
||||||
|
|
|
@ -13,13 +13,10 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DECI2DCMP_H__
|
#pragma once
|
||||||
#define __DECI2DCMP_H__
|
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "deci2.h"
|
#include "deci2.h"
|
||||||
|
|
||||||
void D2_DCMP(const u8 *inbuffer, u8 *outbuffer, char *message);
|
void D2_DCMP(const u8 *inbuffer, u8 *outbuffer, char *message);
|
||||||
void sendDCMP(u16 protocol, u8 source, u8 destination, u8 type, u8 code, char *data, int size);
|
void sendDCMP(u16 protocol, u8 source, u8 destination, u8 type, u8 code, char *data, int size);
|
||||||
|
|
||||||
#endif//__DECI2DCMP_H__
|
|
||||||
|
|
|
@ -13,12 +13,9 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DECI2DRFP_H__
|
#pragma once
|
||||||
#define __DECI2DRFP_H__
|
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "deci2.h"
|
#include "deci2.h"
|
||||||
|
|
||||||
void D2_(char *inbuffer, char *outbuffer, char *message);
|
void D2_(char *inbuffer, char *outbuffer, char *message);
|
||||||
|
|
||||||
#endif//__DECI2DRFP_H__
|
|
||||||
|
|
|
@ -13,12 +13,9 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DECI2ILOADP_H__
|
#pragma once
|
||||||
#define __DECI2ILOADP_H__
|
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "deci2.h"
|
#include "deci2.h"
|
||||||
|
|
||||||
void D2_ILOADP(const u8 *inbuffer, u8 *outbuffer, char *message);
|
void D2_ILOADP(const u8 *inbuffer, u8 *outbuffer, char *message);
|
||||||
|
|
||||||
#endif//__DECI2ILOADP_H__
|
|
||||||
|
|
|
@ -13,12 +13,9 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DECI2NETMP_H__
|
#pragma once
|
||||||
#define __DECI2NETMP_H__
|
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "deci2.h"
|
#include "deci2.h"
|
||||||
|
|
||||||
void D2_NETMP(const u8 *inbuffer, u8 *outbuffer, char *message);
|
void D2_NETMP(const u8 *inbuffer, u8 *outbuffer, char *message);
|
||||||
|
|
||||||
#endif//__DECI2NETMP_H__
|
|
||||||
|
|
|
@ -13,13 +13,10 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DECI2TTYP_H__
|
#pragma once
|
||||||
#define __DECI2TTYP_H__
|
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "deci2.h"
|
#include "deci2.h"
|
||||||
|
|
||||||
//void D2_(char *inbuffer, char *outbuffer, char *message);
|
//void D2_(char *inbuffer, char *outbuffer, char *message);
|
||||||
void sendTTYP(u16 protocol, u8 source, char *data);
|
void sendTTYP(u16 protocol, u8 source, char *data);
|
||||||
|
|
||||||
#endif//__DECI2TTYP_H__
|
|
||||||
|
|
|
@ -13,12 +13,9 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
#ifndef __SPR_H__
|
|
||||||
#define __SPR_H__
|
|
||||||
|
|
||||||
extern void dmaSPR0();
|
extern void dmaSPR0();
|
||||||
extern void dmaSPR1();
|
extern void dmaSPR1();
|
||||||
extern void SPRFROMinterrupt();
|
extern void SPRFROMinterrupt();
|
||||||
extern void SPRTOinterrupt();
|
extern void SPRTOinterrupt();
|
||||||
#endif /* __SPR_H__ */
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONFIG_H_INCLUDED
|
#pragma once
|
||||||
#define CONFIG_H_INCLUDED
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -101,5 +100,3 @@ namespace SoundtouchCfg
|
||||||
}; // namespace SoundtouchCfg
|
}; // namespace SoundtouchCfg
|
||||||
|
|
||||||
void ReadSettings();
|
void ReadSettings();
|
||||||
|
|
||||||
#endif // CONFIG_H_INCLUDED
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DIALOG_H_INCLUDED
|
#pragma once
|
||||||
#define DIALOG_H_INCLUDED
|
|
||||||
|
|
||||||
#include "SPU2/Global.h"
|
#include "SPU2/Global.h"
|
||||||
#include "SPU2/Config.h"
|
#include "SPU2/Config.h"
|
||||||
|
@ -26,5 +25,3 @@ namespace DebugConfig
|
||||||
|
|
||||||
extern void CfgSetSettingsDir(const char* dir);
|
extern void CfgSetSettingsDir(const char* dir);
|
||||||
extern void CfgSetLogDir(const char* dir);
|
extern void CfgSetLogDir(const char* dir);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,5 +1,19 @@
|
||||||
#ifndef __INTERPOLATE_TABLE_H_
|
/* PCSX2 - PS2 Emulator for PCs
|
||||||
#define __INTERPOLATE_TABLE_H_
|
* Copyright (C) 2002-2022 PCSX2 Dev Team
|
||||||
|
*
|
||||||
|
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
|
||||||
|
* of the GNU Lesser General Public License as published by the Free Software Found-
|
||||||
|
* ation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* PCSX2 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 for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with PCSX2.
|
||||||
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
static const s16 interpTable[0x200] = {
|
static const s16 interpTable[0x200] = {
|
||||||
-0x001, -0x001, -0x001, -0x001, -0x001, -0x001, -0x001, -0x001, //
|
-0x001, -0x001, -0x001, -0x001, -0x001, -0x001, -0x001, -0x001, //
|
||||||
|
@ -67,8 +81,3 @@ static const s16 interpTable[0x200] = {
|
||||||
0x593A, 0x5949, 0x5958, 0x5965, 0x5971, 0x597C, 0x5986, 0x598F, //
|
0x593A, 0x5949, 0x5958, 0x5965, 0x5971, 0x597C, 0x5986, 0x598F, //
|
||||||
0x5997, 0x599E, 0x59A4, 0x59A9, 0x59AD, 0x59B0, 0x59B2, 0x59B3 //
|
0x5997, 0x599E, 0x59A4, 0x59A9, 0x59AD, 0x59B0, 0x59B2, 0x59B3 //
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // __INTERPOLATE_TABLE_H_
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __SIF_H__
|
#pragma once
|
||||||
#define __SIF_H__
|
|
||||||
|
|
||||||
static const int FIFO_SIF_W = 128;
|
static const int FIFO_SIF_W = 128;
|
||||||
|
|
||||||
|
@ -182,5 +181,3 @@ extern bool WriteFifoSingleWord();
|
||||||
#define sif0tag DMA_TAG(sif0data)
|
#define sif0tag DMA_TAG(sif0data)
|
||||||
#define sif1tag DMA_TAG(sif1data)
|
#define sif1tag DMA_TAG(sif1data)
|
||||||
#define sif2tag DMA_TAG(sif2data)
|
#define sif2tag DMA_TAG(sif2data)
|
||||||
|
|
||||||
#endif /* __SIF_H__ */
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __SIFCMD_H__
|
#pragma once
|
||||||
#define __SIFCMD_H__
|
|
||||||
|
|
||||||
struct t_sif_dma_transfer
|
struct t_sif_dma_transfer
|
||||||
{
|
{
|
||||||
|
@ -23,5 +22,3 @@ struct t_sif_dma_transfer
|
||||||
s32 size;
|
s32 size;
|
||||||
s32 attr;
|
s32 attr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif//__SIFCMD_H__
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __iCOP0_H__
|
#pragma once
|
||||||
#define __iCOP0_H__
|
|
||||||
|
|
||||||
#include "COP0.h"
|
#include "COP0.h"
|
||||||
|
|
||||||
|
@ -46,4 +45,3 @@ namespace COP0 {
|
||||||
} // namespace OpcodeImpl
|
} // namespace OpcodeImpl
|
||||||
} // namespace Dynarec
|
} // namespace Dynarec
|
||||||
} // namespace R5900
|
} // namespace R5900
|
||||||
#endif
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __IFPU_H__
|
#pragma once
|
||||||
#define __IFPU_H__
|
|
||||||
|
|
||||||
alignas(16) extern const u32 g_minvals[4];
|
alignas(16) extern const u32 g_minvals[4];
|
||||||
alignas(16) extern const u32 g_maxvals[4];
|
alignas(16) extern const u32 g_maxvals[4];
|
||||||
|
@ -64,5 +63,3 @@ namespace COP1 {
|
||||||
} // namespace OpcodeImpl
|
} // namespace OpcodeImpl
|
||||||
} // namespace Dynarec
|
} // namespace Dynarec
|
||||||
} // namespace R5900
|
} // namespace R5900
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
* MMI opcodes *
|
* MMI opcodes *
|
||||||
* *
|
* *
|
||||||
*********************************************************/
|
*********************************************************/
|
||||||
#ifndef __IMMI_H__
|
#pragma once
|
||||||
#define __IMMI_H__
|
|
||||||
|
|
||||||
namespace R5900 {
|
namespace R5900 {
|
||||||
namespace Dynarec {
|
namespace Dynarec {
|
||||||
|
@ -142,5 +141,3 @@ namespace MMI {
|
||||||
} // namespace OpcodeImpl
|
} // namespace OpcodeImpl
|
||||||
} // namespace Dynarec
|
} // namespace Dynarec
|
||||||
} // namespace R5900
|
} // namespace R5900
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __IR5900_H__
|
#pragma once
|
||||||
#define __IR5900_H__
|
|
||||||
|
|
||||||
#include "common/emitter/x86emitter.h"
|
#include "common/emitter/x86emitter.h"
|
||||||
#include "R5900.h"
|
#include "R5900.h"
|
||||||
|
@ -229,5 +228,3 @@ void eeRecompileCodeConstSPECIAL(R5900FNPTR constcode, R5900FNPTR_INFO multicode
|
||||||
// rd = rs op rt (all regs need to be in xmm)
|
// rd = rs op rt (all regs need to be in xmm)
|
||||||
int eeRecompileCodeXMM(int xmminfo);
|
int eeRecompileCodeXMM(int xmminfo);
|
||||||
void eeFPURecompileCode(R5900FNPTR_INFO xmmcode, R5900FNPTR fpucode, int xmminfo);
|
void eeFPURecompileCode(R5900FNPTR_INFO xmmcode, R5900FNPTR fpucode, int xmminfo);
|
||||||
|
|
||||||
#endif // __IR5900_H__
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __IR5900ARIT_H__
|
#pragma once
|
||||||
#define __IR5900ARIT_H__
|
|
||||||
|
|
||||||
/*********************************************************
|
/*********************************************************
|
||||||
* Register arithmetic *
|
* Register arithmetic *
|
||||||
|
@ -43,4 +42,3 @@ namespace OpcodeImpl {
|
||||||
} // namespace OpcodeImpl
|
} // namespace OpcodeImpl
|
||||||
} // namespace Dynarec
|
} // namespace Dynarec
|
||||||
} // namespace R5900
|
} // namespace R5900
|
||||||
#endif
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __IR5900ARITIMM_H__
|
#pragma once
|
||||||
#define __IR5900ARITIMM_H__
|
|
||||||
|
|
||||||
/*********************************************************
|
/*********************************************************
|
||||||
* Arithmetic with immediate operand *
|
* Arithmetic with immediate operand *
|
||||||
|
@ -38,5 +37,3 @@ namespace OpcodeImpl {
|
||||||
} // namespace OpcodeImpl
|
} // namespace OpcodeImpl
|
||||||
} // namespace Dynarec
|
} // namespace Dynarec
|
||||||
} // namespace R5900
|
} // namespace R5900
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __IR5900BRANCH_H__
|
#pragma once
|
||||||
#define __IR5900BRANCH_H__
|
|
||||||
|
|
||||||
/*********************************************************
|
/*********************************************************
|
||||||
* Shift arithmetic with constant shift *
|
* Shift arithmetic with constant shift *
|
||||||
|
@ -45,5 +44,3 @@ namespace OpcodeImpl {
|
||||||
} // namespace OpcodeImpl
|
} // namespace OpcodeImpl
|
||||||
} // namespace Dynarec
|
} // namespace Dynarec
|
||||||
} // namespace R5900
|
} // namespace R5900
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __IR5900JUMP_H__
|
#pragma once
|
||||||
#define __IR5900JUMP_H__
|
|
||||||
|
|
||||||
/*********************************************************
|
/*********************************************************
|
||||||
* Jump to target *
|
* Jump to target *
|
||||||
|
@ -33,5 +32,3 @@ namespace OpcodeImpl {
|
||||||
} // namespace OpcodeImpl
|
} // namespace OpcodeImpl
|
||||||
} // namespace Dynarec
|
} // namespace Dynarec
|
||||||
} // namespace R5900
|
} // namespace R5900
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __IR5900LOADSTORE_H__
|
#pragma once
|
||||||
#define __IR5900LOADSTORE_H__
|
|
||||||
/*********************************************************
|
/*********************************************************
|
||||||
* Load and store for GPR *
|
* Load and store for GPR *
|
||||||
* Format: OP rt, offset(base) *
|
* Format: OP rt, offset(base) *
|
||||||
|
@ -53,5 +53,3 @@ namespace OpcodeImpl {
|
||||||
} // namespace OpcodeImpl
|
} // namespace OpcodeImpl
|
||||||
} // namespace Dynarec
|
} // namespace Dynarec
|
||||||
} // namespace R5900
|
} // namespace R5900
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __IR5900MOVE_H__
|
#pragma once
|
||||||
#define __IR5900MOVE_H__
|
|
||||||
|
|
||||||
namespace R5900 {
|
namespace R5900 {
|
||||||
namespace Dynarec {
|
namespace Dynarec {
|
||||||
|
@ -31,5 +30,3 @@ namespace OpcodeImpl {
|
||||||
} // namespace OpcodeImpl
|
} // namespace OpcodeImpl
|
||||||
} // namespace Dynarec
|
} // namespace Dynarec
|
||||||
} // namespace R5900
|
} // namespace R5900
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __IR5900MULTDIV_H__
|
#pragma once
|
||||||
#define __IR5900MULTDIV_H__
|
|
||||||
|
|
||||||
/*********************************************************
|
/*********************************************************
|
||||||
* Register mult/div & Register trap logic *
|
* Register mult/div & Register trap logic *
|
||||||
|
@ -33,5 +32,3 @@ namespace OpcodeImpl {
|
||||||
} // namespace OpcodeImpl
|
} // namespace OpcodeImpl
|
||||||
} // namespace Dynarec
|
} // namespace Dynarec
|
||||||
} // namespace R5900
|
} // namespace R5900
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __IR5900SHIFT_H__
|
#pragma once
|
||||||
#define __IR5900SHIFT_H__
|
|
||||||
|
|
||||||
/*********************************************************
|
/*********************************************************
|
||||||
* Shift arithmetic with constant shift *
|
* Shift arithmetic with constant shift *
|
||||||
|
@ -45,5 +44,3 @@ namespace OpcodeImpl {
|
||||||
} // namespace OpcodeImpl
|
} // namespace OpcodeImpl
|
||||||
} // namespace Dynarec
|
} // namespace Dynarec
|
||||||
} // namespace R5900
|
} // namespace R5900
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue