Fix ecode --health for Windows.

VS compilation now uses UTF-8 for the source code encoding.
This commit is contained in:
Martín Lucas Golini
2023-04-13 20:35:41 -03:00
parent a9d0715c8c
commit 7bbf00ea97
8 changed files with 46 additions and 4 deletions

View File

@@ -2834,10 +2834,14 @@ static std::string getCurrentProcessPath() {
void App::checkLanguagesHealth() {
auto path( getCurrentProcessPath() );
path += " --health";
#if EE_PLATFORM == EE_PLATFORM_WIN
UITerminal* term = mTerminalManager->createNewTerminal(
"", nullptr, "", Sys::getPlatform() == "Windows" ? "cmd.exe" : "" );
#else
UITerminal* term = mTerminalManager->createNewTerminal();
#endif
term->setFocus();
term->executeFile( path );
term->executeBinary( path, "--health" );
}
void App::cleanUpRecentFolders() {