Skip to content

Commit

Permalink
resolve bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dolphin2410 committed Nov 13, 2022
1 parent d47627d commit db77491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ use server_script::util::logger::LogStream;
use termcolor::Color;
use tokio::fs;
use server_script::{backup, web, config, cli, util::{java_util, logger, runner_util}};
use windows::Win32::System::Console::SetConsoleTitleA;
use windows::core::PCSTR;

const LOCAL_SERVER_PATH: &str = "server.jar";

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
#[cfg(target_os = "windows")]
{
use windows::Win32::System::Console::SetConsoleTitleA;
use windows::core::PCSTR;
unsafe {
SetConsoleTitleA(PCSTR("Server Script".as_ptr()));
println!(); // todo fix this
Expand Down

0 comments on commit db77491

Please sign in to comment.