Update configs to reflect interceptor changes

This commit is contained in:
xavo95 2025-04-10 06:12:30 +07:00
parent 69250cf856
commit 4a7738dd3d
Signed by: xavo95
GPG key ID: CBF8ADED6DEBB783
3 changed files with 12 additions and 1 deletions

View file

@ -204,6 +204,7 @@ pub fn spawn_process<'a>(launcher: Launcher, env: Environment) -> Result<Context
if entry.is_some() & env.environment_append {
// Usually when injecting you want your modifications to take precedence so
// prepend is the correct operation
// Evaluate: std::env::join_paths
value = format!("{value}{ENV_VAR_SEPARATOR}{}", entry.unwrap()); // Has to hold value
}
system_variables.insert(key, value); // If key exists, it will be replaced

10
samples/nte.toml Normal file
View file

@ -0,0 +1,10 @@
[launcher]
executable_file = 'HTGame.exe'
cmd_line_args = ''
current_dir = '<REPLACE_THIS_FOR_YOUR_GAME_FOLDER>\Client\WindowsNoEditor\HT\Binaries\Win64'
dll_list = ['<FULL_PATH_TO_NTR_DLL>']
[environment]
#vars = ['TESTVAR1=AAAAAA', 'TESTVAR2=AAAAAA']
#use_system_env = true
#environment_append = false

View file

@ -5,6 +5,6 @@ current_dir = '<REPLACE_THIS_FOR_YOUR_GAME_FOLDER>\Client\Binaries\Win64'
dll_list = ['<FULL_PATH_TO_SHOREKEEPER_DLL>']
[environment]
#environment = ['TESTVAR1=AAAAAA', 'TESTVAR2=AAAAAA']
#vars = ['TESTVAR1=AAAAAA', 'TESTVAR2=AAAAAA']
#use_system_env = true
#environment_append = false