Stores the list of scratch-panel resource descriptors and each panel's enciphered image data on disk, keyed by item id.
More...
#include <ChallengeResourceManager.h>
|
| NSMutableArray * | arrayResource |
| | The resource descriptors, each a dictionary keyed by item_id .
|
Stores the list of scratch-panel resource descriptors and each panel's enciphered image data on disk, keyed by item id.
◆ addPanelResourceInfo:
| - (BOOL) addPanelResourceInfo: |
|
(nullable NSDictionary *) | info |
|
Adds or replaces a panel resource descriptor, keyed by its item id.
- Parameters
-
| info | The descriptor to add. |
- Returns
NO when an identical descriptor is already stored, otherwise YES .
- Ghidra address:
- 0x14310c
◆ deletePanelResourceData:
| - (void) deletePanelResourceData: |
|
(int) | itemID |
|
Deletes a panel's stored image data.
- Parameters
-
| itemID | The panel's item id. |
- Ghidra address:
- 0x1439ec
- Ghidra address:
- 0x1439ec
◆ getPanelResourceData:
| - (nullable NSData *) getPanelResourceData: |
|
(nullable NSDictionary *) | info |
|
Loads and deciphers a panel's image data, validating its item-id header.
- Parameters
-
| info | The descriptor whose item_id names the panel. |
- Returns
- The image data, or nil when missing or mismatched (a mismatch also deletes the file).
- Ghidra address:
- 0x143608
◆ loadResourceList
| - (void) loadResourceList |
|
|
|
Loads and deciphers the resource list from disk (or starts an empty one).
- Ghidra address:
- 0x142c10
◆ savePanelResourceData:info:
| - (void) savePanelResourceData: |
|
(nullable NSData *) | data |
| info: |
|
(nullable NSDictionary *) | info |
Enciphers and saves a panel's image data with an item-id header.
- Parameters
-
| data | The image data. |
| info | The descriptor whose item_id names the panel. |
- Ghidra address:
- 0x1437d0
◆ saveResourceList
| - (void) saveResourceList |
|
|
|
Enciphers and saves the resource list to disk with a random-nonce header.
- Ghidra address:
- 0x142f30
◆ setIgnoreSave:
| - (void) setIgnoreSave: |
|
(nullable NSURL *) | url |
|
Marks a file URL as excluded from iCloud backup.
- Parameters
-
- Ghidra address:
- 0x143a64
◆ sharedManager
| + (instancetype) sharedManager |
|
|
|
The shared instance, built once.
- Returns
- The shared manager.
- Ghidra address:
- 0x142b58
- Ghidra address:
- 0x142b58
- Ghidra address:
- 0x142b98
◆ arrayResource
| - (NSMutableArray*) arrayResource |
|
readwritenonatomicstrong |
The resource descriptors, each a dictionary keyed by item_id .
- Ghidra address:
- 0x143b00 (getter), 0x143b10 (setter)
The documentation for this class was generated from the following files: