-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
255 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
Application/Dopamine/UI/Settings/PSLists/DOPSJetsamListItemsController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// DOPSExploitListItemsControllerViewController.h | ||
// Dopamine | ||
// | ||
// Created by Lars Fröder on 29.04.24. | ||
// | ||
|
||
#import "DOPSListItemsController.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface DOPSJetsamListItemsController : DOPSListItemsController | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
28 changes: 28 additions & 0 deletions
28
Application/Dopamine/UI/Settings/PSLists/DOPSJetsamListItemsController.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// DOPSExploitListItemsControllerViewController.m | ||
// Dopamine | ||
// | ||
// Created by Lars Fröder on 29.04.24. | ||
// | ||
|
||
#import "DOPSJetsamListItemsController.h" | ||
#import "DOUIManager.h" | ||
|
||
@interface DOPSJetsamListItemsController () | ||
|
||
@end | ||
|
||
@implementation DOPSJetsamListItemsController | ||
|
||
- (NSArray *)specifiers | ||
{ | ||
if (!_specifiers) { | ||
_specifiers = [super specifiers]; | ||
PSSpecifier *jetsamDescriptionSpecifier = [PSSpecifier emptyGroupSpecifier]; | ||
[jetsamDescriptionSpecifier setProperty:DOLocalizedString(@"Jetsam_Description") forKey:@"footerText"]; | ||
[(NSMutableArray *)_specifiers addObject:jetsamDescriptionSpecifier]; | ||
} | ||
return _specifiers; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include "jbsettings.h" | ||
#include <libjailbreak/info.h> | ||
|
||
int jbsettings_get(const char *key, xpc_object_t *valueOut) | ||
{ | ||
if (!strcmp(key, "markAppsAsDebugged")) { | ||
*valueOut = xpc_bool_create(jbsetting(markAppsAsDebugged)); | ||
return 0; | ||
} | ||
else if (!strcmp(key, "jetsamMultiplier")) { | ||
*valueOut = xpc_double_create(jbsetting(jetsamMultiplier)); | ||
return 0; | ||
} | ||
return -1; | ||
} | ||
|
||
int jbsettings_set(const char *key, xpc_object_t value) | ||
{ | ||
if (!strcmp(key, "markAppsAsDebugged") && xpc_get_type(value) == XPC_TYPE_BOOL) { | ||
gSystemInfo.jailbreakSettings.markAppsAsDebugged = xpc_bool_get_value(value); | ||
return 0; | ||
} | ||
else if (!strcmp(key, "jetsamMultiplier") && xpc_get_type(value) == XPC_TYPE_DOUBLE) { | ||
gSystemInfo.jailbreakSettings.jetsamMultiplier = xpc_double_get_value(value); | ||
return 0; | ||
} | ||
return -1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include <xpc/xpc.h> | ||
|
||
int jbsettings_get(const char *key, xpc_object_t *valueOut); | ||
int jbsettings_set(const char *key, xpc_object_t value); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.