2
0
Эх сурвалжийг харах

Setting debug in PlatformInfo based on DEBUG definition

James Mitchell 6 жил өмнө
parent
commit
634c532c2f

+ 6 - 1
Source/EditorCore/Build/BsPlatformInfo.cpp

@@ -6,7 +6,12 @@
 namespace bs
 {
 	PlatformInfo::PlatformInfo()
-		:type(PlatformType::Windows), fullscreen(true), windowedWidth(1280), windowedHeight(720)
+		:type(PlatformType::Windows), fullscreen(true), windowedWidth(1280), windowedHeight(720),
+#ifdef DEBUG
+        debug(true)
+#else
+        debug(false)
+#endif
 	{ }
 
 	PlatformInfo::~PlatformInfo()