|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
Go to the source code of this file.
Classes | |
| struct | DATA_HEADER |
| struct | BG_READ_INFO |
Functions | |
| int | ReadBGSync () |
| void | InitReadBG () |
| int | LoadFileBG (char *name, u_long128 *buffer, int *out_size) |
| BG_READ_INFO * | GetReadBGFile (int index) |
| void | StartReadBG () |
| void | ReadBG () |
| void | BreakReadBG () |
| void | InitCDFile () |
| void | InitMemoryFile () |
| int | LoadFile (char *path, void *buffer, int *out_size) |
| int | LoadFile2 (char *path, void *buffer, int *out_size, int mode) |
| int | WriteFile (char *path, void *buffer, int size) |
| int | LoadPackFile (char *path, u_int *buffer, int *out_size) |
| u_int * | GetPackFile (char *name, int *out_size) |
| u_int * | GetPackFile (u_int *pack, char *name, int *out_size) |
| u_int * | GetPackFile (u_int *pack, int index, char **out_name, int *out_size) |
| int | GetPackFileExt (u_int *pack, char *extension, u_int **files, int max_files, int *sizes, char **names) |
| void | LoadOverlay (int mode) |
| void | init_all () |
| void | SetEnv (sceVif1Packet *packet) |
| void | LoadSndTxt () |
| void | PlayTimeCountFlag (int flag) |
| int | PlayTimeCount (int unused) |
| void | LoadSystemMessage () |
| void | initialize_data () |
| void | SetDataBuffer (CDataAlloc2< 1 > *arena, int quads) |
| void | SetPacketReadBuffer (int packet_quads, int read_quads) |
| int | check_now_loading () |
Variables | |
| u_int * | read_buffer |
| CDataAlloc2< 1 > * | WorkBuffer__2 |
Declares the calls that read a file off the disc, and the ones that reach into a pack file once it has been read.
Definition in file dataread.hpp.
| int ReadBGSync | ( | ) |
Steps the background read, and says whether one is still going.
Definition at line 297 of file dataread.cpp.
| void InitReadBG | ( | ) |
Initializes the background-read queue.
Definition at line 146 of file dataread.cpp.
| int LoadFileBG | ( | char * | name, |
| u_long128 * | buffer, | ||
| int * | out_size | ||
| ) |
Queues a file for background reading.
Definition at line 159 of file dataread.cpp.
| BG_READ_INFO * GetReadBGFile | ( | int | index | ) |
Returns an allocated background-read queue slot.
Definition at line 230 of file dataread.cpp.
| void StartReadBG | ( | ) |
Starts the background-read system.
Definition at line 238 of file dataread.cpp.
| void ReadBG | ( | ) |
Advances the active background read by one vertical sync.
Definition at line 244 of file dataread.cpp.
| void BreakReadBG | ( | ) |
Cancels the active CD/DVD read and resets the background queue.
Definition at line 323 of file dataread.cpp.
| void InitCDFile | ( | ) |
Initializes the DATA.DAT file index from disc.
Definition at line 521 of file dataread.cpp.
| void InitMemoryFile | ( | ) |
Initializes memory-backed file access.
Definition at line 557 of file dataread.cpp.
| int LoadFile | ( | char * | path, |
| void * | buffer, | ||
| int * | out_size | ||
| ) |
Reads a whole file off the disc.
Definition at line 560 of file dataread.cpp.
| int LoadFile2 | ( | char * | path, |
| void * | buffer, | ||
| int * | out_size, | ||
| int | mode | ||
| ) |
Reads a file using the requested loading mode.
Definition at line 575 of file dataread.cpp.
| int WriteFile | ( | char * | path, |
| void * | buffer, | ||
| int | size | ||
| ) |
Writes a buffer to a file.
Definition at line 670 of file dataread.cpp.
| int LoadPackFile | ( | char * | path, |
| u_int * | buffer, | ||
| int * | out_size | ||
| ) |
Loads a pack and makes it the current implicit pack.
Definition at line 684 of file dataread.cpp.
| u_int * GetPackFile | ( | char * | name, |
| int * | out_size | ||
| ) |
Finds a file in the current implicit pack.
Definition at line 695 of file dataread.cpp.
| u_int * GetPackFile | ( | u_int * | pack, |
| char * | name, | ||
| int * | out_size | ||
| ) |
Finds a file inside a pack that has already been read.
Definition at line 701 of file dataread.cpp.
| u_int * GetPackFile | ( | u_int * | pack, |
| int | index, | ||
| char ** | out_name, | ||
| int * | out_size | ||
| ) |
Finds a file by ordinal position in a pack.
Definition at line 740 of file dataread.cpp.
| int GetPackFileExt | ( | u_int * | pack, |
| char * | extension, | ||
| u_int ** | files, | ||
| int | max_files, | ||
| int * | sizes, | ||
| char ** | names | ||
| ) |
Collects files with a requested extension from a pack.
Definition at line 773 of file dataread.cpp.
| void LoadOverlay | ( | int | mode | ) |
| void init_all | ( | ) |
| void SetEnv | ( | sceVif1Packet * | packet | ) |
| void LoadSndTxt | ( | ) |
| void PlayTimeCountFlag | ( | int | flag | ) |
| int PlayTimeCount | ( | int | unused | ) |
| void LoadSystemMessage | ( | ) |
| void initialize_data | ( | ) |
| void SetDataBuffer | ( | CDataAlloc2< 1 > * | arena, |
| int | quads | ||
| ) |
Gives one arena to the loader as its working buffer, sized in quadwords.
Definition at line 76 of file dataset.cpp.
| void SetPacketReadBuffer | ( | int | packet_quads, |
| int | read_quads | ||
| ) |
Sets where packet reads land, and how much room they have.
Definition at line 82 of file dataset.cpp.
| int check_now_loading | ( | ) |
Reports whether a background read is still running.
Definition at line 46 of file nowload.cpp.
|
extern |
Shared buffer used for synchronous game-data reads.
Definition at line 30 of file dataset.cpp.
| CDataAlloc2<1>* WorkBuffer__2 |
Allocator that dungeon monsters take their collision polygons from.
Definition at line 250 of file dataread.hpp.