1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-05-05 18:27:46 +00:00
physis/tests/retail_test.rs
Joshua Goins 3049014247 Rename integration_test to retail_test
Also make it use required-features instead of cfg attr'ing everything.
2025-04-28 21:49:41 -04:00

20 lines
609 B
Rust
Executable file

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
use std::env;
use physis::common::Platform;
/// Test to see if we can find the root EXL. It exists in every version, and is a pretty safe indicator whether our SqPack reading works.
#[test]
fn test_gamedata_extract() {
let game_dir = env::var("FFXIV_GAME_DIR").unwrap();
let mut gamedata = physis::gamedata::GameData::from_existing(
Platform::Win32,
format!("{}/game", game_dir).as_str(),
)
.unwrap();
assert!(gamedata.extract("exd/root.exl").is_some());
}