reorganize some consts

This commit is contained in:
2025-04-18 03:17:40 +01:00
parent b79c5f62b3
commit 0de79769d2
6 changed files with 20 additions and 16 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
use crate::util::{
consts::{ENHANCED, LEGACY},
consts::game::{EXE_ENHANCED, EXE_LEGACY},
countdown::Countdown,
};
use std::time::{Duration, Instant};
@@ -39,7 +39,7 @@ fn get_gta_pid(sysinfo: &mut System) -> u32 {
if let Some((pid, _)) = sysinfo
.processes()
.iter()
.find(|(_, p)| p.name() == ENHANCED || p.name() == LEGACY)
.find(|(_, p)| p.name() == EXE_ENHANCED || p.name() == EXE_LEGACY)
{
return pid.as_u32();
}