JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ChallengeResourceManager Class Reference

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>

Inheritance diagram for ChallengeResourceManager:
Collaboration diagram for ChallengeResourceManager:

Instance Methods

(void) - loadResourceList
 Loads and deciphers the resource list from disk (or starts an empty one).
(void) - saveResourceList
 Enciphers and saves the resource list to disk with a random-nonce header.
(BOOL) - addPanelResourceInfo:
 Adds or replaces a panel resource descriptor, keyed by its item id.
(nullable NSData *) - getPanelResourceData:
 Loads and deciphers a panel's image data, validating its item-id header.
(void) - savePanelResourceData:info:
 Enciphers and saves a panel's image data with an item-id header.
(void) - deletePanelResourceData:
 Deletes a panel's stored image data.
(void) - setIgnoreSave:
 Marks a file URL as excluded from iCloud backup.

Class Methods

(instancetype) + sharedManager
 The shared instance, built once.

Properties

NSMutableArray * arrayResource
 The resource descriptors, each a dictionary keyed by item_id .

Detailed Description

Stores the list of scratch-panel resource descriptors and each panel's enciphered image data on disk, keyed by item id.

Method Documentation

◆ addPanelResourceInfo:

- (BOOL) addPanelResourceInfo: (nullable NSDictionary *) info

Adds or replaces a panel resource descriptor, keyed by its item id.

Parameters
infoThe 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
itemIDThe 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
infoThe 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
dataThe image data.
infoThe 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
urlThe file URL.
Ghidra address:
0x143a64

◆ sharedManager

+ (instancetype) sharedManager

The shared instance, built once.

Returns
The shared manager.
Ghidra address:
0x142b58
Ghidra address:
0x142b58
Ghidra address:
0x142b98

Property Documentation

◆ 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: