Remove "sh4_if.h" and "stdclass.h" from "types.h"
This commit is contained in:
parent
9a420b0093
commit
c1b37b56bc
|
@ -5,9 +5,12 @@
|
|||
*/
|
||||
|
||||
#define _CRT_SECURE_NO_DEPRECATE (1)
|
||||
#include <cerrno>
|
||||
|
||||
#include "cfg.h"
|
||||
#include "ini.h"
|
||||
#include "stdclass.h"
|
||||
|
||||
#include <cerrno>
|
||||
|
||||
static string cfgPath;
|
||||
static bool save_config = true;
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <netdb.h>
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <windows.h>
|
||||
#pragma comment (lib, "wsock32.lib")
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
#include "types.h"
|
||||
#include "stdclass.h"
|
||||
|
||||
extern u32 VREG;
|
||||
extern VArray2 aica_ram;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "hw/naomi/naomi_cart.h"
|
||||
#include "hw/pvr/spg.h"
|
||||
#include "input/gamepad_device.h"
|
||||
#include "stdclass.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdlib>
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
#if !defined(_MSC_VER) && !defined(TARGET_NO_THREADS)
|
||||
|
||||
#include "stdclass.h"
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#define _POSIX_SOURCE
|
||||
#endif
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
*/
|
||||
|
||||
#include "gdcartridge.h"
|
||||
#include "stdclass.h"
|
||||
|
||||
/*
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include <memory>
|
||||
#include "naomi_cart.h"
|
||||
#include "naomi_regs.h"
|
||||
#include "cfg/cfg.h"
|
||||
#include "naomi.h"
|
||||
#include "decrypt.h"
|
||||
#include "naomi_roms.h"
|
||||
|
@ -33,6 +32,7 @@
|
|||
#include "awcartridge.h"
|
||||
#include "gdcartridge.h"
|
||||
#include "archive/archive.h"
|
||||
#include "stdclass.h"
|
||||
|
||||
Cartridge *CurrentCartridge;
|
||||
bool bios_loaded = false;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
#include "types.h"
|
||||
#include "stdclass.h"
|
||||
|
||||
f32 vrf(u32 addr);
|
||||
u32 vri(u32 addr);
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "ta_structs.h"
|
||||
#include "pvr_regs.h"
|
||||
#include "helper_classes.h"
|
||||
#include "stdclass.h"
|
||||
|
||||
// helper for 32 byte aligned memory allocation
|
||||
void* OS_aligned_malloc(size_t align, size_t size);
|
||||
|
|
|
@ -3,9 +3,11 @@
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include "types.h"
|
||||
#include "decoder.h"
|
||||
#include "stdclass.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
typedef void (*DynarecCodeEntryPtr)();
|
||||
typedef std::shared_ptr<RuntimeBlockInfo> RuntimeBlockInfoPtr;
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
//gah , ccn emulation
|
||||
//CCN: Cache and TLB controller
|
||||
|
||||
#include "types.h"
|
||||
#include "hw/sh4/sh4_mmr.h"
|
||||
#include "ccn.h"
|
||||
#include "../sh4_core.h"
|
||||
#include "hw/pvr/pvr_mem.h"
|
||||
#include "mmu.h"
|
||||
#include "hw/mem/_vmem.h"
|
||||
#include "hw/mem/vmem32.h"
|
||||
#include "mmu.h"
|
||||
#include "hw/pvr/pvr_mem.h"
|
||||
#include "hw/sh4/sh4_if.h"
|
||||
#include "hw/sh4/sh4_mmr.h"
|
||||
#include "hw/sh4/sh4_core.h"
|
||||
|
||||
//Types
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
|
||||
#include "types.h"
|
||||
#include "../sh4_sched.h"
|
||||
#include "hw/sh4/sh4_sched.h"
|
||||
#include "hw/sh4/sh4_interrupts.h"
|
||||
#include "hw/sh4/sh4_mmr.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
#include "types.h"
|
||||
#include "stdclass.h"
|
||||
|
||||
enum Sh4RegType
|
||||
{
|
||||
|
@ -245,6 +246,7 @@ struct sh4_if
|
|||
StartFP* Start;
|
||||
};
|
||||
|
||||
extern sh4_if sh4_cpu;
|
||||
|
||||
struct Sh4Context
|
||||
{
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
#include "types.h"
|
||||
#include "stdclass.h"
|
||||
|
||||
//main system mem
|
||||
extern VArray2 mem_b;
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
#include "mapping.h"
|
||||
#include "cfg/ini.h"
|
||||
#include "stdclass.h"
|
||||
|
||||
static struct
|
||||
{
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include "hw/mem/_vmem.h"
|
||||
#include "hw/sh4/sh4_if.h"
|
||||
#include "stdclass.h"
|
||||
|
||||
#ifndef MAP_NOSYNC
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include "hw/naomi/naomi_cart.h"
|
||||
#include "reios/reios.h"
|
||||
#include "hw/sh4/sh4_sched.h"
|
||||
#include "hw/sh4/sh4_if.h"
|
||||
#include "hw/pvr/Renderer_if.h"
|
||||
#include "hw/pvr/spg.h"
|
||||
#include "hw/aica/dsp.h"
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
#include "audiostream.h"
|
||||
|
||||
#if HOST_OS == OS_DARWIN
|
||||
#include "stdclass.h"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
//#include <CoreAudio/CoreAudio.h>
|
||||
|
|
|
@ -312,6 +312,8 @@ void sdl_window_destroy()
|
|||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
|
||||
HWND sdl_get_native_hwnd()
|
||||
{
|
||||
SDL_SysWMinfo wmInfo;
|
||||
|
|
|
@ -8,6 +8,8 @@ extern void sdl_window_create();
|
|||
extern void sdl_window_set_text(const char* text);
|
||||
extern void sdl_window_destroy();
|
||||
extern void sdl_recreate_window(u32 flags);
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
HWND sdl_get_native_hwnd();
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
#pragma once
|
||||
#include "types.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <pthread.h>
|
||||
#else
|
||||
|
@ -174,9 +171,3 @@ public:
|
|||
return data[i];
|
||||
}
|
||||
};
|
||||
|
||||
int msgboxf(const char* text,unsigned int type,...);
|
||||
|
||||
#define MBX_OK 0
|
||||
#define MBX_ICONEXCLAMATION 0
|
||||
#define MBX_ICONERROR 0
|
||||
|
|
14
core/types.h
14
core/types.h
|
@ -68,6 +68,7 @@
|
|||
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <cstring>
|
||||
|
||||
//basic types
|
||||
typedef int8_t s8;
|
||||
|
@ -271,9 +272,6 @@ using namespace std;
|
|||
#define unlikely(x) __builtin_expect((x),0)
|
||||
#endif
|
||||
|
||||
//basic includes
|
||||
#include "stdclass.h"
|
||||
|
||||
#include "log/Log.h"
|
||||
|
||||
#ifndef NO_MMU
|
||||
|
@ -310,6 +308,12 @@ bool dc_unserialize(void **data, unsigned int *total_size);
|
|||
#define stricmp strcasecmp
|
||||
#endif
|
||||
|
||||
int msgboxf(const char* text, unsigned int type, ...);
|
||||
|
||||
#define MBX_OK 0
|
||||
#define MBX_ICONEXCLAMATION 0
|
||||
#define MBX_ICONERROR 0
|
||||
|
||||
#define verify(x) do { if ((x) == false){ msgboxf("Verify Failed : " #x "\n in %s -> %s : %d \n", MBX_ICONERROR, (__FUNCTION__), (__FILE__), __LINE__); dbgbreak;}} while (false)
|
||||
#define die(reason) do { msgboxf("Fatal error : %s\n in %s -> %s : %d \n", MBX_ICONERROR,(reason), (__FUNCTION__), (__FILE__), __LINE__); dbgbreak;} while (false)
|
||||
|
||||
|
@ -554,12 +558,8 @@ inline bool is_u8(u32 v) { return (u8)v==(s32)v; }
|
|||
inline bool is_s16(u32 v) { return (s16)v==(s32)v; }
|
||||
inline bool is_u16(u32 v) { return (u16)v==(u32)v; }
|
||||
|
||||
#include "hw/sh4/sh4_if.h"
|
||||
|
||||
//more to come
|
||||
|
||||
extern sh4_if sh4_cpu;
|
||||
|
||||
//sh4 thread
|
||||
s32 plugins_Init();
|
||||
void plugins_Term();
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include <windowsx.h>
|
||||
|
||||
#include "hw/mem/_vmem.h"
|
||||
#include "hw/sh4/sh4_if.h"
|
||||
|
||||
// Implementation of the vmem related function for Windows platforms.
|
||||
// For now this probably does some assumptions on the CPU/platform.
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#if defined(USE_SDL)
|
||||
#include "sdl/sdl.h"
|
||||
#endif
|
||||
#include "stdclass.h"
|
||||
#include "wsi/context.h"
|
||||
|
||||
OSXKeyboardDevice keyboard(0);
|
||||
|
|
Loading…
Reference in New Issue