mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 10:22:48 +01:00
019c38c5ce
- [Psy-X] added log file creation
51 lines
962 B
C
51 lines
962 B
C
#ifndef DRIVER2_H
|
|
#define DRIVER2_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
|
|
#include "KERNEL.H"
|
|
#include "TYPES.H"
|
|
#include "LIBCD.H"
|
|
#include "LIBGTE.H"
|
|
#include "LIBGPU.H"
|
|
#include "LIBSPU.H"
|
|
|
|
#include "psyx_compat.h"
|
|
|
|
#ifdef PSX
|
|
// TODO: Include PSX STUFF
|
|
#define trap(code) printf("ERROR OCCURED %d!\n", code)
|
|
|
|
#define printMsg (void)
|
|
#define printInfo (void)
|
|
#define printWarning (void)
|
|
#define printError (void)
|
|
|
|
#else
|
|
|
|
#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
|
|
|
|
#include "reversing.h"
|
|
|
|
#include "version.h"
|
|
#include "dr2math.h"
|
|
#include "dr2limits.h"
|
|
#include "dr2types.h"
|
|
#include "dr2locale.h"
|
|
|
|
#endif // DRIVER2_H
|