- Introduced CaptureMode enum for selecting between CARenderServer and IOMobileFramebuffer. - Updated FrameUpdater and ScreenDumpVNC to handle new capture mode logic. - Implemented aspect ratio calculations and adjustments in ScreenDumpVNC. - Added toggleCaptureMode method to switch between capture modes via keyboard input. - Enhanced initialization of FrameUpdater to accommodate new parameters.
15 lines
444 B
Objective-C
15 lines
444 B
Objective-C
#import "utils.h"
|
|
|
|
NSDictionary* getPrefsForAppId(NSString *appID) {
|
|
NSDictionary* defaults = nil;
|
|
CFArrayRef keyList = CFPreferencesCopyKeyList((CFStringRef)appID, CFSTR("mobile"), kCFPreferencesAnyHost);
|
|
if (keyList) {
|
|
defaults = CFBridgingRelease(CFPreferencesCopyMultiple(keyList, (CFStringRef)appID, CFSTR("mobile"), kCFPreferencesAnyHost)) ? : @{};
|
|
CFRelease(keyList);
|
|
}
|
|
return defaults;
|
|
}
|
|
|
|
void exitProcess() {
|
|
exit(0);
|
|
} |