mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-21 13:53:49 -07:00
Fixes collision viewer (#2949)
This commit is contained in:
parent
f3672a480f
commit
451ce8b107
3 changed files with 9 additions and 2 deletions
|
@ -655,7 +655,7 @@ template <typename T> size_t ResetVector(T& vec) {
|
||||||
return vec.capacity();
|
return vec.capacity();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DrawColViewer() {
|
extern "C" void DrawColViewer() {
|
||||||
if (gPlayState == nullptr) {
|
if (gPlayState == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,12 @@
|
||||||
|
|
||||||
#include <libultraship/libultraship.h>
|
#include <libultraship/libultraship.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
void DrawColViewer();
|
void DrawColViewer();
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
class ColViewerWindow : public LUS::GuiWindow {
|
class ColViewerWindow : public LUS::GuiWindow {
|
||||||
public:
|
public:
|
||||||
using GuiWindow::GuiWindow;
|
using GuiWindow::GuiWindow;
|
||||||
|
@ -12,3 +16,4 @@ class ColViewerWindow : public LUS::GuiWindow {
|
||||||
void DrawElement() override;
|
void DrawElement() override;
|
||||||
void UpdateElement() override {};
|
void UpdateElement() override {};
|
||||||
};
|
};
|
||||||
|
#endif
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "soh/Enhancements/debugger/colViewer.h"
|
||||||
#include "soh/Enhancements/gameconsole.h"
|
#include "soh/Enhancements/gameconsole.h"
|
||||||
|
|
||||||
#define GFXPOOL_HEAD_MAGIC 0x1234
|
#define GFXPOOL_HEAD_MAGIC 0x1234
|
||||||
|
@ -278,6 +279,7 @@ void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) {
|
||||||
|
|
||||||
GameState_ReqPadData(gameState);
|
GameState_ReqPadData(gameState);
|
||||||
GameState_Update(gameState);
|
GameState_Update(gameState);
|
||||||
|
DrawColViewer();
|
||||||
|
|
||||||
OPEN_DISPS(gfxCtx);
|
OPEN_DISPS(gfxCtx);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue