2016-10-14 17:01:29 +00:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version. See also the license.txt file for
|
|
|
|
// additional informations.
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef STDAFX_H
|
|
|
|
#define STDAFX_H
|
|
|
|
|
2019-12-19 19:44:20 +00:00
|
|
|
#ifdef __LIBRETRO__
|
2016-10-14 17:01:29 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
2019-12-28 11:05:38 +00:00
|
|
|
#include <stdint.h>
|
2016-10-14 17:01:29 +00:00
|
|
|
|
|
|
|
#define DWORD unsigned int
|
|
|
|
#define byte unsigned char
|
|
|
|
|
|
|
|
#define _u8 unsigned char
|
|
|
|
#define Uint8 unsigned char
|
|
|
|
#define _u16 unsigned short
|
|
|
|
#define _u32 unsigned int
|
|
|
|
|
|
|
|
#define BOOL int
|
|
|
|
#define FALSE 0
|
|
|
|
#define TRUE (!0)
|
|
|
|
#define HWND void*
|
|
|
|
|
2019-12-28 11:05:38 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
#define path_default_slash() "\\"
|
|
|
|
#define path_default_slash_c() '\\'
|
|
|
|
#else
|
|
|
|
#define path_default_slash() "/"
|
|
|
|
#define path_default_slash_c() '/'
|
|
|
|
#endif
|
|
|
|
|
2019-12-19 19:44:20 +00:00
|
|
|
#else /* ifdef __LIBRETRO__ */
|
2016-10-14 17:01:29 +00:00
|
|
|
|
2019-12-28 11:05:38 +00:00
|
|
|
#define path_default_slash() "/"
|
|
|
|
#define path_default_slash_c() '/'
|
|
|
|
|
2016-10-14 17:01:29 +00:00
|
|
|
#ifdef TARGET_GP2X
|
|
|
|
|
|
|
|
//extern "C" void gp2x_memcpy(unsigned char *, unsigned char *, unsigned int);
|
|
|
|
#define memcpy gp2x_memcpy
|
|
|
|
#define memcmp gp2x_memcmp
|
|
|
|
//#define memset gp2x_memset
|
|
|
|
|
|
|
|
#define GENREGSPC_AS_REG //comment out to do it as a regular mem loc
|
|
|
|
#define GENREGSSR_AS_REG //comment out to do it as a regular mem loc
|
|
|
|
|
|
|
|
register unsigned char *my_pc asm ("r9");
|
2019-12-27 16:19:28 +00:00
|
|
|
register unsigned int opcode asm ("r6");
|
2016-10-14 17:01:29 +00:00
|
|
|
#ifdef GENREGSPC_AS_REG
|
2019-12-27 16:19:28 +00:00
|
|
|
register unsigned int gen_regsPC asm("r8");
|
2016-10-14 17:01:29 +00:00
|
|
|
#endif
|
|
|
|
#ifdef GENREGSSR_AS_REG
|
2019-12-27 16:19:28 +00:00
|
|
|
register unsigned int gen_regsSR asm("r7");
|
2016-10-14 17:01:29 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#include "StdAfx.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
|
|
|
|
typedef unsigned int UINT32;
|
|
|
|
typedef unsigned int DWORD;
|
|
|
|
typedef void * HRESULT;
|
|
|
|
typedef unsigned char byte;
|
|
|
|
|
|
|
|
typedef unsigned char _u8;
|
|
|
|
typedef unsigned short _u16;
|
|
|
|
typedef unsigned int _u32;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define MB_OK 1
|
|
|
|
|
|
|
|
typedef bool BOOL;
|
|
|
|
#define FALSE false
|
|
|
|
#define TRUE true
|
|
|
|
|
|
|
|
#ifndef _MAX_PATH
|
|
|
|
#define _MAX_PATH 150
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef TARGET_WIN
|
|
|
|
#define DEBUG
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
#define dbg_printf printf
|
|
|
|
#else
|
|
|
|
#define dbg_printf if(0) printf
|
|
|
|
#endif
|
|
|
|
#define dbg_print dbg_printf
|
|
|
|
|
|
|
|
void AfxMessageBox(char *a, int b, int c);
|
|
|
|
void AfxMessageBox(char *a, int b);
|
|
|
|
void AfxMessageBox(char *a);
|
|
|
|
|
|
|
|
#define HWND void*
|
|
|
|
#define BITMAP
|
|
|
|
|
2019-12-19 19:44:20 +00:00
|
|
|
#endif /* ifdef __LIBRETRO__ */
|
2016-10-14 17:01:29 +00:00
|
|
|
|
|
|
|
#endif //STDAFX_H
|