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

The application delegate for jubeat plus. More...

#include <JubeatAppDelegate.h>

Inheritance diagram for JubeatAppDelegate:
Collaboration diagram for JubeatAppDelegate:

Instance Methods

(void) - refreshUserAgent
 Rebuilds userAgent, and mirrors the app version into the user defaults on the way.
(void) - disableGameCenter
 Marks Game Center unusable for the rest of the session.
(void) - loginGameCenter
 Starts Game Center authentication, if it is available and not already done.
(void) - changeTheme:
 Selects the interface theme, persists it, and returns to the title screen.
(void) - setKnitColor:
 Hands a colour array to the knit-colour manager.
(void) - switchTitleEvent
 Switches the title screen to the current event's presentation.
(void) - enableCopiousMarkers
 Unlocks the copious marker set and reloads the markers.
(NSString *) - musicListKey
 The per-install identifier, persisted in the keychain.
(BOOL) - digitStringCheck:
 Whether a string is non-empty and consists only of decimal digits.
(void) - rewardEnable
 Latches bEnableReward on.
(NSString *) - getCurrentLicenseDate
 The build's licence date.
(nullable NSString *) - getCurrentLicenseMessage
 The localized use-policy message, or nil when the bundle has no translation for it.
(void) - dropChallengeOpenFlag
 Clears bChallengeOpen.
(void) - moveChallengeOpenFlag
 Promotes a pending challenge into challenge mode.
(void) - setChallengeMode:
 Sets bChallengeMode.
(void) - setChallengeMusic:diff:
 Selects the challenge's music and difficulty, and engages challenge mode.
(void) - setTotalAmount:
 Sets totalPurchaseAmount.
(NSString *) - getNotificationFilePath
 The on-disk path of the persisted notification queue, creating its directory if needed.
(void) - loadNotification
 Reads the persisted notification queue back into pushNotificationList.
(void) - saveNotification
 Writes pushNotificationList to disk, or deletes the file when the queue is empty.
(BOOL) - pushActiveCheck:
 Whether a scheduled fire time is still in the future.
(nullable NSDictionary *) - popNotification
 Removes queued notifications from the front until one has not expired, and returns it.
(BOOL) - application:didFinishLaunchingWithOptions:
 Classifies the device, restores preferences, builds the window, and starts every manager.
(BOOL) - application:handleOpenURL:
 Handles a jubeatplus:// URL, routing it to the store or to a content download.
(nullable NSMutableDictionary *) - apsDictionary:
 Flattens an APNs payload into the shape the notification queue stores.
(void) - application:didRegisterUserNotificationSettings:
 Proceeds to remote-notification registration once the user has answered the prompt.
(void) - application:didRegisterForRemoteNotificationsWithDeviceToken:
 Stores the APNs device token as a bare hexadecimal string.
(void) - application:didFailToRegisterForRemoteNotificationsWithError:
 Does nothing.
(void) - application:didReceiveLocalNotification:
 Queues a local notification for in-app display, or routes it if the user tapped it.
(void) - application:didReceiveRemoteNotification:
 The remote twin of -application:didReceiveLocalNotification:, plus a report back.
(void) - applicationDidEnterBackground:
 Schedules the coin-refill notification as the application leaves the foreground.
(void) - applicationWillResignActive:
 Does nothing.
(void) - applicationDidBecomeActive:
 Clears the icon badge and cancels every pending local notification.
(void) - applicationWillTerminate:
 Shuts the purchase manager down and flushes the score records.
(void) - applicationDidReceiveMemoryWarning:
 Does nothing.
(void) - resetDownLoadIndex
 Clears jcfDownloadID.
(void) - resetDownloadGenreID
 Clears storeGenreID.
(void) - setDownloadGenreID:
 Sets storeGenreID.
(void) - resetDownloadPackID
 Clears storePackID.
(void) - setDownloadPackID:
 Sets storePackID.
(void) - resetCampaignID
 Clears storeCampaignID.
(void) - setCampaignID:
 Sets storeCampaignID.
(void) - setNotificationPageURL:updateTime:
 Records the notification page endpoint and the timestamp that goes with it.
(void) - setRandomFlag:
 Sets isRandom.
(void) - setExtendFlag:
 Sets isExtend.
(void) - setHoldFlag:
 Sets isHold.
(void) - setSearchString:
 Sets searchString.
(void) - markerDownloadComplete
 Latches isMarkerLegal to YES.

Properties

JubeatAppDelegate * appDelegate
 The shared application's delegate.
NSString * deviceName
 The device model identifier, for example "iPhone9,3".
NSString * primDeviceName
 The device model identifier, by a second copy of the same routine.
NSString * appVersion
 The application version.
NSDictionary * clientInfo
 The client identification dictionary sent to the servers.
NSString * appLibraryDirectory
 The user Library directory.
NSString * appDocumentsDirectory
 The user Documents directory.
NSString * appCachesDirectory
 The user Caches directory.
RootViewController * rootViewCtrl
 The root view controller of the application.
NSString * userAgent
 The User-Agent string sent with the game's web requests.
JubeatDeviceType deviceType
 The device idiom and screen class this build has classified the device as.
NSString * deviceToken
 The APNs device token, retained as received.
