SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 1ab690ba18627ed6d6d71a0c5a2b40917ded92bd parent c3d83eae228c300178ba6eefb223b304346d04b0 Author: Lior Halphon <LIJI32@gmail.com> Date: Sat, 23 Nov 2024 15:47:06 +0200 Dead code Diffstat:
| M | Cocoa/Document.h | 2 | -- |
| M | Cocoa/Document.m | 12 | ------------ |
2 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/Cocoa/Document.h b/Cocoa/Document.h @@ -83,8 +83,6 @@ enum model { + (NSImage *) imageFromData:(NSData *)data width:(NSUInteger) width height:(NSUInteger) height scale:(double) scale; -- (uint8_t) readMemory:(uint16_t) addr; -- (void) writeMemory:(uint16_t) addr value:(uint8_t)value; - (void) performAtomicBlock: (void (^)())block; - (void) connectLinkCable:(NSMenuItem *)sender; - (int)loadStateFile:(const char *)path noErrorOnNotFound:(bool)noErrorOnFileNotFound; diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -1784,18 +1784,6 @@ enum GBWindowResizeAction [self log:log withAttributes:0]; } -- (uint8_t) readMemory:(uint16_t)addr -{ - while (!GB_is_inited(&_gb)); - return GB_safe_read_memory(&_gb, addr); -} - -- (void) writeMemory:(uint16_t)addr value:(uint8_t)value -{ - while (!GB_is_inited(&_gb)); - GB_write_memory(&_gb, addr, value); -} - - (void)performAtomicBlock: (void (^)())block { while (!GB_is_inited(&_gb));
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.