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

Runs a list of store download tasks one after another, verifying each pack's trailing MD5 digest, saving it, unpacking it, and registering its tune before advancing. More...

#include <StoreDownloadManager.h>

Inheritance diagram for StoreDownloadManager:
Collaboration diagram for StoreDownloadManager:

Instance Methods

(nullable NSDictionary *) - getTuneInfoFromUnzip:
 Decodes and deserialises the tune-info property list held in an unpacked archive.
(instancetype) - initWithTasks:delegate:
 Builds the manager for a task list and a delegate.
(void) - start
 Starts downloading the first task.
(void) - cancel
 Cancels the in-flight download.

Properties

unsigned int currentIndex
 The index of the task currently downloading.
unsigned int numTasks
 The number of tasks.
float currentProgress
 The current task's download progress, 0…1.
float overallProgress
 The progress across all tasks, 0…1.

Detailed Description

Runs a list of store download tasks one after another, verifying each pack's trailing MD5 digest, saving it, unpacking it, and registering its tune before advancing.

Method Documentation

◆ cancel

- (void) cancel

Cancels the in-flight download.

Ghidra address:
0xd7f5c

◆ getTuneInfoFromUnzip:

- (nullable NSDictionary *) getTuneInfoFromUnzip: (nullable KUnzip *) unzip

Decodes and deserialises the tune-info property list held in an unpacked archive.

Tries the infov3 , infov2 , then info entries; infov3 is deciphered with the tune-info key and has a four-byte header stripped, while the older entries are deciphered with the BGM key.

Parameters
unzipThe opened archive.
Returns
The tune-info dictionary, or nil.
Ghidra address:
0xd79bc

◆ initWithTasks:delegate:

- (instancetype) initWithTasks: (nullable NSArray *) tasks
delegate: (nullable id< StoreDownloadManagerDelegate >) delegate 

Builds the manager for a task list and a delegate.

Parameters
tasksThe download tasks, each a StoreDownloadTask .
delegateThe delegate told about progress; held weakly.
Returns
The initialised manager, or nil when tasks is nil.
Ghidra address:
0xd7c04

◆ start

- (void) start

Starts downloading the first task.

Ghidra address:
0xd7db0

Property Documentation

◆ currentIndex

- (unsigned int) currentIndex
readwritenonatomicassign

The index of the task currently downloading.

Ghidra address:
0xd8764 (getter)

◆ currentProgress

- (float) currentProgress
readnonatomicassign

The current task's download progress, 0…1.

Ghidra address:
0xd7d08 (getter)
Ghidra address:
0xd7d08

◆ numTasks

- (unsigned int) numTasks
readnonatomicassign

The number of tasks.

Ghidra address:
0xd7d88 (getter)
Ghidra address:
0xd7d88

◆ overallProgress

- (float) overallProgress
readnonatomicassign

The progress across all tasks, 0…1.

Ghidra address:
0xd7d20 (getter)
Ghidra address:
0xd7d20

The documentation for this class was generated from the following files: