Skip to content

Commit

Permalink
Merge branch 'release/3.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeMatt committed Jan 16, 2025
2 parents afd0cba + 9735492 commit 5e605ff
Show file tree
Hide file tree
Showing 24 changed files with 566 additions and 75 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,5 @@ Cores/DuckStation/lib/
Cores/PPSSPP/lib/
build
/PVLookup/Sources/ShiraGame/Resources/shiragame.sqlite3

.sentryclirc
4 changes: 2 additions & 2 deletions Build.xcconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Configuration settings file format documentation can be found at:
// https://help.apple.com/xcode/#/dev745c5c974

MARKETING_VERSION = 3.0.1
CURRENT_PROJECT_VERSION = 2837
MARKETING_VERSION = 3.0.2
CURRENT_PROJECT_VERSION = 2838

GCC_PREPROCESSOR_DEFINITIONS = $(inherited) GLES_SILENCE_DEPRECATION=1 NONJAILBROKEN=1

Expand Down
2 changes: 1 addition & 1 deletion Cores/VirtualJaguar
10 changes: 8 additions & 2 deletions Cores/emuThree/PVEmuThreeCore/Core/PVEmuThreeCoreBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ - (void)setPauseEmulation:(BOOL)flag {
[super setPauseEmulation:flag];
if (flag)
[CitraWrapper.sharedInstance pauseEmulation];
else
else {
[self setOptionValues];
[CitraWrapper.sharedInstance resumeEmulation];
}
}

- (void)resetEmulation {
Expand Down Expand Up @@ -357,7 +359,11 @@ -(void)processOption:(NSString *)key value:(NSString*)value {
},
};
Process action=[actions objectForKey:key];
if (action)
if (action) {
action();
} else {
[self setOptionValues];
[CitraWrapper.sharedInstance setOptions:false];
}
}
@end
20 changes: 10 additions & 10 deletions Cores/emuThree/PVEmuThreeCore/Core/PVEmuThreeCoreOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import PVCoreBridge

static var resolutionOption: CoreOption {
.enumeration(.init(title: "Resolution Upscaling",
description: "(Requires Restart)",
requiresRestart: true),
description: nil,
requiresRestart: false),
values: [
.init(title: "1X", description: "1X", value: 1),
.init(title: "2X", description: "2X", value: 2),
Expand All @@ -32,9 +32,9 @@ import PVCoreBridge
}

static var cpuClockOption: CoreOption {
.enumeration(.init(title: "CPU Clock",
description: "(Requires Restart) Underclocking can increase performance but may cause the game to freeze. Overclocking may reduce in game lag but also might cause freezes",
requiresRestart: true),
.enumeration(.init(title: "CPU Clock Speed",
description: "Underclocking can increase performance but may cause the game to freeze. Overclocking may reduce in game lag but also might cause freezes",
requiresRestart: false),
values: [
.init(title: "10%", description: "10%", value: 10),
.init(title: "20%", description: "20%", value: 20),
Expand Down Expand Up @@ -65,15 +65,15 @@ import PVCoreBridge
.bool(.init(
title: "Enable Logging",
description: "May affect performance",
requiresRestart: true),
requiresRestart: false),
defaultValue: false)
}

static var enableNew3DSOption: CoreOption {
.bool(.init(
title: "Enable New 3DS",
description: nil,
requiresRestart: true),
requiresRestart: false),
defaultValue: true)
}

Expand All @@ -91,7 +91,7 @@ import PVCoreBridge
.bool(.init(
title: "Enable Async Shader Compilation",
description: nil,
requiresRestart: true),
requiresRestart: false),
defaultValue: false)
}

Expand Down Expand Up @@ -127,8 +127,8 @@ import PVCoreBridge
static var enableShaderAccurateMulOption: CoreOption {
.bool(.init(
title: "Enable Shader Accurate Mul",
description: nil,
requiresRestart: true),
description: "Some games require this to be enabled to render properly, but slightly reduces performance",
requiresRestart: false),
defaultValue: true)
}

Expand Down
2 changes: 1 addition & 1 deletion CoresRetro/RetroArch/PVRetroArch/Core.plist
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@
<key>PVProjectVersion</key>
<string>v0.258</string>
<key>PVAppStoreDisabled</key>
<true/>
<false/>
</dict>
<dict>
<key>PVCoreIdentifier</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ extension PVRetroArchCoreBridge: CoreOptional {
systemIdentifier.contains("nes") ||
systemIdentifier.contains("dreamcast") ||
systemIdentifier.contains("genesis") ||
systemIdentifier.contains("saturn") ||
// systemIdentifier.contains("saturn") ||
systemIdentifier.contains("3do") ||
systemIdentifier.contains("gb") ||
systemIdentifier.contains("segacd") ||
Expand Down
2 changes: 1 addition & 1 deletion Extensions/TopShelf/PVRecentGame+TopShelf.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extension PVRecentGame {
item.title = game.title
let imageURl = URL(string: game.customArtworkURL.isEmpty ? game.originalArtworkURL : game.customArtworkURL)
item.setImageURL(imageURl, forTraits: [.screenScale1x, .screenScale2x, .userInterfaceStyleDark, .userInterfaceStyleLight])
item.imageShape = game.system.imageType
item.imageShape = game.system?.imageType ?? .square
item.displayURL = displayURL
item.lastAccessedDate = lastPlayedDate

Expand Down
4 changes: 2 additions & 2 deletions PVCoreLoader/Sources/PVCoreLoader/Resources/systems.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@
<key>MD5</key>
<string>00dad01abdbf8ea9e79ad2fe11bdb182</string>
<key>Name</key>
<string>neogeo.zip|com.provenance.mame/neogeo.zip|hide</string>
<string>neogeo.zip</string>
<key>Size</key>
<integer>1859335</integer>
</dict>
Expand Down Expand Up @@ -1642,7 +1642,7 @@
<key>MD5</key>
<string>00dad01abdbf8ea9e79ad2fe11bdb182</string>
<key>Name</key>
<string>neogeo.zip|com.provenance.neogeo/neogeo.zip|hide</string>
<string>neogeo.zip</string>
<key>Size</key>
<integer>1859335</integer>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public extension PVEmulatorConfiguration {
}
}
//this calls refresh anyway
RomDatabase.reloadCache(force: true)
await RomDatabase.reloadCache(force: true)
#if DEBUG
printListOfSystems()
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ public extension RomDatabase {

/// Reload all caches
/// - Parameter force: force a reload even if cache sizes match
static func reloadCaches(force: Bool = false) {
Task {
static func reloadCaches(force: Bool = false) async {
// Task {
self.reloadSystemsCache(force: force)
self.reloadBIOSCache()
self.reloadCoresCache(force: force)
self.reloadGamesCache(force: force)
}
// }
}

/// Refreash Realm and reload caches
/// - Parameter force: force a reload even if cache sizes match
static func reloadCache(force: Bool = false) {
static func reloadCache(force: Bool = false) async {
VLOG("RomDatabase:reloadCache")
self.refresh()
self.reloadCaches(force: force)
await self.reloadCaches(force: force)
}

/// Reload BIOS cache
Expand Down Expand Up @@ -117,7 +117,7 @@ public extension RomDatabase {
static func addGamesCache(_ game:PVGame) {
Task {
if await RomDatabase.gamesCache == nil {
self.reloadCache()
await self.reloadCache()
}
_gamesCache = await addGameCache(game, cache: RomDatabase.gamesCache ?? [:])
}
Expand Down
Loading

0 comments on commit 5e605ff

Please sign in to comment.