mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
Add runtime warning when running a build without the Mono workaround on Mono.
This commit is contained in:
parent
8898d0722b
commit
918e81f8bb
@ -297,6 +297,12 @@ namespace ClassicalSharp {
|
|||||||
gzipStream = new DeflateStream( gzippedMap, true );
|
gzipStream = new DeflateStream( gzippedMap, true );
|
||||||
#else
|
#else
|
||||||
gzipStream = new DeflateStream( gzippedMap, CompressionMode.Decompress );
|
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
|
#endif
|
||||||
mapSizeIndex = 0;
|
mapSizeIndex = 0;
|
||||||
mapIndex = 0;
|
mapIndex = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user