1 Introduction lsnes is SNES rerecording emulator based on bsnes core. 2 Dependencies 1. bsnes libsnes (for bsnes SNES core) (a) v084-v087 (v084 or v085 for delayreset support) (b) accuracy or compatiblity core with debugger enabled. (c) Patched version (using included 7 patches) 2. gambatte (for gambatte core) (a) SVN r320 (b) Patched with included patches 3. Zlib 4. boost_iostreams 5. boost_filesystem 6. boost_thread (if native std::thread is not available) 7. libsdl (SDL only) 8. sdlmain (SDL only, part of SDL) 9. boost_conversion (this is header-only library) 10. libswscale (wxwidgets graphics only) 11. Portaudio (portaudio sound only) 12. Lua (if Lua support is needed). • Version 5.1.X or 5.2X. 13. G++ 4.6 (bsnes doesn't seem to like 4.7, status for gambatte is unknown). 3 Building • Copy bsnes sources (the bsnes subdirectory) to subdirectory 'bsnes' (for bsnes core). • Copy gambatte sources to subdirectory 'gambatte' (for gambatte core). • Patch the bsnes sources with included patches (directory 'bsnes-patches/', bsnes core) • Patch the gambatte sources with included patches (directory 'gambatte-patches/', gambatte core) • Edit options.build (or copy of that file) • Run make (passing 'OPTIONS=' if using something else than options.build). 4 Command line options 4.1 ROM options 4.1.1 --rom= (lsnes/SDL, lsnes-avidump) Load as ROM. 4.2 Session options 4.2.1 --pause Start paused 4.2.2 (lsnes/SDL, lsnes-avidump, movieinfo) Load as movie or savestate file. All other session options are ignored. 4.2.3 --port1= (lsnes/SDL, bsnes core only) Set type of port1. Valid values are: • none: No device connected • gamepad: One gamepad (the default) • multitap: Four gamepads (warning: makes most games refuse to start) • mouse: Mouse. 4.2.4 --port2= (lsnes/SDL, bsnes core only) Set type of port2. Valid values are: • none: No device connected (the default) • gamepad: One gamepad • multitap: Four gamepads. • mouse: Mouse • superscope: Super Scope • justifier: One justifier • justifiers: Two justifiers 4.2.5 --gamename= (lsnes/SDL) Set the name of game to . Default is blank. 4.2.6 --author= (lsnes/SDL) Add author with full name of (no nickname). 4.2.7 --author=| (lsnes/SDL) Add author with nickname of (no full name). 4.2.8 --author=| (lsnes/SDL) Add author with full name of and nickname of . 4.2.9 --rtc-second= (lsnes/SDL) Set RTC second (0 is 1st January 1970 00:00:00Z). Default is 1,000,000,000. 4.2.10 --rtc-subsecond= (lsnes/SDL) Set RTC subsecond. Range is 0-. Unit is CPU cycle. Default is 0. 4.2.11 --anchor-savestate= (lsnes/SDL) Set the anchor savestate file. 4.3 Misc. options: 4.3.1 --run= (lsnes/SDL) After running main RC file, run this file. If multiple are specified, these execute in order specified. 4.4 dump options (lsnes-dumpavi only) 4.4.1 --dumper= Set the dumper to use (required). Use 'list' for listing of known dumpers. 4.4.2 --mode= Set the mode to use (required for dumpers with multiple modes, forbidden otherwise). Use 'list' for known modes. 4.4.3 --prefix= Set dump prefix. Default is “avidump”. 4.4.4 --option== Set option to value . 4.4.5 --length= Set number of frames to dump. Mandatory. 4.4.6 --lua=