mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Added NP_SKIP_MOD_CHECK env varible, allows skipping mod version check
This commit is contained in:
parent
c08db2bad2
commit
6e984e570a
3 changed files with 6 additions and 2 deletions
2
noita-proxy/Cargo.lock
generated
2
noita-proxy/Cargo.lock
generated
|
@ -1693,7 +1693,7 @@ checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
|
|||
|
||||
[[package]]
|
||||
name = "noita-proxy"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
dependencies = [
|
||||
"bitcode",
|
||||
"clipboard",
|
||||
|
|
|
@ -3,7 +3,7 @@ members = ["tangled"]
|
|||
|
||||
[package]
|
||||
name = "noita-proxy"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
use std::{
|
||||
env,
|
||||
fs::{self, File},
|
||||
io,
|
||||
path::{Path, PathBuf},
|
||||
|
@ -273,6 +274,9 @@ fn extract_and_remove_zip(zip_file: PathBuf, extract_to: PathBuf) -> Result<(),
|
|||
}
|
||||
|
||||
fn is_mod_ok(mod_path: &Path) -> io::Result<bool> {
|
||||
if env::var_os("NP_SKIP_MOD_CHECK").is_some() {
|
||||
return Ok(true);
|
||||
}
|
||||
if !mod_path.try_exists()? {
|
||||
return Ok(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue