mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-29 12:52:18 -05:00
Fixes collision viewer (#2949)
This commit is contained in:
parent
f3672a480f
commit
451ce8b107
@ -655,7 +655,7 @@ template <typename T> size_t ResetVector(T& vec) {
|
||||
return vec.capacity();
|
||||
}
|
||||
|
||||
void DrawColViewer() {
|
||||
extern "C" void DrawColViewer() {
|
||||
if (gPlayState == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
@ -2,8 +2,12 @@
|
||||
|
||||
#include <libultraship/libultraship.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
void DrawColViewer();
|
||||
|
||||
#ifdef __cplusplus
|
||||
class ColViewerWindow : public LUS::GuiWindow {
|
||||
public:
|
||||
using GuiWindow::GuiWindow;
|
||||
@ -11,4 +15,5 @@ class ColViewerWindow : public LUS::GuiWindow {
|
||||
void InitElement() override;
|
||||
void DrawElement() override;
|
||||
void UpdateElement() override {};
|
||||
};
|
||||
};
|
||||
#endif
|
@ -4,6 +4,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "soh/Enhancements/debugger/colViewer.h"
|
||||
#include "soh/Enhancements/gameconsole.h"
|
||||
|
||||
#define GFXPOOL_HEAD_MAGIC 0x1234
|
||||
@ -278,6 +279,7 @@ void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) {
|
||||
|
||||
GameState_ReqPadData(gameState);
|
||||
GameState_Update(gameState);
|
||||
DrawColViewer();
|
||||
|
||||
OPEN_DISPS(gfxCtx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user