mirror of
https://github.com/libretro/libretro-crocods.git
synced 2026-10-17 14:55:12 +00:00
master
Now that nothing in the core opens files directly, the POSIX I/O
headers these files pulled in are dead weight, and several of them do
not exist on MSVC or on the console SDKs:
crocods.h <sys/stat.h> <sys/types.h> <unistd.h> -- removed
gif.c <sys/stat.h> <sys/types.h> <unistd.h> -- removed
crocods.h in particular is included by nearly every file in the core,
so it was putting <unistd.h> in front of every translation unit.
dictionary.c/.h included <unistd.h> for ssize_t rather than for any I/O
call. That is exactly the case retro_common_api.h exists to handle, so
they include that instead and pick up the MSVC typedef for free.
apps_browser.c keeps <unistd.h> and <fcntl.h>: it is a BSD-sockets HTTP
fetcher and genuinely needs them, and it is already compiled out on
Windows and the consoles.
Verified: no new implicit-declaration, incompatible-pointer or
undeclared-identifier warnings against the previous commit (zero in
both), and the full ASan + UBSan + LSan and TSan sweeps still come back
clean across {info->data, info->path, NULL path} x {frontend VFS iface,
fallback}.
libretro-crocods
~~Look for .kcr file format to use CrocoDS at its best: https://github.com/redbug26/crocods-core/wiki/kcr ~~
Install on Recalbox
- SSH on your recalbox
- Type the following command:
curl https://raw.githubusercontent.com/libretro/libretro-crocods/master/install_recalbox.sh | sh
- Restart your recalbox
- Choose crocods core in the Amstrad settings in Emulation Station
(Repeat each time you update your recalbox)
Build instructions on other systems
git clone https://github.com/libretro/libretro-crocods.git
cd libretro-crocods/
git submodule update --init --recursive
Compile for osX
make platform="osx" -j2 CC="cc"
Compile for linux
make platform="linux" -j2 CC="cc"
Compile for win (using mingw)
make platform="win" -j2 CC="cc"
Compile for raspberry (from Ubuntu)
sudo apt-get install gcc-arm-linux-gnueabihf make
make platform="unix" -j2 CC="arm-linux-gnueabihf-gcc"
Languages
C
99.6%
Makefile
0.4%