pub struct ED6Lookup { /* private fields */ }Expand description
Lookup for ED6: Trails in the Sky FC, SC, and the 3rd.
For the PC versions, file ids tell which file archive the file is located in, and the index inside these archives. For the PSVita versions, the file ids still follow this scheme, but instead uses a number of .txt files with lists of filenames for resolving the numbers to filenames.
Implementations§
source§impl ED6Lookup
impl ED6Lookup
source§impl ED6Lookup
impl ED6Lookup
sourcepub fn for_pc(dir: impl AsRef<Path>) -> Result<ED6Lookup, Error>
pub fn for_pc(dir: impl AsRef<Path>) -> Result<ED6Lookup, Error>
Loads the indexes for the PC versions of the games.
dir should be a directory containing the ED6_DTxx.dir/.dat files, normally located at
C:\Program Files (x86)\Steam\steamapps\common\Trails in the Sky {FC/SC/the 3rd}.
The filenames used in the .dir files are uppercase 8.3 format. Later games, as well as filenames given as strings, use lowercase variable-length format, so the index filenames are normalized to the latter format.
For ch/cp files, a prefix is added to denote which archive they are in; names are taken from the Vita’s index files.
sourcepub fn for_vita(dir: impl AsRef<Path>) -> Result<ED6Lookup, Error>
pub fn for_vita(dir: impl AsRef<Path>) -> Result<ED6Lookup, Error>
Loads the indexes for the PSVita (Evolution) versions of the games.
dir should be the data directory extracted from data.psarc, normally named data, data_sc, or data_3rd.
The index files do not include file extensions, so these are added. Note that the inferred exensions are made to resemble the PC version, not the files actually used by the Vita version.
For ch/cp files, a prefix is added to denote which index file they are in.