BOOL isPad
 Whether this is an iPad.
BOOL isPhoneRetina
 Whether this is a retina iPhone.
BOOL is4inchAspect
 Whether the screen has the taller four-inch aspect ratio.
BOOL isPadRetina
 Whether this is a retina iPad.
BOOL gameCenterAvailable
 Whether Game Center is usable in this session.
NSString * gameCenterName
 The local player's Game Center alias, or nil when it cannot be had.
JubeatTheme currentTheme
 The currently-selected interface theme.
id markerList
 The installed marker set, as loaded from disk.
id jcfDownloadID
 The identifier of the jcf content download currently in progress.
id storeGenreID
 The genre selected in the store.
id storePackID
 The pack selected in the store.
id storeCampaignID
 The campaign selected in the store.
NSString * campaignImageName
 The banner image file name for the current campaign.
NSString * campaignImagePath
 The on-disk path of the current campaign's banner image.
id storeMissionText
 The mission text shown on the store screen.
id searchString
 The music-list search term currently in effect.
int totalPurchaseAmount
 The running total of in-app purchases.
BOOL isRandom
 Whether the random-note option is enabled.
BOOL isExtend
 Whether the extend option is enabled.
BOOL isHold
 Whether the hold option is enabled.
BOOL isMarkerLegal
 Whether the installed marker set is licensed for play.
BOOL isRectangleWave
 Whether the rectangle-wave sound option is enabled.
BOOL isMarkerDirRandom
 Whether marker direction is randomised.
BOOL bEnableAutoPlay
 Whether automatic play is enabled.
BOOL bEnableReward
 Whether the reward feature is enabled for this session.
BOOL isNagaCoraMode
 Whether the naga/cora collaboration mode is active.
BOOL isHinabitaMode
 Whether the hinabita collaboration mode is active.
BOOL bChallengeOpen
 Whether the challenge is open.
BOOL bChallengeMode
 Whether challenge mode is engaged.
unsigned int challengeMusicID
 The music identifier for the current challenge.
int challengeDifficulty
 The difficulty for the current challenge.
NSURL * notificationURL
 The URL of the in-game notification page.
id notificationTime
 The update timestamp that accompanies notificationURL.
NSMutableArray * pushNotificationList
 The queued push notifications, persisted to disk between launches.
NSDictionary * remotePushInfo
 The payload of the remote push that launched the application.
BOOL bSendPushID
 Whether the device token still needs to be sent to the servers.
int hasNewRecommendNum
 The number of unseen recommendation entries.
NSString * totalScoreLeaderboardCategory
 The Game Center leaderboard identifier for the total-score board.

Detailed Description

The application delegate for jubeat plus.

Method Documentation

◆ application:didFailToRegisterForRemoteNotificationsWithError:

- (void) application: (UIApplication *) application
didFailToRegisterForRemoteNotificationsWithError: (NSError *) error 

Does nothing.

Surprising but faithful: the compiled method at 0xa98c is a single ret. A failed registration is neither recorded nor reported, so deviceToken simply stays nil.

Parameters
applicationThe application reporting the failure. The binary ignores this.
errorThe registration failure. The binary ignores this.
Ghidra address:
0xa98c
Ghidra address:
0xa98c

◆ application:didFinishLaunchingWithOptions:

- (BOOL) application: (UIApplication *) application
didFinishLaunchingWithOptions: (nullable NSDictionary *) launchOptions 

Classifies the device, restores preferences, builds the window, and starts every manager.

The largest method in the class at 0xF24 bytes, and the one that reaches most of the application. It runs, in order: a discarded arc4random; the launch-options remote-notification route, which is a third copy of the scheme routing and ends by stashing the payload in remotePushInfo; the device classifier that fills in deviceType; the theme restore; the Game Center probe; the keychain identifier and User-Agent; three user-defaults repairs; the Core Data reset; the window and root controller; the purchase and store managers; the audio session; and finally notification registration. It always returns YES.

Several small oddities are reproduced rather than corrected and are listed in TYPES_PENDING.md: the discarded arc4random and systemVersion, the four unread NSError out-parameters, and the notification registration calls being made in the opposite order to Apple's.

Parameters
applicationThe application being launched.
launchOptionsThe launch options, whose remote-notification entry is routed by scheme.
Returns
Always YES.
Ghidra address:
0x933c

◆ application:didReceiveLocalNotification:

- (void) application: (UIApplication *) application
didReceiveLocalNotification: (UILocalNotification *) notification 

Queues a local notification for in-app display, or routes it if the user tapped it.

A notification with no userInfo is dropped. Otherwise the payload is flattened through -apsDictionary: and the application state decides which of two unrelated things happens.

In UIApplicationStateActive the system shows no banner, so the payload is appended to pushNotificationList, persisted, and handed to the root controller to present. Otherwise the notification was tapped, and the "url" entry is routed by scheme: jbtstore:// fills in storePackID or storeGenreID, jbtchallenge:// raises bChallengeOpen, and jbtgift:// fills in storeCampaignID.

This is the working twin of -application:handleOpenURL:. Both route the same three tokens, but this one reads them off NSURL.scheme, where they are, rather than off a path component.

