Git Product home page Git Product logo

dolphin.memory.access's Introduction

Dolphin Memory Access



A handy tool for accessing emulator memory from C#
NuGet

About This Project

This project is a simple, easy to use .NET Standard library that allows you to access the memory of Dolphin emulator on Windows. I wrote this mainly for personal use.

Usage

Simply instantiate the class Dolphin, passing an instance of System.Diagnostics.Process belonging to Dolphin emulator.

_process = Process.GetProcessesByName("dolphin")[0];
_dolphin = new Dolphin(_process);

Then use the API of the Dolphin, you can either get an address to the start of emulated memory.

// Operation fails if no game is currently running.
if (_dolphin.TryGetBaseAddress(out IntPtr initialBaseAddress)) 
{
	// Do things with memory.
}

Or more conveniently, get the real address of a variable in emulated memory:

// Operation fails if no game is currently running.
// 0x805EF958: Current stage ID in NTSC US Shadow The Hedgehog (GUPE8P)
if (_dolphin.TryGetAddress(0x805EF958, out IntPtr variableAddress)) 
{
	// Do things with memory.
}

PS. Just remember that emulated memory is Big Endian as opposed to our Little Endian x86/x64 chips. Consider using another library such as Reloaded.Memory's Endian class to flip the endian of variables.

Other Notes

This tiny 9KB library is barebones and does does not handle events such as process exit for you.

It's the user's responsibility to listen to these events, otherwise you'll run into exceptions if e.g. you try to read Dolphin Memory after Dolphin closes.

dolphin.memory.access's People

Contributors

kapdap avatar sewer56 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.