102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
dttr_iso.h File Reference
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  DTTR_IsoImage

Macros

#define DTTR_ISO_MAX_PATH   260

Functions

bool DTTR_ISO_CachePathForFile (const char *cache_root, const char *iso_relative_path, char *out_path, size_t out_path_size)
bool DTTR_ISO_Open (DTTR_IsoImage *iso, const char *iso_path)
bool DTTR_ISO_ExtractFile (DTTR_IsoImage *iso, const char *iso_relative_path, const char *cache_root, char *out_path, size_t out_path_size)
bool DTTR_ISO_ExtractTree (DTTR_IsoImage *iso, const char *iso_relative_path, const char *cache_root)
const char * DTTR_ISO_LastError ()
void DTTR_ISO_Close (DTTR_IsoImage *iso)

Macro Definition Documentation

◆ DTTR_ISO_MAX_PATH

Function Documentation

◆ DTTR_ISO_CachePathForFile()

bool DTTR_ISO_CachePathForFile ( const char * cache_root,
const char * iso_relative_path,
char * out_path,
size_t out_path_size )

◆ DTTR_ISO_Close()

void DTTR_ISO_Close ( DTTR_IsoImage * iso)

Definition at line 593 of file iso.c.

References DTTR_IsoImage::iso_path, DTTR_IsoImage::open, and physfs_deinit().

Referenced by resolve_iso_direct().

◆ DTTR_ISO_ExtractFile()

bool DTTR_ISO_ExtractFile ( DTTR_IsoImage * iso,
const char * iso_relative_path,
const char * cache_root,
char * out_path,
size_t out_path_size )

◆ DTTR_ISO_ExtractTree()

bool DTTR_ISO_ExtractTree ( DTTR_IsoImage * iso,
const char * iso_relative_path,
const char * cache_root )

◆ DTTR_ISO_LastError()

const char * DTTR_ISO_LastError ( )

Definition at line 44 of file iso.c.

References last_error.

Referenced by extract_iso_file(), extract_iso_game_cache(), and resolve_iso_direct().

◆ DTTR_ISO_Open()

bool DTTR_ISO_Open ( DTTR_IsoImage * iso,
const char * iso_path )