Drop dependency on IrrCompileConfig

The only remaining thing is IRRLICHT_SDK_VERSION via irrlicht.h
This commit is contained in:
numzero 2023-02-22 21:38:32 +03:00 committed by sfan5
parent 39f4d26177
commit d6be6682ec
11 changed files with 1 additions and 35 deletions

@ -553,13 +553,9 @@ void ClientLauncher::main_menu(MainMenuData *menudata)
m_rendering_engine->get_raw_device()->getCursorControl()->setVisible(true); m_rendering_engine->get_raw_device()->getCursorControl()->setVisible(true);
// Set absolute mouse mode // Set absolute mouse mode
#if IRRLICHT_VERSION_MT_REVISION >= 9
m_rendering_engine->get_raw_device()->getCursorControl()->setRelativeMode(false); m_rendering_engine->get_raw_device()->getCursorControl()->setRelativeMode(false);
#endif #endif
#endif
/* show main menu */ /* show main menu */
GUIEngine mymenu(&input->joystick, guiroot, m_rendering_engine, &g_menumgr, menudata, *kill); GUIEngine mymenu(&input->joystick, guiroot, m_rendering_engine, &g_menumgr, menudata, *kill);

@ -2549,7 +2549,7 @@ void Game::checkZoomEnabled()
void Game::updateCameraDirection(CameraOrientation *cam, float dtime) void Game::updateCameraDirection(CameraOrientation *cam, float dtime)
{ {
#if !defined(__ANDROID__) && IRRLICHT_VERSION_MT_REVISION >= 9 #ifndef __ANDROID__
if (isMenuActive()) if (isMenuActive())
device->getCursorControl()->setRelativeMode(false); device->getCursorControl()->setRelativeMode(false);
else else

@ -21,7 +21,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <algorithm> #include <algorithm>
#include <ICameraSceneNode.h> #include <ICameraSceneNode.h>
#include <IrrCompileConfig.h>
#include "util/string.h" #include "util/string.h"
#include "util/container.h" #include "util/container.h"
#include "util/thread.h" #include "util/thread.h"

@ -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. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include <IrrCompileConfig.h>
#include "settings.h" #include "settings.h"
#include "porting.h" #include "porting.h"
#include "filesys.h" #include "filesys.h"
@ -208,11 +207,7 @@ void set_default_settings()
settings->setDefault("texture_path", ""); settings->setDefault("texture_path", "");
settings->setDefault("shader_path", ""); settings->setDefault("shader_path", "");
#if ENABLE_GLES #if ENABLE_GLES
#ifdef _IRR_COMPILE_WITH_OGLES1_
settings->setDefault("video_driver", "ogles1");
#else
settings->setDefault("video_driver", "ogles2"); settings->setDefault("video_driver", "ogles2");
#endif
#else #else
settings->setDefault("video_driver", "opengl"); settings->setDefault("video_driver", "opengl");
#endif #endif

@ -4,8 +4,6 @@
#pragma once #pragma once
#include "IrrCompileConfig.h"
#include <IGUIStaticText.h> #include <IGUIStaticText.h>
#include "irrlicht_changes/static_text.h" #include "irrlicht_changes/static_text.h"
#include "IGUIButton.h" #include "IGUIButton.h"

@ -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. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include "IrrCompileConfig.h"
#include "guiChatConsole.h" #include "guiChatConsole.h"
#include "chat.h" #include "chat.h"
#include "client/client.h" #include "client/client.h"

@ -19,7 +19,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "guiEditBox.h" #include "guiEditBox.h"
#include "IrrCompileConfig.h"
#include "IGUISkin.h" #include "IGUISkin.h"
#include "IGUIEnvironment.h" #include "IGUIEnvironment.h"
#include "IGUIFont.h" #include "IGUIFont.h"

@ -5,7 +5,6 @@
// For conditions of distribution and use, see copyright notice in irrlicht.h // For conditions of distribution and use, see copyright notice in irrlicht.h
#include "guiSkin.h" #include "guiSkin.h"
#ifdef _IRR_COMPILE_WITH_GUI_
#include "IGUIFont.h" #include "IGUIFont.h"
#include "IGUISpriteBank.h" #include "IGUISpriteBank.h"
@ -1036,7 +1035,3 @@ void GUISkin::getColors(video::SColor* colors)
} // end namespace gui } // end namespace gui
} // end namespace irr } // end namespace irr
#endif // _IRR_COMPILE_WITH_GUI_

@ -5,9 +5,6 @@
#ifndef __GUI_SKIN_H_INCLUDED__ #ifndef __GUI_SKIN_H_INCLUDED__
#define __GUI_SKIN_H_INCLUDED__ #define __GUI_SKIN_H_INCLUDED__
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_GUI_
#include "IGUISkin.h" #include "IGUISkin.h"
#include "irrString.h" #include "irrString.h"
#include <string> #include <string>
@ -360,7 +357,4 @@ inline void setShading(video::SColor &color,f32 s) // :PATCH:
} }
} // end namespace irr } // end namespace irr
#endif // _IRR_COMPILE_WITH_GUI_
#endif #endif

@ -5,7 +5,6 @@
// For conditions of distribution and use, see copyright notice in irrlicht.h // For conditions of distribution and use, see copyright notice in irrlicht.h
#include "static_text.h" #include "static_text.h"
#ifdef _IRR_COMPILE_WITH_GUI_
#include <IGUIFont.h> #include <IGUIFont.h>
#include <IVideoDriver.h> #include <IVideoDriver.h>
@ -582,6 +581,3 @@ s32 StaticText::getTextWidth() const
} // end namespace gui } // end namespace gui
} // end namespace irr } // end namespace irr
#endif // _IRR_COMPILE_WITH_GUI_

@ -6,9 +6,6 @@
#pragma once #pragma once
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_GUI_
#include "IGUIStaticText.h" #include "IGUIStaticText.h"
#include "irrArray.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())); setStaticText(static_text, EnrichedString(text, static_text->getOverrideColor()));
} }
#endif // _IRR_COMPILE_WITH_GUI_