Convert tcache.cpp to C

This commit is contained in:
twinaphex 2020-09-23 02:38:27 +02:00
parent e152f84afc
commit a85c9cb9c3
3 changed files with 12 additions and 4 deletions

View File

@ -23,12 +23,12 @@ SOURCES_CXX += \
$(CORE_EMU_DIR)/wswan-memory.cpp \
$(CORE_EMU_DIR)/v30mz.cpp \
$(CORE_EMU_DIR)/sound.cpp \
$(CORE_EMU_DIR)/tcache.cpp \
$(CORE_EMU_DIR)/eeprom.cpp
SOURCES_C += \
$(CORE_EMU_DIR)/interrupt.c \
$(CORE_EMU_DIR)/rtc.c
$(CORE_EMU_DIR)/rtc.c \
$(CORE_EMU_DIR)/tcache.c
endif
ifeq ($(NEED_BLIP), 1)

View File

@ -4,8 +4,6 @@
#include "../state.h"
#include "../video.h"
void WSWan_TCacheInvalidByAddr(uint32);
extern uint8 wsTCache[512*64]; //tiles cache
extern uint8 wsTCacheFlipped[512*64]; //tiles cache (H flip)
extern uint8 wsTileRow[8]; //extracted 8 pixels (tile row)
@ -15,9 +13,19 @@ extern uint8 wsTCacheFlipped2[512*64]; //tiles cache (H flip)
extern uint8 wsTCacheUpdate2[512]; //tiles cache flags
extern int wsVMode; //Video Mode
#ifdef __cplusplus
extern "C" {
#endif
void wsMakeTiles(void);
void wsGetTile(uint32,uint32,int,int,int);
void wsSetVideo(int, bool);
void WSWan_TCacheInvalidByAddr(uint32);
#ifdef __cplusplus
}
#endif
void wsScanline(uint16 *target, int depth);