A port of the Fuse Unix Spectrum Emulator to libretro
Go to file
jfroco 99df66eac0
Add .sna and .szx snapshot support (#152)
- Add .sna and .szx snapshot support.
- Restore snapshot identification using the filename.
- Add option to use fixed-size savestate (recommended for netplay).
- Patch szx to use fixed-size snapshots
2024-11-18 15:25:00 -08:00
build Force -D__LIBRETRO__ for Android JNI files if not done so already 2024-09-20 03:53:36 +02:00
bzip2 added support for the rzx format 2015-06-13 19:35:17 -03:00
etc shared obj extension now matches the makefile extension 2015-08-03 21:33:59 -03:00
fuse Fix typo 2024-09-20 03:41:32 +02:00
libspectrum Add .sna and .szx snapshot support (#152) 2024-11-18 15:25:00 -08:00
src Add .sna and .szx snapshot support (#152) 2024-11-18 15:25:00 -08:00
zlib PS3/PSL1GHT build fix 2022-02-12 12:32:54 +01:00
_BASIC.z80 boot to basic when the users selects the _BASIC.z80 content 2015-02-24 22:21:35 -03:00
.gitignore ignore dylib files 2015-08-17 00:11:23 -03:00
.gitlab-ci.yml Update .gitlab-ci.yml 2022-07-26 05:49:34 +02:00
.travis.yml add 3ds to travis build 2017-10-23 21:24:07 -04:00
LICENSE Initial commit 2015-02-02 21:38:55 -02:00
Makefile Update Makefiles 2015-08-01 21:57:03 +02:00
Makefile.libretro ios/tvos: properly set min supported version (#148) 2024-10-21 14:38:40 -07:00
README.md Update README.md 2021-05-14 12:22:53 +02:00

fuse-libretro

fuse-libretro is a perpetual work in progress port of the Fuse Unix Spectrum Emulator to libretro. The port was originally developed on Windows with MinGW (32 bits), but it's known to compile and run on Linux x86/x64 and ARM and other systems. fuse-libretro has been tested with the latest RetroArch releases and some Lakka builds.

Games

There are hundreds of free, legally available ZX Spectrum games at World of Spectrum. You should start at the Visitor Voted Top 100 Best Games.

Emulated Machines

  1. Spectrum 48K
  2. Spectrum 48K (NTSC)
  3. Spectrum 128K
  4. Spectrum +2
  5. Spectrum +2A
  6. Spectrum +3
  7. Spectrum +3e
  8. Spectrum SE
  9. Timex TC2048
  10. Timex TC2068
  11. Timex TS2068
  12. Spectrum 16K
  13. Pentagon 128K (needs 128p-0.rom, 128p-1.rom, and trdos.rom)
  14. Pentagon 512K (needs 128p-0.rom, 128p-1.rom, gluck.rom, and trdos.rom)
  15. Pentagon 1024 (needs 128p-0.rom, 128p-1.rom, gluck.rom, and trdos.rom)
  16. Scorpion 256K (needs 256s-0.rom, 256s-1.rom, 256s-2.rom, and 256s-3.rom)

The last four machines need additional ROMs to work. Create a fuse folder inside the system folder, download the required ROMs and put them into that folder.

The port correctly loads and runs many games in all supported formats. If you wish to report an issue with a specific game, please include a link to the exact file you used (e.g., .tap, .tzx, etc.)

Core Options

The core options available on the frontend are:

  • Model (Spectrum 16K|Spectrum 48K|Spectrum 48K (NTSC)|Spectrum 128K|Spectrum +2|Spectrum +2A|Spectrum +3|Spectrum +3e|Spectrum SE|Timex TC2048|Timex TC2068|Timex TS2068|Spectrum 16K|Pentagon 128K|Pentagon 512K|Pentagon 1024|Scorpion 256K): Set the machine to emulate. Note that the this setting will have effect only when a new content is loaded
  • Hide video border (enabled|disabled): Hides the video border, making the game occupy the entire screen area
  • Tape Fast Load (enabled|disabled): Instantly loads tape files if enabled, or disabled it to see the moving horizontal lines in the video border while the game loads
  • Tape Load Sound (enabled|disabled): Outputs the tape sound if fast load is disabled
  • Speaker Type (tv speaker|beeper|unfiltered): Applies an audio filter (libretro should allow for audio filters on the frontend)
  • AY Stereo Separation (none|acb|abc): The AY sound chip stereo separation (whatever it is)
  • Transparent Keyboard Overlay (enabled|disabled): If the keyboard overlay is transparent or opaque
  • Time to Release Key in ms (100|300|500|1000): How much time to keep a key pressed before releasing it (used when a key is pressed using the keyboard overlay)

Input Devices

There are seven types of joysticks emulated:

  1. Cursor
  2. Kempston
  3. Sinclair 1
  4. Sinclair 2
  5. Timex 1
  6. Timex 2
  7. Fuller Joystick

Users can configure their joystick types in the input configuration on the front end. However, fuse-libretro allows for two joysticks at maximum so only users one and two can actually use theirs in the emulation.

Users 1 and 2 can choose any of the joysticks as their device types, user 3 can only choose the Sinclair Keyboard.

Buttons A, X and Y are mapped to the joystick's fire button, and button B is mapped to the UP directional button. Buttons L1 and R1 are mapped to RETURN and SPACE, respectively. The SELECT button brings up the embedded, on-screen keyboard which is useful if you only have controllers attached to your box.

There are some conflicts in the way the input devices interact because of the use of the physical keyboard keys as joystick buttons. For a good gaming experience, set the user device types as follows:

  • For joystick games: Set user 1 to a joystick type. Optionally, set user 2 to another joystick type (local cooperative games). Set user 3 to none. This way, you can use L1 as RETURN, R1 as SPACE, and SELECT to bring the embedded keyboard.
  • For keyboard games: Set users 1 and 2 to none, and user 3 to Sinclair Keyboard. You won't have any joystick and the embedded keyboard won't work, but the entire physical keyboard will be available for you to type in those text adventure commands.

If you set a joystick along with the keyboard, the joystick will work just fine except for the bindings to RETURN and SPACE, and the keyboard won't register the keys assigned to the Cursor joystick, or to the L1 and R1 buttons for all other joystick types.

Supported Formats

Fuse can load a number of different file formats. For now, fuse-libretro only loads tzx, tap, z80, rzx, scl, trd, and dsk files. This decision is somewhat arbitrary (it depends if I can find a file that I can be sure is not corrupted), so feel free to bug me to add other extensions. Please do so via issues here on GitHub.

Save States

Supported.

Setup

  1. Compile fuse-libretro with make -f Makefile.libretro
  2. Copy the resulting fuse_libretro.dll or fuse_libretro.so into the cores folder of your libretro frontend
  3. Profit!

It's not necessary to copy files to the system folder of your libretro frontend anymore! All supporting files are baked into the core, except ROMs for the more exotic Spectrum clones (see Emulated Machines.)

Versions

Versions that are being used to build and test fuse-libretro:

TODO

See the open issues.

Bugs

Many, probably. Open issues or send pull requests.

License

GNU GPLv3.0