mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-20 11:47:46 +00:00
Explain what environment variables are needed in test panics
It helps me to re-learn what I need here :)
This commit is contained in:
parent
b7e5f914d5
commit
e8e4e35cd1
1 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,7 @@ fn test_fiin() {
|
|||
fn make_temp_install_dir(name: &str) -> String {
|
||||
use physis::installer::install_game;
|
||||
|
||||
let installer_exe = env::var("FFXIV_INSTALLER").unwrap();
|
||||
let installer_exe = env::var("FFXIV_INSTALLER").expect("$FFXIV_INSTALLER needs to point to the retail installer");
|
||||
|
||||
let mut game_dir = env::home_dir().unwrap();
|
||||
game_dir.push(name);
|
||||
|
@ -131,7 +131,7 @@ fn xivlauncher_install_patch(game_directory: &str, data_directory: &str, patch_n
|
|||
println!("XivLauncher: Installing {patch_name}");
|
||||
|
||||
let patch_dir = env::var("FFXIV_PATCH_DIR").unwrap();
|
||||
let patcher_exe = env::var("FFXIV_XIV_LAUNCHER_PATCHER").unwrap();
|
||||
let patcher_exe = env::var("FFXIV_XIV_LAUNCHER_PATCHER").expect("$FFXIV_XIV_LAUNCHER_PATCHER must point to XIVLauncher.PatchInstaller.exe");
|
||||
|
||||
let patch_path = format!("Z:\\{}\\{}", patch_dir, &patch_name);
|
||||
let game_dir = format!("Z:\\{}\\{}", game_directory, data_directory);
|
||||
|
@ -158,7 +158,7 @@ fn test_patching() {
|
|||
|
||||
println!("The game installation is now complete. Now running boot patching...");
|
||||
for patch in boot_patches {
|
||||
let patch_dir = env::var("FFXIV_PATCH_DIR").unwrap();
|
||||
let patch_dir = env::var("FFXIV_PATCH_DIR").expect("$FFXIV_PATCH_DIR must point to the directory where the patches are stored");
|
||||
if !Path::new(&(patch_dir + "/" + patch)).exists() {
|
||||
println!("Skipping {} because it doesn't exist locally.", patch);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue