Skip to content

Commit

Permalink
Merge pull request #7 from jet082/master
Browse files Browse the repository at this point in the history
Fix segfaults across all cores and allow ios-arm64
  • Loading branch information
inactive123 committed Nov 16, 2019
2 parents 2b4b9b1 + 60cda38 commit fdecf52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 8 additions & 3 deletions Makefile.libretro
Expand Up @@ -61,9 +61,14 @@ else ifneq (,$(findstring ios,$(platform)))
ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
endif

CC = cc -arch armv7 -isysroot $(IOSSDK)
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
ifeq ($(platform),ios-arm64)
CC = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
CXXFLAGS += -stdlib=libc++
else
CC = cc -arch armv7 -isysroot $(IOSSDK)
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
endif
COMMONFLAGS += -DIOS
ifeq ($(platform),ios9)
CC += -miphoneos-version-min=8.0
Expand Down
6 changes: 3 additions & 3 deletions uzem_libretro.cpp
Expand Up @@ -72,7 +72,7 @@ void retro_init(void)
uzebox.idrv = &input_driver_libretro;
uzebox.vdrv = &video_driver_libretro;

uzebox.vdrv->framebuffer = framebuffer;
//uzebox.vdrv->framebuffer = framebuffer;
uzebox.vdrv->stride = 720;

uzebox.init_gui();
Expand Down Expand Up @@ -270,7 +270,7 @@ void retro_run(void)

/* Try rendering straight into VRAM if we can. */

/*

struct retro_framebuffer fb = {0};
fb.width = width;
fb.height = height;
Expand All @@ -282,7 +282,7 @@ void retro_run(void)
uzebox.vdrv->framebuffer = framebuffer;
uzebox.vdrv->stride = width;
}
*/


while (uzebox.scanline_count == -999)
uzebox.exec();
Expand Down

0 comments on commit fdecf52

Please sign in to comment.