git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit d90ecec085f0ad75dd976f7b1be757cc5ffb3885
parent f5092c00de3a2126abca69063f2ecab7c6a4e68b
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat,  7 Jan 2023 15:30:29 +0200

Oops

Diffstat:
MCocoa/Document.m6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -1134,8 +1134,10 @@ static bool is_path_writeable(const char *path) - (void)showWindows { - if (![_fileModificationTime isEqualToDate:[[NSFileManager defaultManager] attributesOfItemAtPath:self.fileName error:nil][NSFileModificationDate]]) { - [self reset:nil]; + if (GB_is_inited(&gb)) { + if (![_fileModificationTime isEqualToDate:[[NSFileManager defaultManager] attributesOfItemAtPath:self.fileName error:nil][NSFileModificationDate]]) { + [self reset:nil]; + } } [super showWindows]; }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.