Parameters
applicationThe application delivering the notification.
notificationThe local notification; dropped when it carries no userInfo .
Ghidra address:
0xac48
Ghidra address:
0xac48

◆ application:didReceiveRemoteNotification:

- (void) application: (UIApplication *) application
didReceiveRemoteNotification: (NSDictionary *) userInfo 

The remote twin of -application:didReceiveLocalNotification:, plus a report back.

Clears the badge, then runs the same two arms on the same applicationState test and with the same scheme routing. Three differences from the local variant, all verified rather than assumed:

  • There is no userInfo nil test at all. The remote payload is the argument itself, so the three sends the local variant makes to fetch it are absent.
  • The routing arms fall through rather than returning, converging on the report at 0xb4e4. Even a URL matching no scheme is reported.
  • -apsDictionary: is called before the split, so on the routing path the dictionary is built and released without ever being read.

The report is -responseRemoteNotification:pushInfo: with NO, meaning the notification arrived at a running app. -application:didFinishLaunchingWithOptions: passes YES for the cold-launch case at 0x9dfc.

Parameters
applicationThe application delivering the notification.
userInfoThe remote notification's payload.
Ghidra address:
0xb0c8
Ghidra address:
0xb0c8

◆ application:didRegisterForRemoteNotificationsWithDeviceToken:

- (void) application: (UIApplication *) application
didRegisterForRemoteNotificationsWithDeviceToken: (NSData *) deviceToken 

Stores the APNs device token as a bare hexadecimal string.

Takes -description of the NSData and strips the three literals "<", ">", and " " from it in that order. This is the pre-iOS-13 idiom for turning a token into hex; it depends on NSData.description's format and is reproduced as written.

Parameters
applicationThe application reporting the token.
deviceTokenThe APNs device token.
Ghidra address:
0xa8a4
Ghidra address:
0xa8a4

◆ application:didRegisterUserNotificationSettings:

- (void) application: (UIApplication *) application
didRegisterUserNotificationSettings: (UIUserNotificationSettings *) notificationSettings 

Proceeds to remote-notification registration once the user has answered the prompt.

The settings argument is ignored: the binary does not inspect which types were granted, so this registers even when the user allowed nothing.

Parameters
applicationThe application reporting the settings.
notificationSettingsThe settings the user granted. The binary ignores this.
Ghidra address:
0xa868
Ghidra address:
0xa868

◆ application:handleOpenURL:

- (BOOL) application: (UIApplication *) application
handleOpenURL: (NSURL *) url 

Handles a jubeatplus:// URL, routing it to the store or to a content download.

Always returns YES, on every path including the one where the scheme does not match, so the application never reports a URL as unhandled.

Two of its four routes are unreachable as compiled — see the implementation comment at the "jbtstore" arm.

Parameters
applicationThe application opening the URL.
urlThe jubeatplus:// URL to route.
Returns
Always YES, on every path.
Ghidra address:
0x9090
Ghidra address:
0x9090

◆ applicationDidBecomeActive:

- (void) applicationDidBecomeActive: (UIApplication *) application

Clears the icon badge and cancels every pending local notification.

Note that it messages UIApplication.sharedApplication twice rather than reusing the argument it was handed, which is ignored.

Parameters
applicationThe application becoming active. The binary ignores this.
Ghidra address:
0xb744
Ghidra address:
0xb744

◆ applicationDidEnterBackground:

- (void) applicationDidEnterBackground: (UIApplication *) application

Schedules the coin-refill notification as the application leaves the foreground.

The whole body is [[ChallengeStatus sharedStatus] createCoinNotification]; the UIApplication argument is ignored.

Parameters
applicationThe application entering the background. The binary ignores this.
Ghidra address:
0xb6f8
Ghidra address:
0xb6f8

◆ applicationDidReceiveMemoryWarning:

- (void) applicationDidReceiveMemoryWarning: (UIApplication *) application

Does nothing.

As with -applicationWillResignActive:, the compiled method is a single ret. The binary takes no action on a memory warning.

Parameters
applicationThe application reporting the warning. The binary ignores this.
Ghidra address:
0xb844
Ghidra address:
0xb844

◆ applicationWillResignActive:

- (void) applicationWillResignActive: (UIApplication *) application

Does nothing.

Surprising but faithful: the compiled method is a single ret. It is present only to satisfy the delegate protocol.

Parameters
applicationThe application resigning active. The binary ignores this.
Ghidra address:
0xb740
Ghidra address:
0xb740

◆ applicationWillTerminate:

- (void) applicationWillTerminate: (UIApplication *) application

Shuts the purchase manager down and flushes the score records.

Parameters
applicationThe application terminating.
Ghidra address:
0xb7c8
Ghidra address:
0xb7c8

◆ apsDictionary:

- (NSMutableDictionary *) apsDictionary: (NSDictionary *) userInfo

Flattens an APNs payload into the shape the notification queue stores.

Returns nil when the payload has no "aps" entry. Otherwise it copies, each only when present: "alert" from inside "aps" — stored under the different key "body" — plus "sound" from inside "aps", and "url", "expire", and "id" from the top level.

The "alert" to "body" rename is the only key that changes name; every other entry keeps its own.

Parameters
userInfoThe APNs payload.
Returns
The flattened payload, or nil when the payload has no "aps" entry.
Ghidra address:
0xa990
Ghidra address:
0xa990

