Skip to content

Commit

Permalink
don't create localappdata folders
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfloogle committed Aug 3, 2024
1 parent 19015d7 commit 22cd5f8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ unsafe extern "C" fn move_extensions_from_localappdata_to_exedir() {
if filenames.is_empty() {
return
}
let message = format!("These extension files need to be cleaned up:\n\n{filenames}\n\nProceed?");
let message = format!("These extension files need to be moved to the install folder:\n\n{filenames}\n\nProceed?");
let answer = show_question(&UStr::new(message));
if answer != 6 {
return
Expand Down Expand Up @@ -2274,8 +2274,15 @@ unsafe fn injector() {
// install extensions to own directory if possible
patch_call(0x713cdf, install_extensions_to_exedir_if_possible as _);

// move extensions to exedir from localappdata
patch_call(0x712a9a, move_extensions_from_localappdata_to_exedir as _);

// don't create localappdata folders
patch(0x71288c, &[0xeb]);
patch(0x7128fa, &[0xeb]);
patch(0x712968, &[0xeb]);
patch(0x5d05db, &[0xeb]);

// fix stupid null pointer error
patch(0x68ef02, &[0xe9]);
patch_call(0x68ef02, fix_tile_null_pointer as _);
Expand Down

0 comments on commit 22cd5f8

Please sign in to comment.