Skip to content

Commit

Permalink
Runtime: Fix linux portability
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanbaburajan committed Jul 27, 2024
1 parent b8e5d57 commit 36cca93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
5 changes: 5 additions & 0 deletions Runtime/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()");

Expand Down

0 comments on commit 36cca93

Please sign in to comment.