◆ changeTheme:

- (void) changeTheme: (JubeatTheme) theme

Selects the interface theme, persists it, and returns to the title screen.

Writes _currentTheme, mirrors it into NSUserDefaults under the key "PrefTheme" as an NSNumber, synchronises, and then sends -changeThemeAndGoTitle to rootViewCtrl.

Parameters
themeThe theme to select.
Ghidra address:
0x8584
Ghidra address:
0x8584

◆ digitStringCheck:

- (BOOL) digitStringCheck: (nullable NSString *) string

Whether a string is non-empty and consists only of decimal digits.

Scans with an explicit character set built from the literal "0123456789" rather than using NSCharacterSet.decimalDigitCharacterSet, so the non-ASCII digits that predefined set would accept are rejected here.

Two details are easy to lose. The scanner comes from +[NSScanner localizedScannerWithString:], not the plain +scannerWithString:, so it carries the current locale. And its charactersToBeSkipped is explicitly set to nil, which disables the default whitespace skipping — without that a string of spaces and digits would pass.

Parameters
stringThe candidate string.
Returns
YES when the string is non-empty and all ASCII digits, NO otherwise.
Ghidra address:
0x8fa8

◆ disableGameCenter

- (void) disableGameCenter

Marks Game Center unusable for the rest of the session.

The whole body is a single store of zero into _gameCenterAvailable; nothing is torn down.

Ghidra address:
0x83bc
Ghidra address:
0x83bc

◆ dropChallengeOpenFlag

- (void) dropChallengeOpenFlag

Clears bChallengeOpen.

Ghidra address:
0x8ea0

◆ enableCopiousMarkers

- (void) enableCopiousMarkers

Unlocks the copious marker set and reloads the markers.

Writes YES to NSUserDefaults under "PrefCopiousUnlocked", synchronises, and then sends -reloadMarkers to rootViewCtrl. Unconditional: there is no check of the current value, so calling it again rewrites the same flag and reloads again.

Ghidra address:
0x871c
Ghidra address:
0x871c

◆ getCurrentLicenseDate

- (NSString *) getCurrentLicenseDate

The build's licence date.

Surprising but faithful: this is a hardcoded string literal, not a computed or stored date. The CFString at 0x2d4300 points at 19 bytes reading "2015-04-14 17:00:02", and the method returns it through objc_retainAutorelease with no formatting of any kind.

Returns
The hardcoded licence date string.
Ghidra address:
0x8dd4
Ghidra address:
0x8dd4

◆ getCurrentLicenseMessage

- (NSString *) getCurrentLicenseMessage

The localized use-policy message, or nil when the bundle has no translation for it.

Looks up the key "Use policy Message" with -localizedStringForKey:value:table:, passing an empty default and a nil table. When the lookup comes back equal to that empty default the method returns nil rather than the empty string, so callers can test for absence.

Returns
The localized use-policy message, or nil when the bundle has no translation.
Ghidra address:
0x8e00
Ghidra address:
0x8e00

◆ getNotificationFilePath

- (NSString *) getNotificationFilePath

The on-disk path of the persisted notification queue, creating its directory if needed.

Builds <caches>/notification, creates that directory with intermediate directories when it does not already exist, and returns <caches>/notification/noti.txt.

Returns
The notification queue's file path.
Ghidra address:
0xa530
Ghidra address:
0xa530

◆ loadNotification

- (void) loadNotification

Reads the persisted notification queue back into pushNotificationList.

A missing or unreadable file leaves the property untouched rather than clearing it.

Ghidra address:
0xa7a4
Ghidra address:
0xa7a4

◆ loginGameCenter

- (void) loginGameCenter

Starts Game Center authentication, if it is available and not already done.

Returns immediately when gameCenterAvailable is NO, and also when GKLocalPlayer.localPlayer is already authenticated — the handler is only installed on the not-yet-authenticated path.

Ghidra address:
0x83cc
Ghidra address:
0x83cc
Ghidra address:
0x848c

◆ markerDownloadComplete

- (void) markerDownloadComplete

Latches isMarkerLegal to YES.

Ghidra address:
0x8dc0

◆ moveChallengeOpenFlag

- (void) moveChallengeOpenFlag

Promotes a pending challenge into challenge mode.

When bChallengeOpen is set this sets bChallengeMode; either way it then clears bChallengeOpen, so the flag is consumed whether or not it fired.

Ghidra address:
0x8eb0
Ghidra address:
0x8eb0

◆ musicListKey

- (NSString *) musicListKey

The per-install identifier, persisted in the keychain.

The selector name is misleading and is the binary's own: this has nothing to do with any music list. It looks up a generic-password item keyed on the account "ApplicationUniqueID" and the bundle identifier as the service, and returns its stored UTF-8 payload. When the item is absent, or is present but its payload does not decode, it mints a fresh CFUUID, adds it to the keychain, and returns that.

Because the item is stored with kSecAttrAccessibleAfterFirstUnlock and never deleted, the value survives reinstalling the application, which is what makes +clientInfo's "uuid" entry a stable per-install identifier.

Returns
The per-install identifier, minted and stored on first use.
Ghidra address:
0x8814
Ghidra address:
0x8814

