Add runtime warning when running a build without the Mono workaround on Mono.

This commit is contained in:
UnknownShadow200 2015-06-19 11:45:21 +10:00
parent 8898d0722b
commit 918e81f8bb

View File

@ -297,6 +297,12 @@ namespace ClassicalSharp {
gzipStream = new DeflateStream( gzippedMap, true );
#else
gzipStream = new DeflateStream( gzippedMap, CompressionMode.Decompress );
if( OpenTK.Configuration.RunningOnMono ) {
Utils.LogWarning( "You are running on Mono, but this build does not support the Mono workaround." );
Utils.LogWarning( "You should either download the Mono compatible build or define '__MonoCS__' when targeting Mono. " +
"(The Mono compiler already defines this by default)" );
Utils.LogWarning( "You will likely experience an 'Internal error (no progress possible) ReadInternal' exception when decompressing the map." );
}
#endif
mapSizeIndex = 0;
mapIndex = 0;