forked from higan-emu/higan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- all: Makefile improvements (obj and out paths are no longer hard- coded) - all: renamed Screen::Region<String> to Screen::Overscan<Boolean> - lucia: implemented bsnes' multiple-mappings per input system - lucia: implemented memory editor and export tool - Super Famicom: added memory editing support - PC Engine: added overscan setting to the dot-based renderer (256 -> 272 width)
- Loading branch information
byuu
committed
Mar 27, 2020
1 parent
ea6c7e4
commit 2eb629a
Showing
82 changed files
with
851 additions
and
524 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
struct Memory : Object { | ||
DeclareClass(Memory, "Memory") | ||
|
||
Memory(string name = {}) : Object(name) { | ||
} | ||
|
||
inline auto size() const -> uint { return _size; } | ||
inline auto read(uint32 address) const -> uint8 { if(_read) return _read(address); return 0; } | ||
inline auto write(uint32 address, uint8 data) const -> void { if(_write) return _write(address, data); } | ||
|
||
auto setSize(uint size) -> void { _size = size; } | ||
auto setRead(function<uint8 (uint32)> read) -> void { _read = read; } | ||
auto setWrite(function<void (uint32, uint8)> write) -> void { _write = write; } | ||
|
||
auto serialize(string& output, string depth) -> void override { | ||
Object::serialize(output, depth); | ||
} | ||
|
||
auto unserialize(Markup::Node node) -> void override { | ||
Object::unserialize(node); | ||
} | ||
|
||
protected: | ||
uint _size = 0; | ||
function<uint8 (uint32)> _read; | ||
function<void (uint32, uint8)> _write; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.