Giter Site home page Giter Site logo

hoosmalhoos / pcsx-hdbg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cbhacks/pcsx-hdbg

0.0 0.0 0.0 8.44 MB

PCSX-based hack debugger

Home Page: https://www.cbhacks.com/tools/pcsx-hdbg/

License: GNU General Public License v3.0

Shell 0.10% C++ 0.01% C 85.25% Lua 5.33% CSS 0.07% Makefile 0.25% HTML 8.71% CMake 0.16% Roff 0.13%

pcsx-hdbg's Introduction

PCSX-HDBG

PCSX-HDBG is a fork of PCSX-r providing enhanced debugging and hacking capability.

License

This software is made available under the terms of the GNU General Public License, version 3 or later.

See the AUTHORS and COPYING files for more details.

Some other software may be included with source and binary distributions of this software:

  • Lua 5.3
  • Nuklear
  • SDL 2.0 (Windows binary releases only)
  • zlib (Windows binary releases only)

In Windows binary releases, some of these libraries are statically linked into the main executable.

Building

This software is designed to be built using CMake, version 3.7 or later.

[pcsx-hdbg]$ mkdir build
[pcsx-hdbg]$ cd build
[pcsx-hdbg/build]$ cmake ..
[pcsx-hdbg/build]$ make
[pcsx-hdbg/build]$ ./pcsx-hdbg

Binary releases for Windows are built under a MinGW cross-compilation environment, using a script in the tools directory.

Controls

By default, the game is presented with a single analog controller. The controller buttons are bound to the following keys by default:

Key Button
C select
l3
r3
V start
Up up
Right right
Down down
Left left
E l2
T r2
W l1
R r1
D triangle
X circle
Z x
S square

These controls may be changed in the config.lua file, like so:

keymap["Left Shift"] = "circle"
keymap["Space"] = "x"

Key names are taken from https://wiki.libsdl.org/SDL_Keycode, while button names are from the table above. Both key and button names are case-sensitive.

By default, the first available joystick or gamepad input device is also used to provide input for the analog controller. This should be an SDL2 Game Controller-compatible controller (such as an XInput-compatible one on Windows). The selected controller may be changed by setting the joyid option in the config file, or disabled completely by setting it to nil.

Scripting

Scripting is available using Lua 5.3. After emulator initialization but before the CPU starts executing instructions, the script.lua file is executed.

See docs/scripting.md for details on the available API's and changes from the default Lua environment.

The script filename is configurable under the config key scriptfile. If set to nil (or explicitly unset), the script is read from standard input.

Configuration

Configuration options may be set in config.lua or in command line arguments as key-value pairs. For example:

pcsx-hdbg keymap.Y=select keymap.U=start scriptfile=/path/to/other/file.lua

Other options available:

Option Values Default
gamefile game.bin
region ntsc, pal ntsc
cdrspeed 1
scale 1

BIOS

The emulator includes an HLE (High Level Emulation) BIOS, which emulates some functionality of the console's BIOS ROM. This is compatible with some games (Crash 2), but not others (Crash 3: Warped, CTR). For these, you may place an appropriate 512K BIOS ROM file into the application directory under the name bios.dat. If this file is not found, the HLE BIOS will be enabled in its place.

pcsx-hdbg's People

Contributors

ughman avatar edgbla avatar isage avatar 24kwakahana avatar maddthesane avatar mystro256 avatar weimzh 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.