From 36cca933f61734fdd0b29dc69f5354b2e8e1fe7b Mon Sep 17 00:00:00 2001 From: Aryan Baburajan Date: Sat, 27 Jul 2024 20:39:58 +0530 Subject: [PATCH] Runtime: Fix linux portability --- Editor/Editor.cpp | 2 +- Runtime/Main.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Editor/Editor.cpp b/Editor/Editor.cpp index e1b5da66..dca514c9 100644 --- a/Editor/Editor.cpp +++ b/Editor/Editor.cpp @@ -48,7 +48,7 @@ namespace DT ImGui_ImplGlfw_InitForOpenGL(window->GetRawWindowPointer(), true); ImGui_ImplOpenGL3_Init("#version 440"); - io.Fonts->AddFontFromFileTTF((ctx.projectPath / "Engine" / "Fonts" / "Roboto" / "Roboto-Regular.ttf").string().c_str(), 18.f); + io.Fonts->AddFontFromFileTTF((ctx.projectPath / "Engine" / "Fonts" / "Roboto" / "Roboto-Regular.ttf").string().c_str(), 15.f); SetupImGuiStyle(); MaximizeWindow(); diff --git a/Runtime/Main.cpp b/Runtime/Main.cpp index 49239059..05be3171 100644 --- a/Runtime/Main.cpp +++ b/Runtime/Main.cpp @@ -155,7 +155,12 @@ int main(int argc, char *argv[]) context.AttachService(&window).Fatal("main()"); // Module +#ifdef _WIN32 Module gameModule(std::filesystem::current_path() / "DucktapeProject.dll", &err); +#endif +#ifdef __linux__ + Module gameModule(std::filesystem::current_path() / "DucktapeProject.so", &err); +#endif err.Fatal("main()"); context.AttachService(&gameModule).Fatal("main()");