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