Skip to content

Commit

Permalink
Build fix after update
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven committed Feb 5, 2024
1 parent 968efb6 commit f9b3fff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions libretro-build/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ SOURCES_C := $(CORE_DIR)/src/arm/arm.c \
$(CORE_DIR)/src/util/patch-ups.c \
$(CORE_DIR)/src/util/string.c \
$(CORE_DIR)/src/util/table.c \
$(CORE_DIR)/src/util/vector.c \
$(CORE_DIR)/src/util/vfs.c \
$(CORE_DIR)/src/util/vfs/vfs-mem.c \
$(CORE_DIR)/src/util/crc32.c
Expand Down
8 changes: 0 additions & 8 deletions src/gba/bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,6 @@ static void _RegisterRamReset(struct GBA* gba) {
gba->video.renderer->writeVideoRegister(gba->video.renderer, i, gba->memory.io[i >> 1]);
}
}
if (registers & 0x9C) {
gba->video.renderer->reset(gba->video.renderer);
gba->video.renderer->writeVideoRegister(gba->video.renderer, REG_DISPCNT, gba->memory.io[REG_DISPCNT >> 1]);
int i;
for (i = REG_BG0CNT; i < REG_SOUND1CNT_LO; i += 2) {
gba->video.renderer->writeVideoRegister(gba->video.renderer, i, gba->memory.io[i >> 1]);
}
}
}

static void _BgAffineSet(struct GBA* gba) {
Expand Down
5 changes: 3 additions & 2 deletions src/platform/libretro/libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -2345,9 +2345,9 @@ size_t retro_get_memory_size(unsigned id) {
}
break;
case RETRO_MEMORY_SYSTEM_RAM:
return SIZE_WORKING_RAM;
return GB_SIZE_WORKING_RAM;
case RETRO_MEMORY_VIDEO_RAM:
return SIZE_VRAM;
return GBA_SIZE_VRAM;
default:
break;
}
Expand All @@ -2367,6 +2367,7 @@ void GBARetroLog(struct mLogger* logger, int category, enum mLogLevel level, con
switch (level) {
case mLOG_ERROR:
case mLOG_FATAL:
case mLOG_ALL:
retroLevel = RETRO_LOG_ERROR;
break;
case mLOG_WARN:
Expand Down
2 changes: 2 additions & 0 deletions src/util/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ void separatePath(const char* path, char* dirname, char* basename, char* extensi
}
}

#if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2
bool isAbsolute(const char* path) {
// XXX: Is this robust?
#ifdef _WIN32
Expand Down Expand Up @@ -245,6 +246,7 @@ void makeAbsolute(const char* path, const char* base, char* out) {
#endif
strncpy(out, buf, PATH_MAX);
}
#endif

struct VFile* VDirFindFirst(struct VDir* dir, bool (*filter)(struct VFile*)) {
dir->rewind(dir);
Expand Down

0 comments on commit f9b3fff

Please sign in to comment.