Skip to content

Commit

Permalink
retroarch add options logging, change mupen to angry lion
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Mattiello <git@joemattiello.com>
  • Loading branch information
JoeMatt committed Dec 3, 2024
1 parent 3c0f7f3 commit 20852d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CoresRetro/RetroArch/PVRetroArchCore/Core/PVRetroArchCore.mm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#import <Foundation/Foundation.h>
#import <PVCoreObjCBridge/PVCoreObjCBridge.h>
#import <PVLogging/PVLoggingObjC.h>

/* RetroArch Includes */
#include <stdint.h>
Expand Down Expand Up @@ -61,6 +62,7 @@ - (instancetype)init {
self.extractArchive = false;
PVRetroArchCore.systemName = self.systemIdentifier;
PVRetroArchCore.coreClassName = self.coreIdentifier;
ILOG(@"PVRetroArchCore.coreClassName: %@, coreClassName: %@", PVRetroArchCore.systemName, PVRetroArchCore.coreClassName);
[self parseOptions];
CGRect bounds=[[UIScreen mainScreen] bounds];
_videoWidth = bounds.size.width;
Expand Down Expand Up @@ -124,7 +126,7 @@ -(void)optionUpdated:(NSNotification *)notification {
for (NSString* key in info.allKeys) {
NSString *value=[info valueForKey:key];
[self processOption:key value:value];
printf("Received Option key:%s value:%s\n",key.UTF8String, value.UTF8String);
ILOG(@"Received Option key:%s value:%s\n",key.UTF8String, value.UTF8String);
}
}
-(void)processOption:(NSString *)key value:(NSString*)value {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extension PVRetroArchCore: CoreOptional {
.init(title: "Angrylion", description: "Angrylion", value: 0),
.init(title: "GlideN64", description: "GlideN64", value: 1)
],
defaultValue: 1)
defaultValue: 0)
}
static var apple2MachineOption: CoreOption {
.enumeration(.init(title: "System Model",
Expand Down Expand Up @@ -149,6 +149,7 @@ extension PVRetroArchCore: CoreOptional {
var coreOptions: [CoreOption] = [gsOption]
var isDOS=false
coreOptions.append(retroArchControllerOption)
DLOG("Getting options for coreClassName: \(self.coreClassName) systemName:\(self.systemName)")
if (self.coreClassName.contains("mupen")) {
coreOptions.append(mupenRDPOption)
}
Expand Down Expand Up @@ -308,7 +309,7 @@ extension PVRetroArchCore: CoreOptional {
optionOverwrite = false
}
if (coreIdentifier.contains("mupen")) {
let rdpOpt = PVRetroArchCore.valueForOption(PVRetroArchCore.mupenRDPOption).asInt ?? 1
let rdpOpt = PVRetroArchCore.valueForOption(PVRetroArchCore.mupenRDPOption).asInt ?? 0
if (rdpOpt == 0) {
optionValues += "mupen64plus-rdp-plugin = \"angrylion\"\n"
} else {
Expand Down Expand Up @@ -420,7 +421,7 @@ extension PVRetroArchCoreCore: CoreActions {
menuToggle()
break;
default:
print("Unknown action: " + action.title)
WLOG("Unknown action: " + action.title)
}
}
}
Expand Down

0 comments on commit 20852d8

Please sign in to comment.