Disable update check on emscripten.

This commit is contained in:
Bartosz Taudul 2022-10-08 14:44:53 +02:00
parent 2b6c53a73e
commit fadd103169
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -195,6 +195,7 @@ int main( int argc, char** argv )
connHist = &connHistory; connHist = &connHistory;
filt = &filters; filt = &filters;
#ifndef __EMSCRIPTEN__
updateThread = std::thread( [] { updateThread = std::thread( [] {
HttpRequest( "nereid.pl", "/tracy/version", 8099, [] ( int size, char* data ) { HttpRequest( "nereid.pl", "/tracy/version", 8099, [] ( int size, char* data ) {
if( size == 4 ) if( size == 4 )
@ -206,6 +207,7 @@ int main( int argc, char** argv )
delete[] data; delete[] data;
} ); } );
} ); } );
#endif
auto iconThread = std::thread( [] { auto iconThread = std::thread( [] {
iconPx = stbi_load_from_memory( (const stbi_uc*)Icon_data, Icon_size, &iconX, &iconY, nullptr, 4 ); iconPx = stbi_load_from_memory( (const stbi_uc*)Icon_data, Icon_size, &iconX, &iconY, nullptr, 4 );