]> git.lizzy.rs Git - minetest.git/commitdiff
Drop dependency on IrrCompileConfig
authornumzero <numzer0@yandex.ru>
Wed, 22 Feb 2023 18:38:32 +0000 (21:38 +0300)
committersfan5 <sfan5@live.de>
Wed, 1 Mar 2023 08:06:23 +0000 (09:06 +0100)
The only remaining thing is IRRLICHT_SDK_VERSION via irrlicht.h

src/client/clientlauncher.cpp
src/client/game.cpp
src/client/tile.cpp
src/defaultsettings.cpp
src/gui/guiButton.h
src/gui/guiChatConsole.cpp
src/gui/guiEditBox.cpp
src/gui/guiSkin.cpp
src/gui/guiSkin.h
src/irrlicht_changes/static_text.cpp
src/irrlicht_changes/static_text.h

index 843c7ad3201994453cef39b14801ddffbd5f15a8..15263de9bfcd54a59238f10047a5533fbd22d84b 100644 (file)
@@ -553,13 +553,9 @@ void ClientLauncher::main_menu(MainMenuData *menudata)
        m_rendering_engine->get_raw_device()->getCursorControl()->setVisible(true);
 
        // Set absolute mouse mode
-#if IRRLICHT_VERSION_MT_REVISION >= 9
        m_rendering_engine->get_raw_device()->getCursorControl()->setRelativeMode(false);
 #endif
 
-#endif
-
-
        /* show main menu */
        GUIEngine mymenu(&input->joystick, guiroot, m_rendering_engine, &g_menumgr, menudata, *kill);
 
index c5dc8f6d9d8337f809b2111595c12066d6184145..edd0039e9240c259f7254b911164bf94dc6842fa 100644 (file)
@@ -2549,7 +2549,7 @@ void Game::checkZoomEnabled()
 
 void Game::updateCameraDirection(CameraOrientation *cam, float dtime)
 {
-#if !defined(__ANDROID__) && IRRLICHT_VERSION_MT_REVISION >= 9
+#ifndef __ANDROID__
        if (isMenuActive())
                device->getCursorControl()->setRelativeMode(false);
        else
index 35e5585a0052c20834599c26097e1f221b4efdce..a29a6611afb3514effbaaa36f9504aa66457b95c 100644 (file)
@@ -21,7 +21,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include <algorithm>
 #include <ICameraSceneNode.h>
-#include <IrrCompileConfig.h>
 #include "util/string.h"
 #include "util/container.h"
 #include "util/thread.h"
index 659bb157e0c2e689d498ee53f791231d2704e60e..62c5e3310c3dcb214a1b2ec669a46511b8cda5fa 100644 (file)
@@ -17,7 +17,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#include <IrrCompileConfig.h>
 #include "settings.h"
 #include "porting.h"
 #include "filesys.h"
@@ -208,11 +207,7 @@ void set_default_settings()
        settings->setDefault("texture_path", "");
        settings->setDefault("shader_path", "");
 #if ENABLE_GLES
-#ifdef _IRR_COMPILE_WITH_OGLES1_
-       settings->setDefault("video_driver", "ogles1");
-#else
        settings->setDefault("video_driver", "ogles2");
-#endif
 #else
        settings->setDefault("video_driver", "opengl");
 #endif
index 5e379b28f05e220b778209472c545a582791cd1f..31105bcda4f43a8a9269fbf142f2490384bb5409 100644 (file)
@@ -4,8 +4,6 @@
 \r
 #pragma once\r
 \r
-#include "IrrCompileConfig.h"\r
-\r
 #include <IGUIStaticText.h>\r
 #include "irrlicht_changes/static_text.h"\r
 #include "IGUIButton.h"\r
index df4fd466b92f17873c2ce0646cb957d06ad1c3bb..ce58289b2cec858e891345bdf3c378cf9ea1cc1e 100644 (file)
@@ -17,7 +17,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#include "IrrCompileConfig.h"
 #include "guiChatConsole.h"
 #include "chat.h"
 #include "client/client.h"
index e25c9ace39f9da61d13232f822ef545419e90e9d..b6ee71ce9ed58f6661eeec9de05ccdabcbc83277 100644 (file)
@@ -19,7 +19,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "guiEditBox.h"
 
-#include "IrrCompileConfig.h"
 #include "IGUISkin.h"
 #include "IGUIEnvironment.h"
 #include "IGUIFont.h"
index ca692f6cbc7d5c7216f0979236f8b15f5b5fa979..5462a2fec9ea85797960d9339beaab035c64ab54 100644 (file)
@@ -5,7 +5,6 @@
 // For conditions of distribution and use, see copyright notice in irrlicht.h\r
 \r
 #include "guiSkin.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
 \r
 #include "IGUIFont.h"\r
 #include "IGUISpriteBank.h"\r
@@ -1036,7 +1035,3 @@ void GUISkin::getColors(video::SColor* colors)
 \r
 } // end namespace gui\r
 } // end namespace irr\r
-\r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
index fa9b27bddaec2e8c2e4156e8d2867184cb53fe57..e90a61290db7c5edd4e338d0ca1851bd28163d59 100644 (file)
@@ -5,9 +5,6 @@
 #ifndef __GUI_SKIN_H_INCLUDED__\r
 #define __GUI_SKIN_H_INCLUDED__\r
 \r
-#include "IrrCompileConfig.h"\r
-#ifdef _IRR_COMPILE_WITH_GUI_\r
-\r
 #include "IGUISkin.h"\r
 #include "irrString.h"\r
 #include <string>\r
@@ -360,7 +357,4 @@ inline void setShading(video::SColor &color,f32 s) // :PATCH:
 }\r
 } // end namespace irr\r
 \r
-\r
-#endif // _IRR_COMPILE_WITH_GUI_\r
-\r
 #endif\r
index 4dc4523491152cea12a7021426907baa06046467..61f4da5e10015642c9e0b83d234721070de67869 100644 (file)
@@ -5,7 +5,6 @@
 // For conditions of distribution and use, see copyright notice in irrlicht.h
 
 #include "static_text.h"
-#ifdef _IRR_COMPILE_WITH_GUI_
 
 #include <IGUIFont.h>
 #include <IVideoDriver.h>
@@ -582,6 +581,3 @@ s32 StaticText::getTextWidth() const
 } // end namespace gui
 
 } // end namespace irr
-
-
-#endif // _IRR_COMPILE_WITH_GUI_
index 93a2d86432ccf940773c6bcb08dec3cc25a72b92..3608b271c15bfbbe4201137d555f4657751c2525 100644 (file)
@@ -6,9 +6,6 @@
 
 #pragma once
 
-#include "IrrCompileConfig.h"
-#ifdef _IRR_COMPILE_WITH_GUI_
-
 #include "IGUIStaticText.h"
 #include "irrArray.h"
 
@@ -231,5 +228,3 @@ inline void setStaticText(irr::gui::IGUIStaticText *static_text, const wchar_t *
 {
        setStaticText(static_text, EnrichedString(text, static_text->getOverrideColor()));
 }
-
-#endif // _IRR_COMPILE_WITH_GUI_