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

Holds the list of music available in the store. More...

#include <StoreMusicListManager.h>

Inheritance diagram for StoreMusicListManager:
Collaboration diagram for StoreMusicListManager:

Instance Methods

(instancetype) - init
 Builds the manager and its builtin-music list.
(NSArray *) - builtinMusic
 The builtin-music list.
(NSArray *) - purchasedMusic
 The purchased-music list (arrayMusic).
(NSArray *) - extendMusic
 The extend-music list.
(NSDictionary *) - extendMusicDictionary
 The extend-music dictionary.
(NSDictionary *) - originalMusicDictionary
 The original-music dictionary.
(NSArray *) - listMusicID
 The combined list of music IDs (builtin + purchased).
(nullable NSString *) - linkURLForID:
 The store's own purchase link for a tune, which overrides whatever the tune list carries.
(nullable NSDictionary *) - extendInfoForID:
 The extend-pack record for a tune, if it belongs to one.
(BOOL) - hasMusic:
 Whether a tune is in the catalogue at all.
(void) - loadMusicList
 Loads the store's music list.
(void) - saveMusicList
 Saves the store's music list.
(BOOL) - checkChangedMusic:info:
 Checks if a music entry changed and updates it.
(BOOL) - addMusic:
 Adds or updates a music entry.
(void) - extendMusicInfo:holdFlg:extendFlg:
 Updates hold/extend flags for a tune.
(void) - extendMusicID:extendMID:
 Sets the extend ID for a tune.

Properties

StoreMusicListManager * sharedManager
 The shared instance.
NSArray * arrayBuiltinMusic
 The builtin-music list.
NSMutableArray * arrayMusic
 The store's music list.
NSMutableArray * arrayExtendMusic
 The extend-music list.
NSMutableDictionary * dictExtendMusic
 The extend-music dictionary.
NSMutableDictionary * dictOriginalMusic
 The original-music dictionary.

Detailed Description

Holds the list of music available in the store.

Method Documentation

◆ addMusic:

- (BOOL) addMusic: (nullable StoreMusicInfo *) musicInfo

Adds or updates a music entry.

Parameters
musicInfoThe music info.
Returns
YES if added/updated.
Ghidra address:
0xd5bb8

◆ builtinMusic

- (NSArray *) builtinMusic

The builtin-music list.

Returns
The array of builtin IDs.
Ghidra address:
0xd3e98
Ghidra address:
0xd3e98

◆ checkChangedMusic:info:

- (BOOL) checkChangedMusic: (NSMutableDictionary *) oldInfo
info: (nullable StoreMusicInfo *) newInfo 

Checks if a music entry changed and updates it.

Parameters
oldInfoThe existing info.
newInfoThe new info.
Returns
YES if changed.
Ghidra address:
0xd546c

◆ extendInfoForID:

- (NSDictionary *) extendInfoForID: (unsigned int) tuneID

The extend-pack record for a tune, if it belongs to one.

Searches arrayMusic for ID == tuneID and returns the extend info.

Parameters
tuneIDThe tune.
Returns
The record, or nil.
Ghidra address:
0xd425c
Ghidra address:
0xd425c

◆ extendMusic

- (NSArray *) extendMusic

The extend-music list.

Returns
The array of extend music dicts.
Ghidra address:
0xd3eb0
Ghidra address:
0xd3eb0

◆ extendMusicDictionary

- (NSDictionary *) extendMusicDictionary

The extend-music dictionary.

Returns
The dict of extend music.
Ghidra address:
0xd3ebc
Ghidra address:
0xd3ebc

◆ extendMusicID:extendMID:

- (void) extendMusicID: (unsigned int) musicID
extendMID: (unsigned int) extendID 

Sets the extend ID for a tune.

Parameters
musicIDThe tune.
extendIDThe extend ID.
Ghidra address:
0xd683c
Ghidra address:
0xd683c

◆ extendMusicInfo:holdFlg:extendFlg:

- (void) extendMusicInfo: (unsigned int) musicID
holdFlg: (unsigned int) holdFlag
extendFlg: (unsigned int) extendFlag 

Updates hold/extend flags for a tune.

Parameters
musicIDThe tune.
holdFlagThe hold flag.
extendFlagThe extend flag.
Ghidra address:
0xd64a4
Ghidra address:
0xd64a4

◆ hasMusic:

- (BOOL) hasMusic: (int) musicID

Whether a tune is in the catalogue at all.

Parameters
musicIDThe tune.
Returns
YES when the catalogue lists it.
Ghidra address:
0xd3b1c
Ghidra address:
0xd3b1c

◆ init

- (instancetype) init

Builds the manager and its builtin-music list.

Returns
The initialised manager.
Ghidra address:
0xd39dc
Ghidra address:
0xd39dc

◆ linkURLForID:

- (NSString *) linkURLForID: (unsigned int) tuneID

The store's own purchase link for a tune, which overrides whatever the tune list carries.

Searches arrayMusic for ID == tuneID.

Parameters
tuneIDThe tune.
Returns
The link, or nil when the store has none.
Ghidra address:
0xd40c0
Ghidra address:
0xd40c0

◆ listMusicID

- (NSArray *) listMusicID

The combined list of music IDs (builtin + purchased).

Returns
The array of IDs.
Ghidra address:
0xd3ed4
Ghidra address:
0xd3ed4

◆ loadMusicList

- (void) loadMusicList

Loads the store's music list.

Decrypts mulist and splits into arrayMusic and dicts.

Ghidra address:
0xd4bc0
Ghidra address:
0xd4bc0

◆ originalMusicDictionary

- (NSDictionary *) originalMusicDictionary

The original-music dictionary.

Returns
The dict of original music.
Ghidra address:
0xd3ec8
Ghidra address:
0xd3ec8

◆ purchasedMusic

- (NSArray *) purchasedMusic

The purchased-music list (arrayMusic).

Returns
The array of purchased music dicts.
Ghidra address:
0xd3ea4
Ghidra address:
0xd3ea4

◆ saveMusicList

- (void) saveMusicList

Saves the store's music list.

Ghidra address:
0xd489c

Property Documentation

◆ arrayBuiltinMusic

- (NSArray*) arrayBuiltinMusic
readwritenonatomicstrong

The builtin-music list.

Ghidra address:
0xd6b38 (getter)
Ghidra address:
0xd6b48 (setter)

◆ arrayExtendMusic

- (NSMutableArray*) arrayExtendMusic
readwritenonatomicstrong

The extend-music list.

Ghidra address:
0xd6b14 (getter)
Ghidra address:
0xd6b24 (setter)

◆ arrayMusic

- (NSMutableArray*) arrayMusic
readwritenonatomicstrong

The store's music list.

Ghidra address:
0xd6af0 (getter)
Ghidra address:
0xd6b00 (setter)

◆ dictExtendMusic

- (NSMutableDictionary*) dictExtendMusic
readwritenonatomicstrong

The extend-music dictionary.

Ghidra address:
0xd6b5c (getter)
Ghidra address:
0xd6b6c (setter)

◆ dictOriginalMusic

- (NSMutableDictionary*) dictOriginalMusic
readwritenonatomicstrong

The original-music dictionary.

Ghidra address:
0xd6b80 (getter)
Ghidra address:
0xd6b90 (setter)

◆ sharedManager

- (StoreMusicListManager *) sharedManager
readnonatomicassign

The shared instance.

Ghidra address:
0xd395c
Ghidra address:
0xd399c

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