Skip to content

Commit

Permalink
Fixed an issue with MelonProxy not using Executable Path for Base Dir…
Browse files Browse the repository at this point in the history
…ectory
  • Loading branch information
HerpDerpinstine committed Nov 17, 2024
1 parent 8305460 commit 23c263b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MelonProxy/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ pub fn init() -> Result<(), Box<dyn Error>> {
let args: Vec<String> = std::env::args().collect();

//TODO: Support UTF-16 (it will suck)
let mut base_dir = std::env::current_dir()?;
let mut no_mods = false;

let current_exe = std::env::current_exe()?;
let exe_dir = current_exe.parent().unwrap();
let mut base_dir = exe_dir.to_path_buf();
let mut no_mods = false;

if !files::is_unity(&current_exe)? {
return Ok(());
Expand Down

0 comments on commit 23c263b

Please sign in to comment.