Holds the list of music available in the store.
More...
#include <StoreMusicListManager.h>
Holds the list of music available in the store.
◆ addMusic:
Adds or updates a music entry.
- Parameters
-
- 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
-
| oldInfo | The existing info. |
| newInfo | The 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
-
- 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
-
| musicID | The tune. |
| extendID | The 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
-
| musicID | The tune. |
| holdFlag | The hold flag. |
| extendFlag | The extend flag. |
- Ghidra address:
- 0xd64a4
- Ghidra address:
- 0xd64a4
◆ hasMusic:
| - (BOOL) hasMusic: |
|
(int) | musicID |
|
Whether a tune is in the catalogue at all.
- Parameters
-
- Returns
- YES when the catalogue lists it.
- Ghidra address:
- 0xd3b1c
- Ghidra address:
- 0xd3b1c
◆ 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
-
- 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
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
Saves the store's music list.
- Ghidra address:
- 0xd489c
◆ 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
The shared instance.
- Ghidra address:
- 0xd395c
- Ghidra address:
- 0xd399c
The documentation for this class was generated from the following files: