-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add extra debug messages (will continue testing on another machine)
- Loading branch information
1 parent
8af5f90
commit e65c157
Showing
8 changed files
with
526 additions
and
298 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
group_id = 'aac4c3fa-8a72-11ec-80d7-0a58a9feac02' | ||
game_location = 'E:\Program Files\Origin Games\Battlefield 1\bf1.exe' | ||
game_location = 'C:\Program Files (x86)\Steam\steamapps\common\Battlefield 1\bf1.exe' | ||
link2ea_location = 'C:\Program Files\Electronic Arts\EA Desktop\EA Desktop\Link2EA.exe' | ||
hostname = 'WIN-IB228OQ723N' | ||
hostname = "JOBSE-PC" | ||
allow_shutdown = false | ||
send_messages = false | ||
usable_client = true | ||
fullscreen_anti_afk = true | ||
message = 'Join our discord, we are recruiting: ...' | ||
message_server_name = '' | ||
message_start_time_utc = '12:00' | ||
message_stop_time_utc = '23:00' | ||
message = "Join our discord, we are recruiting: ..." | ||
message_server_name = "" | ||
message_start_time_utc = "12:00" | ||
message_stop_time_utc = "23:00" | ||
message_timeout_mins = 8 | ||
game = 'Bf1' | ||
launcher = 'EADesktop' | ||
endpoint = 'https://manager-api.gametools.network' | ||
game = "Bf1" | ||
launcher = "Steam" | ||
endpoint = "https://manager-api.gametools.network" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
use std::sync::{atomic, Arc}; | ||
|
||
use winapi::um::winuser::CF_DIB; | ||
mod actions; | ||
mod functions; | ||
mod input; | ||
mod structs; | ||
|
||
fn main() { | ||
let mut cfg = structs::SeederConfig { | ||
hostname: hostname::get().unwrap().into_string().unwrap(), | ||
group_id: "".into(), | ||
game_location: "".into(), | ||
link2ea_location: "".into(), | ||
allow_shutdown: false, | ||
send_messages: true, | ||
usable_client: true, | ||
fullscreen_anti_afk: true, | ||
message: "test".into(), | ||
message_server_name: "".into(), | ||
message_start_time_utc: "12:00".into(), | ||
message_stop_time_utc: "23:00".into(), | ||
message_timeout_mins: 2, | ||
game: structs::Games::from("bf1"), | ||
launcher: structs::Launchers::from("steam"), | ||
endpoint: "https://manager-api.gametools.network".into(), | ||
}; | ||
let message_running = Arc::new(atomic::AtomicU32::new(1)); | ||
|
||
cfg.game_location = actions::game::find_game(&cfg); | ||
cfg.link2ea_location = actions::launchers::find_link2ea(); | ||
let game_running = Arc::new(atomic::AtomicU32::new(0)); | ||
let message_timeout = Arc::new(atomic::AtomicU32::new(10)); | ||
let current_message_id = Arc::new(atomic::AtomicU32::new(0)); | ||
|
||
functions::anti_afk::start( | ||
&cfg, | ||
&game_running, | ||
&message_running, | ||
&message_timeout, | ||
¤t_message_id, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters