sup-dolphin-memory-lib/README.md
sup39 2527142f07 [v0.1.0] pack into one PyPI package
Complete all basic functions, including:
- find dolphin, init shared memory
- read/write raw bytes
- read/write struct
- read/write single value (uint32/16/8, int32/16/8, float)
2022-06-25 03:23:12 +09:00

14 lines
351 B
Markdown

# dolphin-memory-lib
A Python library for reading and writing the memory of an emulated game in Dolphin.
## Usage
```python
from dolphin.memorylib import Dolphin
if dolphin.hook() is None:
print('No game is running')
addr = 0x80000000
dolphin.write_uint32(addr, 39)
result = dolphin.read_uint32(0x80000000)
# assert result == 39
```