fix some idiotic const use in features::empty_session

This commit is contained in:
2025-04-17 04:42:31 +01:00
parent e328eb91f6
commit 41cfb12ea8
+8 -4
View File
@@ -1,4 +1,10 @@
use crate::{features, gui::App, util::countdown::Countdown};
use crate::{
gui::App,
util::{
consts::{ENHANCED, LEGACY},
countdown::Countdown,
},
};
use std::time::{Duration, Instant};
use sysinfo::System;
use windows::Win32::{
@@ -7,8 +13,6 @@ use windows::Win32::{
};
pub const INTERVAL: Duration = Duration::from_secs(10);
const ENHANCED: &str = "GTA5_Enhanced.exe";
const LEGACY: &str = "GTA5.exe";
#[derive(Debug)]
pub struct EmptySession {
@@ -22,7 +26,7 @@ impl Default for EmptySession {
Self {
disabled: false,
interval: Instant::now(),
countdown: Countdown::new(features::empty_session::INTERVAL.as_secs()),
countdown: Countdown::new(INTERVAL.as_secs()),
}
}
}