◆ popNotification

- (NSDictionary *) popNotification

Removes queued notifications from the front until one has not expired, and returns it.

Every entry it inspects is removed from the queue whether or not it is returned, so expired entries are discarded as a side effect of looking for a live one. Each entry's fire time is read from its "expire" key.

The queue is only persisted when the loop actually ran: an already-empty queue returns nil without calling -saveNotification, whereas both loop exits do call it.

Returns
The first notification that has not expired, or nil when none remains.
Ghidra address:
0xb594
Ghidra address:
0xb594

◆ pushActiveCheck:

- (BOOL) pushActiveCheck: (NSInteger) fireTime

Whether a scheduled fire time is still in the future.

Compares the current Unix time, truncated toward zero from -[NSDate timeIntervalSince1970], against fireTime and answers YES when the current time is less than or equal to it. Note the comparison is inclusive, so a notification due at exactly the current second still counts as active.

Parameters
fireTimeThe scheduled fire time, as a Unix timestamp.
Returns
YES while the current time is at or before fireTime , NO once it has passed.
Ghidra address:
0xb534
Ghidra address:
0xb534

◆ refreshUserAgent

- (void) refreshUserAgent

Rebuilds userAgent, and mirrors the app version into the user defaults on the way.

The User-Agent format is "%\@/%\@ (%\@; iOS %\@; %\@) [%\@]" with six arguments, in order: the literal "jubeatplus", +appVersion, +deviceName, the system version with every "." replaced by "_", the current locale identifier, and the editor identifier key (empty when none is provisioned).

The argument list was read from the stack stores at 0xa498-0xa4a8 rather than from the decompile, which shows a variadic call with only its first argument. Six specifiers against six slots.

Ghidra address:
0xa260
Ghidra address:
0xa260

◆ resetCampaignID

- (void) resetCampaignID

Clears storeCampaignID.

Ghidra address:
0x8ca8

◆ resetDownloadGenreID

- (void) resetDownloadGenreID

Clears storeGenreID.

Ghidra address:
0x8c50

◆ resetDownLoadIndex

- (void) resetDownLoadIndex

Clears jcfDownloadID.

Ghidra address:
0x8c38

◆ resetDownloadPackID

- (void) resetDownloadPackID

Clears storePackID.

Ghidra address:
0x8c7c

◆ rewardEnable

- (void) rewardEnable

Latches bEnableReward on.

As with -markerDownloadComplete, this only ever sets the flag; nothing clears it.

Ghidra address:
0x8f24
Ghidra address:
0x8f24

◆ saveNotification

- (void) saveNotification

Writes pushNotificationList to disk, or deletes the file when the queue is empty.

The archive is built before the emptiness test, so an empty queue archives an empty array and then throws the result away.

Ghidra address:
0xa66c
Ghidra address:
0xa66c

◆ setCampaignID:

- (void) setCampaignID: (nullable id) campaignID

Sets storeCampaignID.

Parameters
campaignIDThe campaign to open on the next store visit.
Ghidra address:
0x8cc0

◆ setChallengeMode:

- (void) setChallengeMode: (BOOL) challengeMode

Sets bChallengeMode.

Parameters
challengeModeWhether challenge mode is engaged.
Ghidra address:
0x8ed8
Ghidra address:
0x8ed8

◆ setChallengeMusic:diff:

- (void) setChallengeMusic: (unsigned int) musicID
diff: (int) difficulty 

Selects the challenge's music and difficulty, and engages challenge mode.

Note that it also sets bChallengeMode to YES as a side effect, which the selector name does not suggest.

Parameters
musicIDThe challenge tune's identifier.
difficultyThe challenge difficulty.
Ghidra address:
0x8ee8
Ghidra address:
0x8ee8

◆ setDownloadGenreID:

- (void) setDownloadGenreID: (nullable id) genreID

Sets storeGenreID.

Parameters
genreIDThe store genre to open on the next store visit.
Ghidra address:
0x8c68

◆ setDownloadPackID:

- (void) setDownloadPackID: (nullable id) packID

Sets storePackID.

Parameters
packIDThe store pack to open on the next store visit.
Ghidra address:
0x8c94

◆ setExtendFlag:

- (void) setExtendFlag: (BOOL) flag

Sets isExtend.

Parameters
flagWhether the extend filter is on.
Ghidra address:
0x8d8c
Ghidra address:
0x8d8c

◆ setHoldFlag:

- (void) setHoldFlag: (BOOL) flag

Sets isHold.

Parameters
flagWhether the hold filter is on.
Ghidra address:
0x8d9c
Ghidra address:
0x8d9c

◆ setKnitColor:

- (void) setKnitColor: (NSArray *) knitColor

Hands a colour array to the knit-colour manager.

Parameters
knitColorThe colours to install.
Ghidra address:
0x8f38
Ghidra address:
0x8f38

◆ setNotificationPageURL:updateTime:

- (void) setNotificationPageURL: (nullable NSString *) pageURL
updateTime: (nullable id) updateTime 

Records the notification page endpoint and the timestamp that goes with it.

A nil pageURL clears notificationURL rather than storing a URL built from nil.

