mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-22 12:47:45 +00:00
25 lines
677 B
Rust
Executable file
25 lines
677 B
Rust
Executable file
use physis::index;
|
|
use std::env;
|
|
|
|
#[test]
|
|
#[cfg_attr(not(feature = "retail_game_testing"), ignore)]
|
|
fn test_index_read() {
|
|
let game_dir = env::var("FFXIV_GAME_DIR").unwrap();
|
|
|
|
index::IndexFile::from_existing(
|
|
format!("{}/game/sqpack/ffxiv/000000.win32.index", game_dir).as_str(),
|
|
);
|
|
}
|
|
|
|
#[test]
|
|
#[cfg_attr(not(feature = "retail_game_testing"), ignore)]
|
|
fn test_gamedata_extract() {
|
|
let game_dir = env::var("FFXIV_GAME_DIR").unwrap();
|
|
|
|
let mut gamedata =
|
|
physis::gamedata::GameData::from_existing(format!("{}/game", game_dir).as_str()).unwrap();
|
|
|
|
gamedata.reload_repositories();
|
|
|
|
assert!(gamedata.extract("exd/root.exl").is_some());
|
|
}
|