1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-05-06 02:37:46 +00:00
physis/tests/retail_test.rs

21 lines
609 B
Rust
Raw Normal View History

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
2022-08-16 11:52:07 -04:00
use std::env;
2022-07-19 19:29:41 -04:00
use physis::common::Platform;
2022-07-19 19:29:41 -04:00
/// 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.
2022-07-19 19:29:41 -04:00
#[test]
fn test_gamedata_extract() {
let game_dir = env::var("FFXIV_GAME_DIR").unwrap();
2024-04-20 13:18:03 -04:00
let mut gamedata = physis::gamedata::GameData::from_existing(
Platform::Win32,
format!("{}/game", game_dir).as_str(),
)
.unwrap();
2022-07-19 19:29:41 -04:00
assert!(gamedata.extract("exd/root.exl").is_some());
2022-08-16 11:52:07 -04:00
}