Parameters
pageURLThe notification page's address, or nil to clear it.
updateTimeThe timestamp that goes with pageURL .
Ghidra address:
0x8cd4

◆ setRandomFlag:

- (void) setRandomFlag: (BOOL) flag

Sets isRandom.

Parameters
flagWhether random select is on.
Ghidra address:
0x8d7c
Ghidra address:
0x8d7c

◆ setSearchString:

- (void) setSearchString: (nullable id) searchString

Sets searchString.

Parameters
searchStringThe music-list search text.
Ghidra address:
0x8dac

◆ setTotalAmount:

- (void) setTotalAmount: (int) amount

Sets totalPurchaseAmount.

Parameters
amountThe running total the player has spent.
Ghidra address:
0x8f14
Ghidra address:
0x8f14

◆ switchTitleEvent

- (void) switchTitleEvent

Switches the title screen to the current event's presentation.

When isHinabitaMode is set it first tells the knit-colour manager to use colour type 4; the type is a bare immediate in the binary, not a named constant. It then sends -changeTitleTheme to rootViewCtrl unconditionally, so the non-hinabita path still refreshes the title.

Ghidra address:
0x868c
Ghidra address:
0x868c

Property Documentation

◆ appCachesDirectory

- (NSString *) appCachesDirectory
readnonatomicassign

The user Caches directory.

The directory constant is 13 (NSCachesDirectory).

Ghidra address:
0x7e00
Ghidra address:
0x7e00

◆ appDelegate

- (JubeatAppDelegate *) appDelegate
readnonatomicassign

The shared application's delegate.

The binary forwards -[UIApplication delegate] unchanged without a class check; the concrete type is stated here because that is what it is at runtime and what every caller relies on.

Ghidra address:
0x7cf4
Ghidra address:
0x7cf4

◆ appDocumentsDirectory

- (NSString *) appDocumentsDirectory
readnonatomicassign

The user Documents directory.

The directory constant is 9 (NSDocumentDirectory).

Ghidra address:
0x7da8
Ghidra address:
0x7da8

◆ appLibraryDirectory

- (NSString *) appLibraryDirectory
readnonatomicassign

The user Library directory.

NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) followed by -lastObject. The directory constant 5 and the domain mask 1 were read from the immediate mov instructions at 0x7d5c-0x7d64.

Ghidra address:
0x7d50
Ghidra address:
0x7d50

◆ appVersion

- (NSString *) appVersion
readnonatomicassign

The application version.

Surprising but faithful: this is not read from the bundle's Info.plist. The binary builds it from a hardcoded C string literal at 0x27dc66, whose bytes are "3.9.11", with -initWithCString:encoding: at UTF-8 (encoding 4).

Ghidra address:
0x7e58
Ghidra address:
0x7e58

◆ bChallengeMode

- (BOOL) bChallengeMode
readnonatomicassign

Whether challenge mode is engaged.

Written by -setChallengeMode:.

Ghidra address:
0xba10 (getter)

◆ bChallengeOpen

- (BOOL) bChallengeOpen
readnonatomicassign

Whether the challenge is open.

Ghidra address:
0xba00 (getter)

◆ bEnableAutoPlay

- (BOOL) bEnableAutoPlay
readwritenonatomicassign

Whether automatic play is enabled.

Ghidra address:
0xb948 (getter)
Ghidra address:
0xb958 (setter)

◆ bEnableReward

- (BOOL) bEnableReward
readnonatomicassign

Whether the reward feature is enabled for this session.

Ghidra address:
0xbac0 (getter)

◆ bSendPushID

- (BOOL) bSendPushID
readwritenonatomicassign

Whether the device token still needs to be sent to the servers.

Ghidra address:
0xbad0 (getter)
Ghidra address:
0xbae0 (setter)

◆ campaignImageName

- (NSString*) campaignImageName
readwritenonatomicstrong

The banner image file name for the current campaign.

Ghidra address:
0xb9b8 (getter)
Ghidra address:
0xb9c8 (setter)

◆ campaignImagePath

- (NSString*) campaignImagePath
readwritenonatomicstrong

The on-disk path of the current campaign's banner image.

Ghidra address:
0xb9dc (getter)
Ghidra address:
0xb9ec (setter)

◆ challengeDifficulty

- (int) challengeDifficulty
readnonatomicassign

The difficulty for the current challenge.

A 4-byte load, so int.

Ghidra address:
0xba30 (getter)

◆ challengeMusicID

- (unsigned int) challengeMusicID
readnonatomicassign

The music identifier for the current challenge.

A 4-byte unsigned load, so unsigned int.

Ghidra address:
0xba20 (getter)

◆ clientInfo

- (NSDictionary *) clientInfo
readnonatomicassign

The client identification dictionary sent to the servers.

Five entries, built with +dictionaryWithObjects:forKeys:count: and a count of exactly 5 — the slot count is read from the stack setup at 0x8100-0x81d4 rather than from the decompile, which renders this kind of constructor with only its first argument:

"uuid" the MD5 hex digest of musicListKey with "STORE" appended "version" +appVersion "device" +deviceName "os" UIDevice.currentDevice.systemVersion "locale" NSLocale.currentLocale.localeIdentifier

