open as admin (windows only)

This commit is contained in:
SpikeHD
2022-09-04 18:05:19 -07:00
parent fb231acaa6
commit 7cf1b198ff
2 changed files with 28 additions and 0 deletions

View File

@@ -16,6 +16,9 @@ use std::thread;
use structs::APIQuery;
use sysinfo::{System, SystemExt};
use crate::admin::reopen_as_admin;
mod admin;
mod downloader;
mod file_helpers;
mod gamebanana;
@@ -52,6 +55,8 @@ fn main() {
println!("===============================================================================");
println!("You running as a non-elevated user. Some stuff will almost definitely not work.");
println!("===============================================================================");
reopen_as_admin();
}
// Setup datadir/cultivation just in case something went funky and it wasn't made