Commit graph

201 commits

Author SHA1 Message Date
Clownacy
7bd9645251 Make OpenBIOS a built-in fallback.
Previously, the emulator would mysteriously fail if the user did not
know beforehand to provide a copy of the BIOS. This avoids that
problem, silently and automatically loading a built-in copy of
OpenBIOS, so that the emulator will always do what the user wants:
boot the game.

Closes #153. Requested in #158.
2026-03-28 10:43:30 +00:00
Clownacy
651bc09dbd Remove VRAM dumping.
Completely unused, and pulls-in needless dependencies.
2026-03-12 21:54:32 +00:00
Clownacy
38fe600d3b Use miniz for everything instead of using both miniz and zlib.
Should reduce the size of the executable.
2026-03-12 21:40:45 +00:00
Clownacy
a0656611c9 Update libchdr.
Now uses libchdr's own CMake script instead of a custom one, which
allows for assembly-optimised LZMA decoding on some platforms.

This update also introduces support for Zstandard compression.
2026-03-12 21:17:40 +00:00
libretroadmin
d5169ed204 Add zstd 2024-05-27 05:05:31 +02:00
libretroadmin
4f94af016f libchdr - Backport Fix huff_codec_decompress returned error code
It was returning a huffman_error code but the return type is chd_error,
a completely different enum.
2024-05-27 04:11:17 +02:00
libretroadmin
b2ec48c5b6 libchdr - Backport Avoid huffman tree buffer overrun in huffman_import_tree_rle 2024-05-27 04:04:21 +02:00
libretroadmin
e7db8e1ce3 Backport Add support for 'huff' codec. 2024-05-27 04:01:48 +02:00
libretroadmin
5317ba612c (libchdr) Backport fix double file close if opening failed 2024-05-27 03:57:23 +02:00
libretroadmin
d6f6049281 libchdr - Backport Fix potential NULL dereference 2024-05-27 03:56:39 +02:00
libretroadmin
744027819a Backport Fix fseek offset type. 2024-05-27 03:54:39 +02:00
libretroadmin
d499f6179e (libchdr) Backport
use virtual file i/o API which defaults to a stdio wrapper
this is preferable over using stdio directly because it gives users of libchdr
greater control over how the file is loaded.  For example, users can create
core_file implementations that load files over a network connection, or from
RAM, from an archive, etc.

* owns_file is now gone because teh user's fclose implementation will know how
  to clean things up itself.
* chd_open_file now accepts a FILE* instead of a core_file* to preserve backwards
  compatibility.
* new chd_open_core_file accepts a core_file* for users who want to be able to
  provide their own file i/o methods
* core_ftell is gone in favor of core_fsize because the only time it was ever
  called in the past was by core_fsize and by redundant code that was doing the
  same thing as core_fsize.
* resolve broken error-checking in chd_precache which would fail to detect errors
  returned by ftell when _MSC_VER is defined
