REDRIVER2/src_rebuild/Game/driver2.h

54 lines
1.1 KiB
C
Raw Normal View History

#ifndef DRIVER2_H
#define DRIVER2_H
#include "KERNEL.H"
#include "TYPES.H"
#include "LIBCD.H"
2020-10-24 20:13:30 +02:00
#include "LIBGTE.H"
#include "LIBGPU.H"
#include "LIBSPU.H"
2020-12-28 09:57:08 +01:00
#include "psyx_compat.h"
#define USE_PC_FILESYSTEM !defined(PSX) // PC filesystem is prioritized over CD
#define USE_CD_FILESYSTEM 1 // use always
#ifdef PSX
// TODO: Include PSX STUFF
2020-12-28 09:57:08 +01:00
#define trap(code) printf("ERROR OCCURED %d!\n", code)
#define printMsg (void)
#define printInfo (void)
#define printWarning (void)
#define printError (void)
#else
#include <stdbool.h>
#include <stdio.h>
#define printMsg PsyX_Log
#define printInfo PsyX_Log_Info
#define printWarning PsyX_Log_Warning
#define printError PsyX_Log_Error
#if _MSC_VER >= 1400
#define trap(ode) {printError("EXCEPTION code: %x\n", ode); __debugbreak();}
#elif defined(__GNUC__)
#define trap(ode) {__asm__("int3");}
#else
#define trap(ode) {_asm int 0x03}
#endif
#endif // PSX
2020-12-28 11:28:40 +01:00
#include "reversing.h"
2020-12-28 11:28:40 +01:00
#include "version.h"
#include "dr2math.h"
#include "dr2limits.h"
#include "dr2types.h"
#include "dr2locale.h"
#endif // DRIVER2_H