Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
file_table.c File Reference
#include "engine/game.h"
#include <libgs.h>
#include <libetc.h>
#include <libsnd.h>
Include dependency graph for file_table.c:

Go to the source code of this file.

Functions

s32 fileExists (s32 file)
 Whether the disc has file file
 
s32 getFileSectorCount (s32 file)
 The sectors of a file.
 
s32 getFileSector (s32 file)
 The first sector of a file.
 
void getFilePos (s32 file, s32 offset, void *pos)
 The CdlLOC of sector offset of a file.
 

Variables

s32 FILE_SECTORS [2382]
 Where each file starts on the disc, and its size, in sectors.
 
u16 FILE_SECTOR_COUNTS [2382]
 
s32 FILE_COUNT = sizeof(FILE_SECTORS) / sizeof(FILE_SECTORS[0])
 The files in FILE_SECTORS; nothing reads it.
 
FileTableFuncs FILE_TABLE
 The disc's file table.
 

Function Documentation

◆ fileExists()

s32 fileExists ( s32  file)

Whether the disc has file file

Definition at line 2642 of file file_table.c.

◆ getFileSectorCount()

s32 getFileSectorCount ( s32  file)

The sectors of a file.

Definition at line 2647 of file file_table.c.

◆ getFileSector()

s32 getFileSector ( s32  file)

The first sector of a file.

Definition at line 2652 of file file_table.c.

◆ getFilePos()

void getFilePos ( s32  file,
s32  offset,
void *  pos 
)

The CdlLOC of sector offset of a file.

Definition at line 2657 of file file_table.c.

Variable Documentation

◆ FILE_SECTORS

s32 FILE_SECTORS[2382]

Where each file starts on the disc, and its size, in sectors.

Definition at line 838 of file file_table.c.

Referenced by fileExists(), getFilePos(), and getFileSector().

◆ FILE_SECTOR_COUNTS

u16 FILE_SECTOR_COUNTS[2382]

Definition at line 1436 of file file_table.c.

Referenced by getFileSectorCount().

◆ FILE_COUNT

s32 FILE_COUNT = sizeof(FILE_SECTORS) / sizeof(FILE_SECTORS[0])

The files in FILE_SECTORS; nothing reads it.

-G8 unit: it goes to the small data (.sdata)

Definition at line 2631 of file file_table.c.

◆ FILE_TABLE

FileTableFuncs FILE_TABLE
Initial value:
= {
}
s32 fileExists(s32 file)
Whether the disc has file file
s32 getFileSectorCount(s32 file)
The sectors of a file.
s32 getFileSector(s32 file)
The first sector of a file.
void getFilePos(s32 file, s32 offset, void *pos)
The CdlLOC of sector offset of a file.

The disc's file table.

Definition at line 2634 of file file_table.c.

Referenced by findOldestFile(), freeFilesFrom(), loadModeOverlay(), loadSubOverlay(), readFile(), requestFile(), STDWTITL_tickMoviePlayer(), and updateSoundLoading().