Fix compile (#199)

* Fixes made so far

* Fixes up until linking

* Moved GetInterpreter() to a single function under the Engine.h

* Updated shader files included with assets, added exception for Linux for including SDL2_net

* Removed osSetTime stub(for now)

* Adjustments to get it to compile + run

* Decoupled GetInterpreter() from the GameEngine Class, corrected a invalid include in SpaghettiGui.cpp

---------

Co-authored-by: sitton76 <58642183+sitton76@users.noreply.github.com>
This commit is contained in:
MegaMech
2025-05-15 15:25:18 -06:00
committed by GitHub
parent e7415ec072
commit 7cc9894aa1
14 changed files with 52 additions and 73 deletions
+1
View File
@@ -30,6 +30,7 @@ namespace Editor {
Editor::Editor() {
}
std::vector<Mtx> EditorMatrix;
void Editor::Load() {
printf("Editor: Loading Editor...\n");
eObjectPicker.Load();
+2 -2
View File
@@ -28,7 +28,7 @@ bool IsInGameScreen() {
Ship::Coords mouse = wnd->GetMousePos();
// Define viewport boundaries
auto gfx_current_game_window_viewport = GameEngine::GetInterpreter().get()->mGameWindowViewport;
auto gfx_current_game_window_viewport = GetInterpreter()->mGameWindowViewport;
int left = gfx_current_game_window_viewport.width;
int right = left + OTRGetGameRenderWidth();
int top = gfx_current_game_window_viewport.height;
@@ -43,7 +43,7 @@ FVector ScreenRayTrace() {
Camera* camera = &cameras[0];
Ship::Coords mouse = wnd->GetMousePos();
auto gfx_current_game_window_viewport = GameEngine::GetInterpreter().get()->mGameWindowViewport;
auto gfx_current_game_window_viewport = GetInterpreter()->mGameWindowViewport;
mouse.x -= gfx_current_game_window_viewport.width;
mouse.y -= gfx_current_game_window_viewport.height;
// Get screen dimensions