2024-05-27 03:51:07 +02:00
libretroadmin
fedff98bdf Backport
Remove erroneous free() call in zlib_codec_init()
Remove a free() call inherited from the original MAME code which
allocated memory within zlib_codec_init(). It is no longer appropriate
to call here, as the data variable now points to the middle of a
caller-owned allocation.
2024-05-26 23:01:25 +02:00
libretroadmin
579591c917 (libhcdr) Add support for reading LZMA and FLAC hunks in non-CD CHDs. 2024-05-26 22:59:11 +02:00
libretroadmin
bc053b7c88 (libhcdr) Backports 2024-05-26 21:11:57 +02:00
libretroadmin
2167c71c46 (libchdr) Backport Avoid division by zero 2024-05-26 21:00:17 +02:00
libretroadmin
b4e78fdf68 libchdr updates 2024-05-26 20:45:15 +02:00
libretroadmin
ea317b6e34 Use more libretro-common and libretro VFS 2024-05-20 05:17:45 +02:00
libretroadmin
6c7cb8619e Update CHD code to use libretro VFS 2024-05-20 04:36:34 +02:00
libretroadmin
e40087af51 Add missing file 2024-05-19 21:04:44 +02:00
libretroadmin
54be4bce18 Start using libretro VFS 2024-05-19 20:18:38 +02:00
libretroadmin
1f9462a9a9 First step hooking up VFS 2024-05-19 19:06:09 +02:00
libretroadmin
bfd6fb31a6 Update libretro-common 2024-05-19 05:46:16 +02:00
libretroadmin
d33a8b903a Remove unused ToString() functions 2024-04-18 12:24:01 +02:00
DarthMew
44f5d8b257 Update libretro.h & libretro_d3d.h, include d3d12 main files for later 2023-07-27 18:08:19 +02:00
DarthMew
08efe9fdf7 Update libchdr to a03e693, remove libFLAC 2023-01-29 23:34:48 +01:00
LibretroAdmin
297785b4b1 Remove some unused xbyak code 2022-09-12 20:12:20 +02:00
LibretroAdmin
53569ad61e Get rid of assert.cpp 2022-09-08 08:37:38 +02:00
LibretroAdmin
f4a342fae0 Remove now unused simpleini 2022-09-07 20:31:03 +02:00
libretroadmin
99a3dcf1e4 - Remove unused minizip
- Remove unused easing.h/lru_cache.h headers
2022-06-25 17:34:43 +02:00
libretroadmin
f134855199 Slim down xbyak 2022-06-24 18:14:29 +02:00
libretroadmin
693ad778cd Remove rapidjson 2022-06-24 06:20:11 +02:00
libretroadmin
0c5e9d87b5 Remove libsamplerate 2022-06-24 05:41:46 +02:00
DarthMew
e1a8bfb643 Add libretro-common as dependency, remove frontend-common in src 2022-03-02 20:28:40 +01:00
DarthMew
be652b5eb7 RetroArch already handles this by itself 2022-02-27 03:45:47 +01:00
DarthMew
43e2553e00 Drop Imgui 2022-02-22 20:15:57 +01:00
DarthMew
4335a2ad7e Reduce the amount of files in the repo & rename 'duckstation-libretro' to 'libretro' 2022-02-21 23:16:22 +01:00
DarthMew
2c571da4b7 Merge branch 'master' of https://github.com/stenzek/duckstation 2022-01-10 16:02:46 +01:00
Silent
9c91af6dfa
Update to rcheevos v10.2.0
Leaderboard rurl hacks are now replaced by proper calls
2022-01-07 16:21:37 +01:00
DarthMew
bc6fac5043 Reduce the amount of dependencies, copy relevent hardware renderer host display code to Libretro equivalent files, and re-do the OpenGLES fix 2021-12-21 18:12:38 +01:00
DarthMew
c33cc1c2b5
Merge branch 'stenzek:master' into master 2021-11-10 13:55:53 +01:00
Connor McLaughlin
c3a39a9bba vsprops: Add DynamicLibrary.props 2021-11-10 12:34:37 +10:00
DarthMew
be4783514a reapply swanstation commits to latest upstream 2021-10-14 23:30:13 +02:00
Connor McLaughlin
9278b7f110 dep/msvc: Update SDL2 to 2.0.16 2021-09-08 10:49:10 +10:00
Connor McLaughlin
74bf021c2f MSBuild: Copy base translation files 2021-08-17 13:39:06 +10:00
Wunkolo
494b6e029f GPU/Vulkan: Add complete VK_EXT_debug_utils API entry points 2021-08-01 10:56:56 -07:00
Jean-André Santoni
5e25f25ddc Temp 2021-07-27 20:09:13 +07:00
Connor McLaughlin
0da756b0fd dep/stb: Warning fix 2021-07-26 01:35:16 +10:00
Connor McLaughlin
673f9927ad dep/stb: Use zlib for png compression 2021-07-24 15:26:47 +10:00
Connor McLaughlin
0ff1402fcd dep/libchdr: Disable verification/subcode decompression
Small speed boost on low end devices.
2021-07-11 20:58:46 +10:00