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

The launch splash screen and its logo animation. More...

#include <LogoViewController.h>

Inheritance diagram for LogoViewController:
Collaboration diagram for LogoViewController:

Instance Methods

(instancetype) - init
 Builds the controller.
(void) - loadView
 Builds the view hierarchy by hand rather than from a nib.
(void) - fireAnimation
 Runs one step of the logo animation and schedules the next.
(void) - start
 Resets the splash to its opening frame and starts the animation.
(void) - end:
 Tears the splash down and hands control back to the root controller.
(void) - handleTap:
 Skips ahead when the screen is tapped.
(void) - viewDidUnload
 Drops the views and cancels the downloads that are still in flight.
(BOOL) - shouldAutorotateToInterfaceOrientation:
 Reports that only the two portrait orientations are supported.
(UIInterfaceOrientationMask) - supportedInterfaceOrientations
 The orientations the splash allows.
(BOOL) - shouldAutorotate
 Whether the splash rotates at all.
(void) - downloaderFinished:
 Called when a download finishes.
(void) - downloaderError:
 Called when a download fails.
(void) - removeCampaignImage
 Empties the campaign image cache.
(nullable NSString *) - getCampaignImageDirPath
 The directory the campaign image is cached in, creating it if absent.
(nullable NSString *) - getCampaignImagePath:
 The on-disk path for one campaign image.
(BOOL) - checkCampaignImage:
 Whether a campaign image is already cached.
Instance Methods inherited from <DownloaderDelegate>
(void) - downloaderProceed:
 Sent periodically as data arrives, and once more on completion.
(void) - downloaderFinished:
 Sent when the request completes.
(void) - downloaderError:
 Sent when the request fails.

Detailed Description

The launch splash screen and its logo animation.

Method Documentation

◆ checkCampaignImage:

- (BOOL) checkCampaignImage: (nullable NSString *) name

Whether a campaign image is already cached.

A miss empties the whole cache directory as a side effect, so the cache is all-or-nothing.

Parameters
nameThe image's name.
Returns
YES when the file is present.
Ghidra address:
0x8400c

◆ downloaderError:

- (void) downloaderError: (nullable Downloader *) downloader

Called when a download fails.

Forgets the downloader, but only for two of the three; a failed event request is left in place.

Parameters
downloaderThe downloader that failed.
Ghidra address:
0x83c90

◆ downloaderFinished:

- (void) downloaderFinished: (nullable Downloader *) downloader

Called when a download finishes.

Handles all three downloaders. The knit-colour response also names the campaign banner, which is either already cached or fetched by a fourth request; the banner is written to disk enciphered. The event response can switch the app into hinabita or NagaCora mode.

Parameters
downloaderThe downloader that finished.
Ghidra address:
0x83598

◆ end:

- (void) end: (nullable id) sender

Tears the splash down and hands control back to the root controller.

Parameters
senderThe timer or control that ended the splash. Unused.
Ghidra address:
0x830bc

◆ fireAnimation

- (void) fireAnimation

Runs one step of the logo animation and schedules the next.

Each step animates one fade and passes itself as that animation's completion, so the sequence advances one step per finished animation rather than on a timer. Once the sequence is over this arms the timer that sends -end: .

Ghidra address:
0x828ec
Ghidra address:
0x828ec
Ghidra address:
0x82e18
Ghidra address:
0x82e1c
Ghidra address:
0x82ea0
Ghidra address:
0x82ed0
Ghidra address:
0x82f00
Ghidra address:
0x82f30
Ghidra address:
0x82f60
Ghidra address:
0x82f90
Ghidra address:
0x82fc0

◆ getCampaignImageDirPath

- (NSString *) getCampaignImageDirPath

The directory the campaign image is cached in, creating it if absent.

Returns
The directory path.
Ghidra address:
0x83eb4
Ghidra address:
0x83eb4

◆ getCampaignImagePath:

- (nullable NSString *) getCampaignImagePath: (nullable NSString *) name

The on-disk path for one campaign image.

Parameters
nameThe image's name.
Returns
The full path.
Ghidra address:
0x83f88

◆ handleTap:

- (void) handleTap: (nullable id) sender

Skips ahead when the screen is tapped.

A tap during either BEMANI logo step cuts that step short and jumps to the age-rating notice; a tap while the notice is up ends the splash immediately instead of waiting out its hold. Taps at any other point do nothing, and the recogniser is only installed once the BEMANI logo starts, so the Konami logo cannot be skipped at all.

Parameters
senderThe recognising gesture.
Ghidra address:
0x8314c

◆ init

- (instancetype) init

Builds the controller.

Does nothing but call super . The ivars are set up in -loadView instead.

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

◆ loadView

- (void) loadView

Builds the view hierarchy by hand rather than from a nib.

Creates the three logo images centred on the view and starting invisible, then starts the two downloads that run behind the animation.

Ghidra address:
0x8244c
Ghidra address:
0x8244c

◆ removeCampaignImage

- (void) removeCampaignImage

Empties the campaign image cache.

Removes every file in the cache directory, not just one, and leaves the directory itself.

Ghidra address:
0x83cfc
Ghidra address:
0x83cfc

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the splash rotates at all.

Returns
Always YES .
Ghidra address:
0x83524
Ghidra address:
0x83524

◆ shouldAutorotateToInterfaceOrientation:

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation

Reports that only the two portrait orientations are supported.

Parameters
interfaceOrientationThe orientation being asked about.
Returns
YES for either portrait orientation.
Ghidra address:
0x8350c
Ghidra address:
0x8350c

◆ start

- (void) start

Resets the splash to its opening frame and starts the animation.

Blacks out the view, hides both logos, and returns state to zero.

Ghidra address:
0x82fe0
Ghidra address:
0x82fe0

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The orientations the splash allows.

Returns
Both portrait orientations.
Ghidra address:
0x8351c
Ghidra address:
0x8351c

◆ viewDidUnload

- (void) viewDidUnload

Drops the views and cancels the downloads that are still in flight.

Ghidra address:
0x8335c

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