mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-23 08:59:40 +00:00
875f031182
byuu says: Changelog: - Super Famicom core converted to use nall/vfs - excludes Super Game Boy; since that's invoked from inside the GB core This was definitely the major obstacle to test nall/vfs' applicability. Things worked out pretty great in the end. We went from 22.0KiB (cartridge) + 18.6KiB (interface) to 24.5KiB (cartridge) + 11.4KiB (interface). Or 40.7KiB to 36.0KiB. This removes a very large source of indirection. Before it was: "coprocessor <=> cartridge <=> interface" for loading and saving data, and now it's just "coprocessor <=> cartridge". And it may make sense to eventually turn this into just "cartridge -> coprocessor" by making each coprocessor class handle its own markup parsing. It's nice to have all the manifest parsing in one location (well, sans MSU1); but it's also nice for loading/unloading to be handled by each coprocessor itself. So I'll have to think longer about that one. I've also started handling Interface::save() differently. Instead of keeping track of memory IDs and filenames, and iterating through that vector of objects ... instead I now have a system that mirrors the markup parsing on loading, but handles saving instead. This was actually the reason the code size savings weren't more significant, but I like this style more. As before, it removes an extra level of indirection. So ... next up, I need to port over the GB, then GBA, then WS cores. These shouldn't take too long since they're all very simple with just ROM+RAM(+RTC) right now. Then get the SGB callbacks using vfs. Then after that, gut all the old stream stuff from nall and higan. Kill the (load,save)Request stuff, rename the load(Gamepak)Request to something simpler, and then we should be good. Anyway ... these are some huge changes. |
||
---|---|---|
.. | ||
beat | ||
database | ||
decode | ||
dsp | ||
emulation | ||
encode | ||
hash | ||
http | ||
image | ||
mosaic | ||
posix | ||
stream | ||
string | ||
vector | ||
vfs | ||
windows | ||
xorg | ||
algorithm.hpp | ||
any.hpp | ||
atoi.hpp | ||
bit-field.hpp | ||
bit-vector.hpp | ||
bit.hpp | ||
config.hpp | ||
directory.hpp | ||
dl.hpp | ||
endian.hpp | ||
file.hpp | ||
filemap.hpp | ||
function.hpp | ||
GNUmakefile | ||
hashset.hpp | ||
hid.hpp | ||
image.hpp | ||
inode.hpp | ||
interpolation.hpp | ||
intrinsics.hpp | ||
main.hpp | ||
map.hpp | ||
matrix.hpp | ||
maybe.hpp | ||
memory.hpp | ||
mosaic.hpp | ||
nall.hpp | ||
path.hpp | ||
platform.hpp | ||
primitives.hpp | ||
property.hpp | ||
queue.hpp | ||
random.hpp | ||
range.hpp | ||
run.hpp | ||
serial.hpp | ||
serializer.hpp | ||
service.hpp | ||
set.hpp | ||
shared-memory.hpp | ||
shared-pointer.hpp | ||
smtp.hpp | ||
sort.hpp | ||
stdint.hpp | ||
stream.hpp | ||
string.hpp | ||
thread.hpp | ||
traits.hpp | ||
unique-pointer.hpp | ||
utility.hpp | ||
varint.hpp | ||
vector.hpp | ||
vfs.hpp |