#include <ventoy_disk.h>\r
#include <ventoy_http.h>\r
\r
+char g_ventoy_dir[MAX_PATH];
+\r
static BOOL g_running = FALSE;\r
static HWND g_refresh_button;\r
static HWND g_start_button;\r
MSGID_BTN_STOP_TIP, \r
MSGID_BTN_EXIT_TIP,\r
MSGID_RUNNING_TIP,\r
+ MSGID_NO_TARXZ_TIP,\r
\r
MSGID_BUTT\r
}MSGID;\r
L"Í£Ö¹ÔËÐкóä¯ÀÀÆ÷Ò³Ãæ½«»á¹Ø±Õ£¬ÊÇ·ñ¼ÌÐø£¿",\r
L"µ±Ç°·þÎñÕýÔÚÔËÐУ¬ÊÇ·ñÍ˳ö£¿",\r
L"ÇëÏȹرÕÕýÔÚÔËÐÐµÄ VentoyPlugson ³ÌÐò£¡",\r
+ L"ventoy\\plugson.tar.xz Îļþ²»´æÔÚ£¬ÇëÔÚÕýÈ·µÄĿ¼ÏÂÔËÐУ¡",\r
};\r
const WCHAR *g_msg_en[MSGID_BUTT] =\r
{\r
L"The browser page will close after stop, continue?",\r
L"Service is running, continue?",\r
L"Please close another running VentoyPlugson instance!",\r
+ L"ventoy\\plugson.tar.xz does not exist, please run under the correct directory!",\r
};\r
\r
const WCHAR **g_msg_lang = NULL;\r
}\r
\r
GetCurrentDirectoryA(MAX_PATH, g_cur_dir);\r
+ sprintf_s(g_ventoy_dir, sizeof(g_ventoy_dir), "%s", g_cur_dir);\r
sprintf_s(g_log_file, sizeof(g_log_file), "%s\\%s", g_cur_dir, LOG_FILE);\r
ventoy_log_init();\r
\r
+ if (!ventoy_is_file_exist("%s\\ventoy\\%s", g_ventoy_dir, PLUGSON_TXZ))\r
+ { \r
+ MessageBoxW(NULL, g_msg_lang[MSGID_NO_TARXZ_TIP], g_msg_lang[MSGID_ERROR], MB_OK | MB_ICONERROR);\r
+ return 1;\r
+ }\r
\r
ParseCmdLine(lpCmdLine, g_sysinfo.ip, g_sysinfo.port);\r
if (g_sysinfo.ip[0] == 0)\r