adjusted execution path to hayabusa config folder check

This commit is contained in:
DustInDark
2022-06-23 09:24:44 +09:00
parent 37a1abf9ec
commit 72f143bd7e

View File

@@ -132,8 +132,8 @@ impl App {
println!(); println!();
return; return;
} }
// 実行時のexeファイルのパスをベースに変更する必要があるためデフォルトの値であった場合はそのexeファイルと同一階層を探すようにする
if !Path::new("./config").exists() { if !CURRENT_EXE_PATH.join("config").exists() {
AlertMessage::alert( AlertMessage::alert(
"Hayabusa could not find the config directory.\nPlease run it from the Hayabusa root directory.\nExample: ./hayabusa-1.0.0-windows-x64.exe" "Hayabusa could not find the config directory.\nPlease run it from the Hayabusa root directory.\nExample: ./hayabusa-1.0.0-windows-x64.exe"
) )