Initial Commit

This commit is contained in:
2026-06-20 23:03:06 +08:00
commit 51e16359de
25 changed files with 5676 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
[package]
name = "test-main"
version = "0.1.0"
edition = "2024"
[dependencies]
entry = { path = "../entry" }
simplelog = "0.12.2"
+30
View File
@@ -0,0 +1,30 @@
use simplelog::{ColorChoice, Config, LevelFilter, TermLogger, TerminalMode};
use sekai_sync_lib::{boot, ghp, proxy};
fn main() {
let _proxy = "http://127.0.0.1:7890";
let _cwd = "D:\\Workspace\\sekai-sync-lib\\target";
let _name = "sekai-sync-lib";
let _as_path = "D:\\Workspace\\AssetStudio\\AssetStudioCLI\\bin\\Release\\net9.0\\AssetStudioModCLI.exe";
let _ghp = "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";
//
// TermLogger::init(
// LevelFilter::Debug,
// Config::default(),
// TerminalMode::Mixed,
// ColorChoice::Auto,
// ).unwrap();
macro_rules! cstr {
($v:expr) => {
std::ffi::CString::new($v).unwrap().as_ptr()
};
}
unsafe {
proxy(cstr!(_proxy));
ghp(cstr!(_ghp));
boot(cstr!(_cwd), cstr!(_name), cstr!(_as_path));
};
std::thread::sleep(std::time::Duration::from_hours(10));
}