From a3792e0c85f3ad7a3029a6a66ca8288aa6f58ae4 Mon Sep 17 00:00:00 2001 From: Maddie <52103563+maddie480@users.noreply.github.com> Date: Sat, 23 Nov 2024 21:04:32 +0100 Subject: [PATCH] Disable unused love2d features --- changelog.txt | 2 +- src/conf.lua | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index f18c975..ab13b6d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,4 +3,4 @@ and only contains the latest changes. Its purpose is to be shown in Olympus when updating. #changelog# -∙ Added some environment variables to control Olympus behavior, for use in the NixOS package \ No newline at end of file +∙ Disable unused love2d features (audio, joystick, physics, touch, video), which should prevent Olympus from appearing in sound sources \ No newline at end of file diff --git a/src/conf.lua b/src/conf.lua index 2e18482..4d03201 100644 --- a/src/conf.lua +++ b/src/conf.lua @@ -178,5 +178,13 @@ function love.conf(t) t.window.highdpi = true t.console = false + -- Disable unused love2d modules + t.modules.audio = false + t.modules.joystick = false + t.modules.physics = false + t.modules.sound = false + t.modules.touch = false + t.modules.video = false + print("pre-initialized") end