DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
nowload.hpp File Reference

Go to the source code of this file.

Functions

int check_now_loading ()
 
void clear_now_loading_vsync_end ()
 
int check_now_loading_vsync_end ()
 
void wait_now_loading_vsync ()
 
void now_loading_off ()
 
void init_now_loading (int title_number)
 
int VSyncCallBack_Load (int field)
 
void LoadTexture (char *name, unsigned char *archive, CTexture *texture, int image_address, int palette_address)
 
void LoadTexture (TM2_head *image, CTexture *texture, int image_address, int palette_address)
 

Variables

int end_flag
 
u_int now_load [2000]
 
sceGsDBuff nowloadDB
 
sceVif1Packet nlPacket
 
CTexture nl_tex
 
CTexture nl_tex2
 
int now_loding_flag
 
int nl_start_cnt
 
float col_cnt
 
float col_add
 
int logo_count
 
int map_title_no
 
int now_loding_off
 
int now_loading_vsync_end
 

Detailed Description

Declares the calls that drive the loading screen while the disc is read.

Definition in file nowload.hpp.

Function Documentation

◆ check_now_loading()

int check_now_loading ( )

Reports whether the loading-screen operation has ended.

Mangled name:
check_now_loading__Fv
Address:
0x153F40
Size:
0xC

Reports whether a background read is still running.

Mangled name:
check_now_loading__Fv
Address:
0x153F40
Size:
0xC
Return type:
Not recovered.

Definition at line 46 of file nowload.cpp.

◆ clear_now_loading_vsync_end()

void clear_now_loading_vsync_end ( )

Clears the flag set after the loading screen completes a field.

Mangled name:
clear_now_loading_vsync_end__Fv
Address:
0x153F50
Size:
0xC

Definition at line 50 of file nowload.cpp.

◆ check_now_loading_vsync_end()

int check_now_loading_vsync_end ( )

Reports whether the loading screen has completed a field.

Mangled name:
check_now_loading_vsync_end__Fv
Address:
0x153F60
Size:
0xC

Definition at line 54 of file nowload.cpp.

◆ wait_now_loading_vsync()

void wait_now_loading_vsync ( )

Waits for the loading screen to reach the end of a field.

Mangled name:
wait_now_loading_vsync__Fv
Address:
0x153F70
Size:
0x3C

Definition at line 58 of file nowload.cpp.

◆ now_loading_off()

void now_loading_off ( )

Hides the active loading-screen overlay.

Mangled name:
now_loading_off__Fv
Address:
0x153FB0
Size:
0x10

Definition at line 68 of file nowload.cpp.

◆ init_now_loading()

void init_now_loading ( int  title_number)

Loads the loading screen for one map, arms its vertical-sync callback, and starts its fade.

Mangled name:
init_now_loading__Fi
Address:
0x153FC0
Size:
0x354

Definition at line 79 of file nowload.cpp.

◆ VSyncCallBack_Load()

int VSyncCallBack_Load ( int  field)

Draws the loading screen and advances its fade once per vertical sync.

Mangled name:
VSyncCallBack_Load__Fi
Address:
0x154320
Size:
0x450

Definition at line 176 of file nowload.cpp.

◆ LoadTexture() [1/2]

void LoadTexture ( char *  name,
u_char *  archive,
CTexture *  texture,
int  image_address,
int  palette_address 
)

Uploads a named image and its palette to video memory and records where they went.

Mangled name:
LoadTexture__FPcPUcP8CTextureii
Address:
0x154770
Size:
0x1D4

Definition at line 298 of file nowload.cpp.

◆ LoadTexture() [2/2]

void LoadTexture ( TM2_head *  image,
CTexture *  texture,
int  image_address,
int  palette_address 
)

Uploads one already-located image and its palette to video memory and records where they went.

Mangled name:
LoadTexture__FP8TM2_headP8CTextureii
Address:
0x154950
Size:
0x1D4

Definition at line 332 of file nowload.cpp.

Variable Documentation

◆ end_flag

int end_flag
extern

Whether the loading screen has finished, set on arming and again when its fade ends.

Definition at line 21 of file nowload.cpp.

◆ now_load

u_int now_load[2000]
extern

VIF1 packet buffer the loading screen builds each frame's sprites in.

Definition at line 23 of file nowload.cpp.

◆ nowloadDB

sceGsDBuff nowloadDB
extern

Double-buffered GS environment the loading screen draws with.

Definition at line 24 of file nowload.cpp.

◆ nlPacket

sceVif1Packet nlPacket
extern

Packet builder writing into now_load.

Definition at line 25 of file nowload.cpp.

◆ nl_tex

CTexture nl_tex
extern

Loading-screen image, or the first logo on the boot logo screen.

Definition at line 26 of file nowload.cpp.

◆ nl_tex2

CTexture nl_tex2
extern

Second logo on the boot logo screen.

Definition at line 27 of file nowload.cpp.

◆ now_loding_flag

int now_loding_flag
extern

Whether the loading screen is being shown.

Definition at line 29 of file nowload.cpp.

◆ nl_start_cnt

int nl_start_cnt
extern

Vertical syncs left before the loading screen starts drawing.

Definition at line 30 of file nowload.cpp.

◆ col_cnt

float col_cnt
extern

Current brightness of the loading screen's fade, 0 to 128.

Definition at line 31 of file nowload.cpp.

◆ col_add

float col_add
extern

Brightness step of the loading screen's fade, negated when it turns.

Definition at line 32 of file nowload.cpp.

◆ logo_count

int logo_count
extern

Index of the boot logo being shown.

Definition at line 33 of file nowload.cpp.

◆ map_title_no

int map_title_no
extern

Map title number the loading screen was armed with.

Definition at line 38 of file nowload.cpp.

◆ now_loding_off

int now_loding_off
extern

Requests that the loading display be disabled.

Definition at line 39 of file nowload.cpp.

◆ now_loading_vsync_end

int now_loading_vsync_end
extern

Whether the loading display has completed a field.

Definition at line 40 of file nowload.cpp.