Fever SOS (Cave, 1998) - native recompilation + RetroFront frontend 1.1
=========================================================================

The game's 68000 program is statically recompiled to native code (34,754 instructions, 99.7% translated
natively; the rest run through the bundled Musashi core). The Cave 68000 board (Dangun Feveron hardware: two 038
tilemaps, 013 sprite chip, YMZ280B, 93C46 EEPROM) is reimplemented in C. The RetroFront frontend adds menus,
display/CRT options, save states, rewind, input recording, controller mapping and gadgets.

The ROM is not included. You need your own feversos.zip: the MAME 'feversos' romset (Fever SOS, World
98/09/25). It is a parent set, so no other zip is needed. The program ROMs are checked by CRC; a different
version is refused with a clear message.

FIRST START
-----------
The program looks for feversos.zip in these places:
  - a path given on the command line
  - the location you picked last time
  - next to the program (or next to the .AppImage), and its roms/ folder
  - Downloads, Downloads/feversos, roms, Emulation/roms/arcade, Emulation/roms/mame, Emulation/roms/fbneo

If it isn't found, a file browser opens. Pick the zip with the controller, keyboard or mouse, or drag it onto the
window. The location is remembered. To change it later, use Main Menu > ROM Selection.

WINDOWS 10/11
-------------
Unzip the folder anywhere and run feversos.exe. Everything is built in, so there are no DLLs to install.

STEAM DECK / LINUX
------------------
1. In Desktop Mode, copy FeverSOS-RetroFront-x86_64.AppImage somewhere (for example ~/Games). Leave
   feversos.zip in ~/Downloads, or put it next to the AppImage.
2. Right-click the AppImage > Properties > Permissions > Is executable
   (or run: chmod +x FeverSOS-RetroFront-x86_64.AppImage).
3. Steam > Add a Non-Steam Game > select the AppImage. In Gaming Mode it starts fullscreen. In the game's
   controller settings, choose the "Gamepad" layout. The menus are laid out for the Deck's 1280x800 screen.
It's a native Linux build, so Proton isn't needed. If FUSE is unavailable, extract it with --appimage-extract, or
use the tar.gz build, which needs the system libSDL2 (SteamOS has it).

DEFAULT CONTROLS (change them in Controller Settings; presets are included)
----------------------------------------------------------------------------
                    Keyboard            Controller / Steam Deck
Move                Arrow keys          D-pad / left stick
Button A (shot)     Z                   A
Button B (bomb)     X                   B
Button C            C                   X
Start / Coin        1 / 5               Menu (Start) / View (Select)
Player 2            WASD, J K L, 2, 6   second controller
Pause menu          Esc                 View + Menu (Select + Start), configurable
Service menu        F2 (hold)           R3
Quick save / load   F5 / F8             bind in Controller Settings > Frontend Hotkeys
Fast-forward        Tab (hold)
Rewind              Backspace (hold)    enable it in Gameplay Settings
Screenshot          F12
Fullscreen          F11
In menus: arrows / D-pad move, Enter / Z / A select, Esc / B back, Del / C / X delete a save or recording,
Q / E or LB / RB change page. The mouse works too.
Tip: just after a coin is inserted, the title screen may ignore Start for a few seconds while the logo animates.

MAIN MENU
---------
Start Game, Continue (your last session), Load State, ROM Selection, Display, Audio, Controller and Gameplay
Settings, Gadgets, Extras, About, Exit.

SAVE STATES
-----------
- 8 slots plus a quick slot, each with a thumbnail, date and play time. Overwriting asks first.
- Continue: your session is saved when you return to the menu or quit. You can turn this off in Gameplay Settings.
- What a state holds: the whole machine (68000 registers, main RAM, sprite RAM, tilemap VRAM, palette, video
  registers, IRQ and timing, YMZ280B channels, EEPROM chip state), taken between frames.
- Each state records the game, the program ROM's CRC and the state format. A save from another ROM revision or an
  incompatible build is refused before anything changes, and so is a damaged file. You get a message saying why.
- States are kept separate from the game's own EEPROM (high scores and operator settings).

INPUT RECORDINGS
----------------
- Pause menu > Start Input Recording saves a snapshot, then records every input.
- Stop it from the pause menu. A recording also stops when you load a state, restart or leave.
- Play recordings back from Extras > Input Recordings. The replay is exact because the core is deterministic.
  Open the menu at any time to take over.
- Rewind is disabled while you record or play back.

DATA FOLDER (settings, saves, recordings, EEPROM, screenshots)
-------------------------------------------------------------
  Windows:    %APPDATA%\RetroFront\feversos\
  Linux/Deck: ~/.local/share/RetroFront/feversos/
Nothing is written inside the AppImage.

Advanced: profiles/feversos.json next to the program sets the defaults and control presets. Add your own
themes as themes/*.json. Developers: see docs/ARCHITECTURE.md in the source archive.
