Skip to content

Commit

Permalink
xrEngine/device.cpp: clean up includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Dec 16, 2023
1 parent 71eb6b2 commit 3081a85
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions src/xrEngine/device.cpp
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
#include "stdafx.h"
#include "xrCDB/Frustum.h"

#include "x_ray.h"
#include "Render.h"

#include "xrCore/FS_impl.h"
#include "xrCore/Threading/TaskManager.hpp"
#include "xrScriptEngine/ScriptExporter.hpp"

#include "xrSASH.h"
#include "IGame_Persistent.h"
#include "xrScriptEngine/ScriptExporter.hpp"
#include "XR_IOConsole.h"
#include "xr_input.h"

#include <thread>
#include "IGame_Level.h"
#include "IGame_Persistent.h"

#include <SDL.h>

// mmsystem.h
#if defined(XR_PLATFORM_WINDOWS)
#define MMNOSOUND
#define MMNOMIDI
#define MMNOAUX
#define MMNOMIXER
#define MMNOJOY
#include <mmsystem.h>
#endif

ENGINE_API CRenderDevice Device;
ENGINE_API CLoadScreenRenderer load_screen_renderer;

Expand Down Expand Up @@ -146,7 +134,6 @@ void CRenderDevice::RenderEnd(void)
mProjectSaved = mProject;
}

#include "IGame_Level.h"
void CRenderDevice::PreCache(u32 amount, bool wait_user_input)
{
if (GEnv.isDedicatedServer)
Expand Down Expand Up @@ -526,7 +513,6 @@ void CRenderDevice::FrameMove()
}

ENGINE_API bool bShowPauseString = true;
#include "IGame_Persistent.h"

void CRenderDevice::Pause(bool bOn, bool bTimer, bool bSound, [[maybe_unused]] pcstr reason)
{
Expand Down

0 comments on commit 3081a85

Please sign in to comment.