The "uuid" entry is the MD5 of musicListKey with "STORE" appended. Despite that selector name, musicListKey is not derived from any music list: it is a per-install identifier persisted in the keychain, minted with CFUUIDCreate the first time it is missing. So the "uuid" value is a stable per-install identifier after all, though it reaches that state by a route neither key name suggests.

Ghidra address:
0x805c
Ghidra address:
0x805c

◆ currentTheme

- (JubeatTheme) currentTheme
readnonatomicassign

The currently-selected interface theme.

Backed by _currentTheme (0x34960c). The getter is ldr w0 — a 4-byte load — so the ivar is a 32-bit integer and is spelled unsigned int rather than NSInteger. The signedness is not a guess: -changeTheme: boxes the same value with +[NSNumber numberWithUnsignedInt:] at 0x85e4 before writing it to the defaults.

Ghidra address:
0xb888 (getter)

◆ deviceName

- (NSString *) deviceName
readnonatomicassign

The device model identifier, for example "iPhone9,3".

Reads hw.machine through sysctlbyname and wraps it in an NSString; when the sysctl reports a zero length it falls back to UIDevice.currentDevice.model.

Ghidra address:
0x7f78
Ghidra address:
0x7f78

◆ deviceToken

- (NSString*) deviceToken
readnonatomicassign

The APNs device token, retained as received.

Backed by _deviceToken (0x349670). An NSString, not the NSData the callback receives: -application:didRegisterForRemoteNotificationsWithDeviceToken: stores the token's -description with the angle brackets and spaces stripped out.

Ghidra address:
0xbaf0 (getter)

◆ deviceType

- (JubeatDeviceType) deviceType
readnonatomicassign

The device idiom and screen class this build has classified the device as.

Backed by _deviceType (0x349600), an 8-byte integer rather than an object despite the getter loading a full word.

Ghidra address:
0xb878 (getter)

◆ gameCenterAvailable

- (BOOL) gameCenterAvailable
readnonatomicassign

Whether Game Center is usable in this session.

Backed by _gameCenterAvailable (0x349604). The getter is a ldrb, so the ivar is one byte and the type is BOOL rather than a wider integer.

Ghidra address:
0xb868 (getter)

◆ gameCenterName

- (NSString *) gameCenterName
readnonatomicassign

The local player's Game Center alias, or nil when it cannot be had.

Computed rather than stored. It returns nil on two separate paths: when gameCenterAvailable is NO, and when GKLocalPlayer.localPlayer is not authenticated.

Ghidra address:
0x832c
Ghidra address:
0x832c

◆ hasNewRecommendNum

- (int) hasNewRecommendNum
readwritenonatomicassign

The number of unseen recommendation entries.

A 4-byte load, so int.

Ghidra address:
0xba60 (getter)
Ghidra address:
0xba70 (setter)

◆ is4inchAspect

- (BOOL) is4inchAspect
readnonatomicassign

Whether the screen has the taller four-inch aspect ratio.

Computed as (deviceType - 2) < 4 unsigned, so it is true for device types 2 to 5.

Ghidra address:
0x82f8
Ghidra address:
0x82f8

◆ isExtend

- (BOOL) isExtend
readnonatomicassign

Whether the extend option is enabled.

Written by -setExtendFlag:.

Ghidra address:
0xb8e8 (getter)

◆ isHinabitaMode

- (BOOL) isHinabitaMode
readwritenonatomicassign

Whether the hinabita collaboration mode is active.

Ghidra address:
0xbaa0 (getter)
Ghidra address:
0xbab0 (setter)

◆ isHold

- (BOOL) isHold
readnonatomicassign

Whether the hold option is enabled.

Written by -setHoldFlag:.

Ghidra address:
0xb8f8 (getter)

◆ isMarkerDirRandom

- (BOOL) isMarkerDirRandom
readwritenonatomicassign

Whether marker direction is randomised.

Ghidra address:
0xb928 (getter)
Ghidra address:
0xb938 (setter)

◆ isMarkerLegal

- (BOOL) isMarkerLegal
readnonatomicassign

Whether the installed marker set is licensed for play.

Latched to YES by -markerDownloadComplete and never cleared by any compiled setter.

Ghidra address:
0xb8d8 (getter)

◆ isNagaCoraMode

- (BOOL) isNagaCoraMode
readwritenonatomicassign

Whether the naga/cora collaboration mode is active.

Ghidra address:
0xba80 (getter)
Ghidra address:
0xba90 (setter)

◆ isPad

- (BOOL) isPad
readnonatomicassign

Whether this is an iPad.

Computed as (deviceType | 1) == 7, so it is true for device types 6 and 7. The orr with 1 folds the pair into a single comparison.

Ghidra address:
0x82c0
Ghidra address:
0x82c0

◆ isPadRetina

- (BOOL) isPadRetina
readnonatomicassign

Whether this is a retina iPad.

Computed as deviceType == 7 exactly, which is the narrower half of isPad.

Ghidra address:
0x8314
Ghidra address:
0x8314

◆ isPhoneRetina

- (BOOL) isPhoneRetina
readnonatomicassign

Whether this is a retina iPhone.

Computed as (deviceType - 1) < 5 unsigned, so it is true for device types 1 to 5.

Ghidra address:
0x82dc
Ghidra address:
0x82dc

◆ isRandom

