libretro / picodrive

Fast MegaDrive/MegaCD/32X emulator
Other
38 stars 60 forks source link

Please enable chd support on Android #192

Closed phcoder closed 2 years ago

phcoder commented 2 years ago

I found out that chd support is disabled on Android. After adding following files to SOURCES_C (in jni/Android.mk): $(CORE_DIR)/pico/cd/libchdr/src/libchdr_bitstream.c \ $(CORE_DIR)/pico/cd/libchdr/src/libchdr_cdrom.c \ $(CORE_DIR)/pico/cd/libchdr/src/libchdr_chd.c \ $(CORE_DIR)/pico/cd/libchdr/src/libchdr_flac.c \ $(CORE_DIR)/pico/cd/libchdr/src/libchdr_huffman.c \ $(CORE_DIR)/pico/cd/libchdr/deps/lzma-19.00/src/LzFind.c $(CORE_DIR)/pico/cd/libchdr/deps/lzma-19.00/src/LzmaDec.c $(CORE_DIR)/pico/cd/libchdr/deps/lzma-19.00/src/LzmaEnc.c

And -DUSE_LIBCHDR=1 -D_7ZIP_ST -I$(CORE_DIR)/pico/cd/libchdr/include -I$(CORE_DIR)/pico/cd/libchdr/deps/lzma-19.00/include to COREFLAGS (jni/Android.mk as well), it works fine

phcoder commented 2 years ago

https://github.com/libretro/picodrive/pull/194