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

A table view controller listing difficulty levels for filtering a music playlist. More...

#include <MusicPlaylistLevelSelector.h>

Inheritance diagram for MusicPlaylistLevelSelector:
Collaboration diagram for MusicPlaylistLevelSelector:

Instance Methods

(instancetype) - init
 Sets the navigation title, installs a Cancel back button, and builds the level counts.
(void) - loadView
 Loads the view by chaining up to the superclass.
(void) - createNumberArray
 Builds numArray : the number of charts found at each of the ten levels.
(nullable NSDictionary *) - getTuneInfo:
 Decodes a tune archive at path into its info dictionary.

Properties

id< MusicPlaylistLevelSelectorDelegate > delegate
 The object told which level the user picks.

Detailed Description

A table view controller listing difficulty levels for filtering a music playlist.

Method Documentation

◆ createNumberArray

- (void) createNumberArray

Builds numArray : the number of charts found at each of the ten levels.

Scans the built-in tunes and the purchased tunes, decoding each archive's info dictionary into a TuneInfo , then tallies, for every level one through ten, how many distinct charts (basic, advanced, and extreme, counting a repeated level only once) sit at that level. The purchased scan caches each tune's info keyed by identifier alongside its file size and modification date, so an unchanged file is not decoded again.

Ghidra address:
0x1c2e94
Ghidra address:
0x1c2e94

◆ getTuneInfo:

- (nullable NSDictionary *) getTuneInfo: (nullable NSString *) path

Decodes a tune archive at path into its info dictionary.

Opens the archive skipping its sixteen-byte digest trailer and tries the entries newest-first: an infov3 entry is deciphered with the tune-info key and stripped of its four-byte header, while an infov2 or info entry is deciphered with the BGM key and used whole.

Parameters
pathThe archive's path.
Returns
The info dictionary, or nil if the archive cannot be opened or holds no info entry.
Ghidra address:
0x1c42d8

◆ init

- (instancetype) init
Initial value:
{
NSMutableArray *numArray

Sets the navigation title, installs a Cancel back button, and builds the level counts.

Returns
The initialised controller.
Ghidra address:
0x1c2d04
Ghidra address:
0x1c2d04

◆ loadView

- (void) loadView

Loads the view by chaining up to the superclass.

Ghidra address:
0x1c2e5c

Property Documentation

◆ delegate

- (id<MusicPlaylistLevelSelectorDelegate>) delegate
readwritenonatomicweak

The object told which level the user picks.

Held weakly.


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