Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions unreal_mod_integrator/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![allow(unexpected_cfgs)]
#![allow(unused_variables)]

use std::env;
use std::fs::{self, OpenOptions};
Expand Down
4 changes: 0 additions & 4 deletions unreal_mod_integrator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,6 @@ fn bake_integrator_data(
integrator_version: String,
refuse_mismatched_connections: bool,
) -> Result<(), Error> {
if asset.asset_data.exports.len() != 4 {
return Err(IntegrationError::corrupted_starter_pak().into());
}

let properties: Vec<Property> = Vec::from([
StrProperty {
name: asset.add_fname("IntegratorVersion"),
Expand Down
14 changes: 13 additions & 1 deletion unreal_mod_manager/src/game_path_helpers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unused_variables)]

use std::path::PathBuf;

use directories::BaseDirs;
Expand Down Expand Up @@ -94,14 +96,24 @@ pub fn determine_installed_mods_path_winstore(
store_info: &MsStoreInfo,
game_name: &str,
) -> Option<PathBuf> {
let package_path = determine_game_package_path_winstore(store_info)?;
/*let package_path = determine_game_package_path_winstore(store_info)?;
let base_path = Some(
package_path
.join("LocalState")
.join(game_name)
.join("Saved")
.join("Paks"),
);
trace!("base_path: {:?}", base_path);*/
let base_dirs = BaseDirs::new();
if base_dirs.is_none() {
warn!("Could not determine base directory");
return None;
}
let base_dirs = base_dirs.unwrap();

let data_dir = base_dirs.data_local_dir();
let base_path = Some(data_dir.join(game_name).join("Saved").join("Paks"));
trace!("base_path: {:?}", base_path);

base_path
Expand Down
7 changes: 6 additions & 1 deletion unreal_mod_manager/src/game_platform_managers/msstore.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unused)]

use std::cell::RefCell;
use std::fs;
use std::io::Read;
Expand All @@ -17,6 +19,7 @@ pub struct MsStoreInstallManager {

winstore_vendor_id: &'static str,
game_name: &'static str,
winstore_game_name_for_boot: &'static str,
state_game_name: &'static str,
}

Expand All @@ -25,6 +28,7 @@ impl MsStoreInstallManager {
pub fn new(
winstore_vendor_id: &'static str,
game_name: &'static str,
winstore_game_name_for_boot: &'static str,
state_game_name: &'static str,
) -> Self {
MsStoreInstallManager {
Expand All @@ -33,6 +37,7 @@ impl MsStoreInstallManager {
game_build: RefCell::new(None),
winstore_vendor_id,
game_name,
winstore_game_name_for_boot,
state_game_name,
}
}
Expand Down Expand Up @@ -107,7 +112,7 @@ impl InstallManager for MsStoreInstallManager {
if let Some(store_info) = store_info {
open::that(format!(
"shell:appsFolder\\{}!{}",
store_info.runtime_id, self.game_name
store_info.runtime_id, self.winstore_game_name_for_boot
))?;
} else {
return Err(ModLoaderWarning::winstore_error());
Expand Down
Loading