fix ENABLE_IMGUI=0 build

This commit is contained in:
Adam Jensen 2023-02-28 01:36:36 +00:00
parent 380a996486
commit 3fc3b41f09
4 changed files with 8 additions and 2 deletions

View File

@ -13,7 +13,7 @@
#include "cdcFile/FileUserBufferReceiver.h"
extern "C" {
#include "../miniz/miniz.h"
#include "miniz/miniz.h"
}
extern char pathPrefix[36];

View File

@ -2,7 +2,7 @@
#include "Sample.h"
#include <cstdio>
#include "../fmod/fmod_errors.h"
#include "fmod/fmod_errors.h"
namespace cdc {

View File

@ -1,4 +1,5 @@
#include <cstdio>
#include <cstring>
#include "config.h"
#include "SceneLayer.h" // for StreamingCallback
#include "stream.h"

View File

@ -124,6 +124,7 @@ public:
DRMIndex drmIndex;
#if ENABLE_IMGUI
struct DRMExplorer {
void draw(bool *showWindow) {
@ -209,6 +210,7 @@ struct DRMExplorer {
ImGui::End();
}
} drmexplorer;
#endif
int spinnyCube(HWND window) {
@ -599,6 +601,9 @@ int spinnyCube(HWND window) {
mainMenuMovieController.movieInstance = &mainMenuInstance;
mainMenuInstance.init();
#else
mouseLook = true;
mouseKeyboard->setCursorGrab(true);
#endif
std::unordered_map<cdc::IRenderTerrain*, cdc::CommonRenderTerrainInstance *> renderTerrainInstances;