|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#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) |
| #define DTTR_ISO_MAX_PATH 260 |
Definition at line 7 of file dttr_iso.h.
Referenced by create_parent_dirs(), dttr_game_data_resolve_existing_read_path(), dttr_game_data_resolve_read_path(), DTTR_ISO_ExtractFile(), DTTR_ISO_ExtractTree(), extract_tree_path(), find_case_match(), and resolve_iso_path_case().
| bool DTTR_ISO_CachePathForFile | ( | const char * | cache_root, |
| const char * | iso_relative_path, | ||
| char * | out_path, | ||
| size_t | out_path_size ) |
Definition at line 96 of file iso.c.
References DTTR_Path_AppendSeparator(), DTTR_Path_CopySds(), DTTR_Path_IsRelativeSegment(), DTTR_Path_IsSeparator(), DTTR_Path_SegmentLen(), DTTR_Path_SkipSeparators(), sdscat_lower_segment(), and trim_trailing_separators().
Referenced by dttr_game_data_resolve_read_path(), and DTTR_ISO_ExtractFile().
| 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().
| bool DTTR_ISO_ExtractFile | ( | DTTR_IsoImage * | iso, |
| const char * | iso_relative_path, | ||
| const char * | cache_root, | ||
| char * | out_path, | ||
| size_t | out_path_size ) |
Definition at line 411 of file iso.c.
References create_parent_dirs(), DTTR_ISO_CachePathForFile(), DTTR_ISO_MAX_PATH, file_matches_physfs_file(), ISO_SECTOR_SIZE, DTTR_IsoImage::open, resolve_iso_path_case(), set_error(), and set_physfs_error().
Referenced by extract_iso_file(), and extract_tree_path().
| bool DTTR_ISO_ExtractTree | ( | DTTR_IsoImage * | iso, |
| const char * | iso_relative_path, | ||
| const char * | cache_root ) |
Definition at line 560 of file iso.c.
References DTTR_ISO_MAX_PATH, extract_tree_path(), DTTR_IsoImage::open, resolve_iso_path_case(), set_error(), and set_physfs_error().
Referenced by extract_iso_game_cache().
| 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().
| bool DTTR_ISO_Open | ( | DTTR_IsoImage * | iso, |
| const char * | iso_path ) |
Definition at line 185 of file iso.c.
References DTTR_Path_CopyString(), DTTR_IsoImage::iso_path, NULL, DTTR_IsoImage::open, physfs_deinit(), physfs_init(), set_error(), and set_physfs_error().
Referenced by resolve_iso_direct().