From cbecf6f2b72720cbed9389056dadc0470aa619f4 Mon Sep 17 00:00:00 2001 From: Joseph Mattello Date: Tue, 15 Feb 2022 20:32:23 -0500 Subject: [PATCH] genesis options try to fix scale being finicky Signed-off-by: Joseph Mattello --- .../PVGenesis/Genesis/GenesisCore/GenesisOptions.swift | 3 ++- .../Genesis-Plus-GX/PVGenesis/Genesis/PVGenesisEmulatorCore.m | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cores/Genesis-Plus-GX/PVGenesis/Genesis/GenesisCore/GenesisOptions.swift b/Cores/Genesis-Plus-GX/PVGenesis/Genesis/GenesisCore/GenesisOptions.swift index 29a99edf24..e78ab467d2 100644 --- a/Cores/Genesis-Plus-GX/PVGenesis/Genesis/GenesisCore/GenesisOptions.swift +++ b/Cores/Genesis-Plus-GX/PVGenesis/Genesis/GenesisCore/GenesisOptions.swift @@ -45,7 +45,8 @@ extension PVGenesisEmulatorCore: CoreOptional { .init(title: "Vertical", description: "Vertical borders only", value: 1), .init(title: "Horizontal", description: "horizontal borders only", value: 2), .init(title: "Full", description: "Full borders", value: 3), - ]) + ], + defaultValue: 0) static var allOptions: [CoreOption] = [overscan, gg_extra] } diff --git a/Cores/Genesis-Plus-GX/PVGenesis/Genesis/PVGenesisEmulatorCore.m b/Cores/Genesis-Plus-GX/PVGenesis/Genesis/PVGenesisEmulatorCore.m index a2721a6277..df9aaba3ca 100644 --- a/Cores/Genesis-Plus-GX/PVGenesis/Genesis/PVGenesisEmulatorCore.m +++ b/Cores/Genesis-Plus-GX/PVGenesis/Genesis/PVGenesisEmulatorCore.m @@ -517,6 +517,8 @@ - (BOOL)loadFileAtPath:(NSString*)path error:(NSError**)error if (retro_load_game(&info)) { + [self readOptions]; + if ([self.batterySavesPath length]) { [[NSFileManager defaultManager] createDirectoryAtPath:self.batterySavesPath withIntermediateDirectories:YES attributes:nil error:NULL]; @@ -536,7 +538,6 @@ - (BOOL)loadFileAtPath:(NSString*)path error:(NSError**)error //#warning "No clue what this does, JM" // if (system_hw == SYSTEM_MCD) // bram_load(); - [self readOptions]; [self executeFrame];