- (BOOL) isRandom
readnonatomicassign

Whether the random-note option is enabled.

Written by -setRandomFlag:.

Ghidra address:
0xb8c8 (getter)

◆ isRectangleWave

- (BOOL) isRectangleWave
readwritenonatomicassign

Whether the rectangle-wave sound option is enabled.

Ghidra address:
0xb908 (getter)
Ghidra address:
0xb918 (setter)

◆ jcfDownloadID

- (id) jcfDownloadID
readnonatomicassign

The identifier of the jcf content download currently in progress.

Cleared to nil by -resetDownLoadIndex.

Ghidra address:
0xb898 (getter)

◆ markerList

- (id) markerList
readnonatomicassign

The installed marker set, as loaded from disk.

Ghidra address:
0xb9a8 (getter)

◆ notificationTime

- (id) notificationTime
readnonatomicassign

The update timestamp that accompanies notificationURL.

Retained as handed in by -setNotificationPageURL:updateTime:. Its concrete class is not yet proven; the two callers, -downloaderFinished: at 0x1f078 and -pushClose: at 0x183090, belong to classes that have not been reconstructed.

Ghidra address:
0xb8b8 (getter)

◆ notificationURL

- (NSURL*) notificationURL
readnonatomicassign

The URL of the in-game notification page.

Proven to be an NSURL: -setNotificationPageURL:updateTime: builds it with +[NSURL URLWithString:] at 0x8d1c, whose class pointer at 0x3480b0 resolves to _OBJC_CLASS_$_NSURL.

Ghidra address:
0xb8a8 (getter)

◆ primDeviceName

- (NSString *) primDeviceName
readnonatomicassign

The device model identifier, by a second copy of the same routine.

Surprising but faithful: this is byte-for-byte the same algorithm as +deviceName — the same hw.machine sysctl, the same UIDevice.currentDevice.model fallback on a zero length, and the same UTF-8 -initWithCString:encoding:. The compiler emitted two complete copies rather than one calling the other, so both are reconstructed rather than collapsed into one.

Ghidra address:
0x7e94
Ghidra address:
0x7e94

◆ pushNotificationList

- (NSMutableArray*) pushNotificationList
readnonatomicassign

The queued push notifications, persisted to disk between launches.

Proven mutable: -loadNotification stores the result of sending -mutableCopy to the unarchived object at 0xa828, so the ivar holds a mutable array rather than an immutable one.

Ghidra address:
0xba50 (getter)

◆ remotePushInfo

- (NSDictionary*) remotePushInfo
readnonatomicassign

The payload of the remote push that launched the application.

Written in exactly one place: -application:didFinishLaunchingWithOptions: stores a -copy of launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey] at 0x96b0, which is why the type is NSDictionary. It stays nil on an ordinary launch, and the launch handler uses its being non-nil as the signal to report the notification back to the servers.

Ghidra address:
0xbb24 (getter)

◆ rootViewCtrl

- (RootViewController*) rootViewCtrl
readnonatomicassign

The root view controller of the application.

Backed by _rootViewCtrl (ivar offset global 0x349608). The class is proven rather than assumed: -changeTheme: sends -changeThemeAndGoTitle to this object, and the only implementation of that selector in the binary is -[RootViewController changeThemeAndGoTitle] at 0x1a8a68.

Ghidra address:
0xb848 (getter)

◆ searchString

- (id) searchString
readnonatomicassign

The music-list search term currently in effect.

Ghidra address:
0xb998 (getter)

◆ storeCampaignID

- (id) storeCampaignID
readnonatomicassign

The campaign selected in the store.

Backed by _storeCampaignID (0x349620).

Ghidra address:
0xb988 (getter)

◆ storeGenreID

- (id) storeGenreID
readnonatomicassign

The genre selected in the store.

Backed by _storeGenreID (0x349618).

Ghidra address:
0xb968 (getter)

◆ storeMissionText

- (id) storeMissionText
readwritenonatomicstrong

The mission text shown on the store screen.

Ghidra address:
0xbb00 (getter)
Ghidra address:
0xbb10 (setter)

◆ storePackID

- (id) storePackID
readnonatomicassign

The pack selected in the store.

Backed by _storePackID (0x34961c).

Ghidra address:
0xb978 (getter)

◆ totalPurchaseAmount

- (int) totalPurchaseAmount
readnonatomicassign

The running total of in-app purchases.

A 4-byte load, so int rather than NSInteger.

Ghidra address:
0xba40 (getter)

◆ totalScoreLeaderboardCategory

- (NSString *) totalScoreLeaderboardCategory
readnonatomicassign

The Game Center leaderboard identifier for the total-score board.

Two literals selected by isPad: "jubeat.totalscore" on iPad and "jubeat.totalscorephone" elsewhere. The binary picks between them with a csel rather than a branch.

Ghidra address:
0x8550
Ghidra address:
0x8550

◆ userAgent

- (NSString*) userAgent
readnonatomicassign

The User-Agent string sent with the game's web requests.

Backed by _userAgent (0x34966c). Proven to be an NSString by -refreshUserAgent at 0xa260, which assigns the result of +[NSString stringWithFormat:] straight into the ivar.

Ghidra address:
0xb858 (getter)

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