mirror of https://github.com/yaz0r/FITD.git
89 lines
1.4 KiB
C++
89 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#if __cplusplus
|
|
#include <vector>
|
|
#include <string>
|
|
#include <format>
|
|
#include <optional>
|
|
#endif
|
|
|
|
#ifdef __APPLE__
|
|
#include <TargetConditionals.h>
|
|
#include <stdint.h>
|
|
#define HAS_STDINT
|
|
#endif
|
|
|
|
#ifdef _WIN32
|
|
#define _CRT_SECURE_NO_WARNINGS
|
|
//#include "config.h"
|
|
#endif
|
|
|
|
// Config IMGUI
|
|
#ifdef __APPLE__
|
|
#if TARGET_OS_OSX
|
|
#define USE_SDL 1
|
|
#define FITD_DEBUGGER
|
|
#define USE_IMGUI
|
|
#define USE_OPENGL_3_2
|
|
#endif
|
|
#if TARGET_OS_TV || TARGET_OS_IOS
|
|
#define USE_SDL 1
|
|
#define USE_OPENGLES_3_0
|
|
#define RUN_FULLSCREEN
|
|
#define USE_IMGUI
|
|
#define FITD_DEBUGGER
|
|
#endif
|
|
#else
|
|
#define USE_SDL 1
|
|
#define FITD_DEBUGGER
|
|
#define USE_IMGUI
|
|
#define USE_OPENGL_3_2
|
|
#endif
|
|
|
|
#ifdef AITD_UE4
|
|
#undef USE_IMGUI
|
|
#endif
|
|
|
|
#ifdef MACOSX
|
|
#define UNIX
|
|
#endif
|
|
|
|
#define HAS_YM3812 1
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef uint8_t u8;
|
|
typedef uint16_t u16;
|
|
typedef uint32_t u32;
|
|
|
|
typedef int8_t s8;
|
|
typedef int16_t s16;
|
|
typedef int32_t s32;
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <time.h>
|
|
#include <string.h>
|
|
#ifdef WIN32
|
|
#include <search.h>
|
|
#endif
|
|
|
|
#ifdef _WIN32
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
#include <assert.h>
|
|
|
|
#ifdef _DEBUG
|
|
#define ASSERT(exp) assert(exp)
|
|
#else
|
|
#define ASSERT(exp)
|
|
#endif
|
|
|
|
#ifdef _DEBUG
|
|
#define ASSERT_PTR(exp) assert(exp)
|
|
#else
|
|
#define ASSERT_PTR(exp)
|
|
#endif
|
|
|