2024-01-08 23:37:00 +08:00
|
|
|
|
#include <windows.h>
|
|
|
|
|
#include<string>
|
2024-03-25 13:08:19 +08:00
|
|
|
|
#include<filesystem>
|
2024-01-08 23:37:00 +08:00
|
|
|
|
#pragma comment( linker, "/subsystem:windows /entry:mainCRTStartup" )
|
|
|
|
|
|
|
|
|
|
int main() {
|
2024-03-25 13:08:19 +08:00
|
|
|
|
if(!std::filesystem::exists(L".\\LunaTranslator\\LunaTranslator_main.exe")){
|
|
|
|
|
MessageBoxW(0,L"Cant' find ./LunaTranslator/LunaTranslator_main.exe, please download again!",L"Error",0);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2024-01-08 23:37:00 +08:00
|
|
|
|
STARTUPINFO _1 = {};
|
|
|
|
|
PROCESS_INFORMATION _2;
|
|
|
|
|
CreateProcessW( L".\\LunaTranslator\\LunaTranslator_main.exe",NULL,NULL,NULL,FALSE,0,NULL, L".\\",&_1,&_2);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|