Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Commit

Permalink
무한 루프 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Kieaer committed Aug 30, 2023
1 parent b5122ed commit a054597
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anti-ripper"
version = "1.0.3"
version = "1.0.4"
edition = "2021"
build = "src/build.rs"

Expand Down
16 changes: 8 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -729,19 +729,19 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

thread::spawn(|| {
loop {
loop {
if is_process_running("VRChat.exe") {
break;
}

thread::sleep(Duration::from_secs(30));
}

let dir_path = home_dir().unwrap().join("AppData").join("LocalLow").join("VRChat");
let specific_word = "output_log";
let mut path: String = String::new();

if let Ok(entries) = fs::read_dir(dir_path) {
loop {
if is_process_running("VRChat.exe") {
break;
}

thread::sleep(Duration::from_secs(30));
}

let mut earliest_creation_time: Option<std::time::SystemTime> = None;
let mut earliest_file_path: Option<String> = None;

Expand Down

0 comments on commit a054597

Please sign in to comment.