JubeatPlus 3.9.11
Loading...
Searching...
No Matches
TweetResourceManager.h
Go to the documentation of this file.
1
14
15#import <Foundation/Foundation.h>
16
17@class KUnzip;
18
19NS_ASSUME_NONNULL_BEGIN
20
24@interface TweetResourceManager : NSObject
25
31+ (instancetype)sharedManager;
32
42+ (NSString *)getAppendResourcePath;
43
50+ (NSString *)getFrameDirectoryPath:(NSString *)frameName;
51
58+ (nullable NSString *)getFrameFilePath:(NSString *)frameName;
59
70+ (BOOL)checkResourceName:(NSData *)data dirName:(NSString *)dirName;
71
80+ (BOOL)checkMD5:(nullable NSData *)data;
81
92+ (nullable KUnzip *)getResourceData:(NSString *)frameName;
93
102+ (BOOL)checkResourceData;
103
109+ (void)removeResourceData:(NSString *)frameName;
110
121
132+ (BOOL)checkEnableSelecteFrame:(nullable NSString *)frameName;
133
139- (nullable NSArray<NSDictionary *> *)getResourceList;
140
147
153- (void)setInstallApplicationNum:(int)installApplicationNum;
154
155@end
156
157NS_ASSUME_NONNULL_END
158
159// code: language=Objective-C
160// kate: hl Objective-C;
161// vim: set ft=objc :
Reads named entries out of one packed archive.
Definition KUnzip.h:22
Owns the frame-background catalogue and the enciphered archives that back each frame.
Definition TweetResourceManager.h:25
NSString * getAppendResourcePath()
The path of the append-data directory, creating it and its parents on demand.
Definition TweetResourceManager.m:147
BOOL moveResourceDataInDoc()
Copies each bundled background-frame archive into the append-data layout.
Definition TweetResourceManager.m:299
instancetype sharedManager()
The shared instance, built once.
Definition TweetResourceManager.m:64
int getInstallApplicationNum()
The cached install-application count, seeded from the reward store at init.
Definition TweetResourceManager.m:92
nullable NSArray< NSDictionary * > * getResourceList()
The frame-background catalogue, each entry a descriptor dictionary.
Definition TweetResourceManager.m:87
BOOL checkResourceData()
Verifies every catalogued background frame's archive, deleting any that fails.
Definition TweetResourceManager.m:258