Fix compile for linux/macos

This commit is contained in:
Oleg.Korshul
2022-10-15 22:04:51 +03:00
parent 9cee4a6696
commit e15a1a92fe
3 changed files with 19 additions and 6 deletions

View File

@ -19,10 +19,17 @@ int main(int argc, char** argv)
std::wstring config_path;
if(argc < 2) config_path = L"./config.xml";
else config_path = std::wstring(argv[1]);
SetConsoleOutputCP(CP_UTF8);
if(argc < 2)
config_path = L"./config.xml";
else
{
#ifdef WIN32
config_path = std::wstring(argv[1]);
#else
std::string config_pathA = std::string(argv[1]);
config_path = UTF8_TO_U(config_pathA);
#endif
}
Cx2tTester tester(config_path);
tester.Start();

View File

@ -263,7 +263,7 @@ void Cx2tTester::Start()
// waiting...
while(isAllBusy())
Sleep(100);
NSThreads::Sleep(100);
// setup & start new coverter
m_currentProc++;
@ -281,7 +281,7 @@ void Cx2tTester::Start()
// waiting all procs end
while(!isAllFree())
Sleep(100);
NSThreads::Sleep(100);
}
void Cx2tTester::writeReport(const Report& report)