setup windows store appx project (desktop bridge)
This commit is contained in:
19
src/main.cpp
19
src/main.cpp
@@ -302,6 +302,25 @@ int main(int argc, char** argv)
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
FILE* fp_check = fopen("data\\layout.xml", "rb");
|
||||
if (!fp_check)
|
||||
{
|
||||
LOG("data files not found");
|
||||
static char path[MAX_PATH];
|
||||
GetModuleFileNameA(NULL, path, MAX_PATH);
|
||||
LOG("current dir %s", path);
|
||||
PathRemoveFileSpecA(path);
|
||||
SetCurrentDirectoryA(path);
|
||||
LOG("change dir to %s", path);
|
||||
}
|
||||
else
|
||||
{
|
||||
fclose(fp_check);
|
||||
LOG("data files ok");
|
||||
}
|
||||
|
||||
|
||||
SetupExceptionHandler();
|
||||
BT_SetTerminate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user