Re-add Types.h, remove some more #ifdef
This commit is contained in:
parent
9ec142daa8
commit
27aeb6dc67
|
@ -1,12 +1,7 @@
|
||||||
#ifndef SYSTEM_H
|
#ifndef SYSTEM_H
|
||||||
#define SYSTEM_H
|
#define SYSTEM_H
|
||||||
|
|
||||||
#ifndef __LIBRETRO__
|
#include "common/Types.h"
|
||||||
#include <zlib.h>
|
|
||||||
#include "common/cstdint.h"
|
|
||||||
#else
|
|
||||||
#include <stdint.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define winlog log
|
#define winlog log
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
#ifndef PATCH_H
|
#ifndef PATCH_H
|
||||||
#define PATCH_H
|
#define PATCH_H
|
||||||
|
|
||||||
#ifndef __LIBRETRO__
|
#include "Types.h"
|
||||||
#include "cstdint.h"
|
|
||||||
#else
|
|
||||||
#include <stdint.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool applyPatch(const char *patchname, uint8_t **rom, int *size);
|
bool applyPatch(const char *patchname, uint8_t **rom, int *size);
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
#ifndef PORT_H
|
#ifndef PORT_H
|
||||||
#define PORT_H
|
#define PORT_H
|
||||||
|
|
||||||
#ifndef __LIBRETRO__
|
#include "Types.h"
|
||||||
#include "cstdint.h"
|
|
||||||
#else
|
|
||||||
#include <stdint.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __CELLOS_LV2__
|
#ifdef __CELLOS_LV2__
|
||||||
/* PlayStation3 */
|
/* PlayStation3 */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include "../common/cstdint.h"
|
#include "../common/Types.h"
|
||||||
|
|
||||||
uint8_t* gbMemoryMap[16];
|
uint8_t* gbMemoryMap[16];
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef GBGLOBALS_H
|
#ifndef GBGLOBALS_H
|
||||||
#define GBGLOBALS_H
|
#define GBGLOBALS_H
|
||||||
|
|
||||||
#include "../common/cstdint.h"
|
#include "../common/Types.h"
|
||||||
|
|
||||||
extern int gbRomSizeMask;
|
extern int gbRomSizeMask;
|
||||||
extern int gbRomSize;
|
extern int gbRomSize;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef GBMEMORY_H
|
#ifndef GBMEMORY_H
|
||||||
#define GBMEMORY_H
|
#define GBMEMORY_H
|
||||||
|
|
||||||
#include "../common/cstdint.h"
|
#include "../common/Types.h"
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
struct mapperMBC1 {
|
struct mapperMBC1 {
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
#ifndef VBA_BKS_H
|
#ifndef VBA_BKS_H
|
||||||
#define VBA_BKS_H
|
#define VBA_BKS_H
|
||||||
|
|
||||||
#ifndef __LIBRETRO__
|
#include "../common/Types.h"
|
||||||
#include "../common/cstdint.h"
|
|
||||||
#else
|
|
||||||
#include <stdint.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define readWord(addr) \
|
#define readWord(addr) \
|
||||||
((map[(addr) >> 24].address[(addr)&map[(addr) >> 24].mask]) + ((map[(addr + 1) >> 24].address[(addr + 1) & map[(addr + 1) >> 24].mask]) << 8) + ((map[(addr + 2) >> 24].address[(addr + 2) & map[(addr + 2) >> 24].mask]) << 16) + ((map[(addr + 3) >> 24].address[(addr + 3) & map[(addr + 3) >> 24].mask]) << 24))
|
((map[(addr) >> 24].address[(addr)&map[(addr) >> 24].mask]) + ((map[(addr + 1) >> 24].address[(addr + 1) & map[(addr + 1) >> 24].mask]) << 8) + ((map[(addr + 2) >> 24].address[(addr + 2) & map[(addr + 2) >> 24].mask]) << 16) + ((map[(addr + 3) >> 24].address[(addr + 3) & map[(addr + 3) >> 24].mask]) << 24))
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
#ifndef EEPROM_H
|
#ifndef EEPROM_H
|
||||||
#define EEPROM_H
|
#define EEPROM_H
|
||||||
|
|
||||||
#ifndef __LIBRETRO__
|
#include "../common/Types.h"
|
||||||
#include "../common/cstdint.h"
|
|
||||||
#else
|
|
||||||
#include <stdint.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <zlib.h>
|
|
||||||
|
|
||||||
#ifdef __LIBRETRO__
|
#ifdef __LIBRETRO__
|
||||||
extern void eepromSaveGame(uint8_t*& data);
|
extern void eepromSaveGame(uint8_t*& data);
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
#ifndef FLASH_H
|
#ifndef FLASH_H
|
||||||
#define FLASH_H
|
#define FLASH_H
|
||||||
|
|
||||||
#ifndef __LIBRETRO__
|
#include "../common/Types.h"
|
||||||
#include "../common/cstdint.h"
|
|
||||||
#include <zlib.h>
|
|
||||||
#else
|
|
||||||
#include <stdint.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define FLASH_128K_SZ 0x20000
|
#define FLASH_128K_SZ 0x20000
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
#ifndef GBA_H
|
#ifndef GBA_H
|
||||||
#define GBA_H
|
#define GBA_H
|
||||||
|
|
||||||
#ifndef __LIBRETRO__
|
#include "../common/Types.h"
|
||||||
#include "../common/cstdint.h"
|
|
||||||
#else
|
|
||||||
#include <stdint.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../System.h"
|
#include "../System.h"
|
||||||
|
|
||||||
const uint64_t TICKS_PER_SECOND = 16777216;
|
const uint64_t TICKS_PER_SECOND = 16777216;
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __LIBRETRO__
|
#include "../common/Types.h"
|
||||||
#include "../common/cstdint.h"
|
|
||||||
#else
|
|
||||||
#include <stdint.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <SFML/Network.hpp>
|
#include <SFML/Network.hpp>
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
#ifndef SRAM_H
|
#ifndef SRAM_H
|
||||||
#define SRAM_H
|
#define SRAM_H
|
||||||
|
|
||||||
#ifndef __LIBRETRO__
|
#include "../common/Types.h"
|
||||||
#include "../common/cstdint.h"
|
|
||||||
#else
|
|
||||||
#include <stdint.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
uint8_t sramRead(uint32_t address);
|
uint8_t sramRead(uint32_t address);
|
||||||
void sramWrite(uint32_t address, uint8_t byte);
|
void sramWrite(uint32_t address, uint8_t byte);
|
||||||
|
|
|
@ -19,8 +19,7 @@
|
||||||
#ifndef VBA_SDL_FILTERS_H
|
#ifndef VBA_SDL_FILTERS_H
|
||||||
#define VBA_SDL_FILTERS_H
|
#define VBA_SDL_FILTERS_H
|
||||||
|
|
||||||
#include "../common/cstdint.h"
|
#include "../common/Types.h"
|
||||||
|
|
||||||
#include "../System.h"
|
#include "../System.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue