Coder Social home page Coder Social logo

retrohack's Introduction

retrohack

A libretro frontend. Currently only works with Linux.

Dependencies

  • libasound2
  • libGL
  • libGLU
  • libglfw3
  • libX11
  • libXi
  • libXrandr
  • libXxf86vm
  • libXcursor
  • libXinerama
  • libXext

Installation

  1. Install stack
  2. git clone https://github.com/talanis85/retrohack.git
  3. cd retrohack && stack install

Command line

Examples:

  • Just load a core with a game: retrohack /path/to/core.so /path/to/rom

  • Also load a lua script: retrohack /path/to/core.so /path/to/rom script /path/to/script.lua

  • Also execute some lua commands at initialization: retrohack /path/to/core.so /path/to/rom script /path/to/script.lua "some.global = true"

Whatever you choose, you will still have to type run to start the emulator.

Usage

retrohack uses a REPL-style console interface. The following commands are available:

  • run

    Runs the game.

  • pause

    Pauses the game.

  • continue

    Continues a paused game.

  • info

    Shows information about the loaded core.

  • avinfo

    More information about the loaded core :)

  • exec /path/to/script

    Executes the given file line by line as if they were entered in the REPL.

  • peek <type> <segment> <address>

    Get the value at the given address. <type> is one of:

    i8, i16, i32 (signed integers), u8, u16, u32 (unsigned integers)

    <segment> is one of:

    sram, rtc, main, video, rom

    (rom is not actually supported, but it works with a patched version of snes9x)

  • poke <type> <segment> <address> <value>

    Set the value at the given address. See peek for arguments.

retrohack's People

Contributors

talanis85 avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.