Skip to content

Commit

Permalink
Turn off a few Love2D modules, remove OpenAL32.dll from final exe.
Browse files Browse the repository at this point in the history
  • Loading branch information
quad-damage committed Jun 12, 2024
1 parent 468ea55 commit 18bb76b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ echo Copying intermediate Love2D files...
copy /V /Y "%LOVE_PATH%\love.exe" /B "intermediate\" > nul
copy /V /Y "%LOVE_PATH%\love.dll" /B "intermediate\" > nul
copy /V /Y "%LOVE_PATH%\lua51.dll" /B "intermediate\" > nul
copy /V /Y "%LOVE_PATH%\OpenAL32.dll" /B "intermediate\" > nul
rem copy /V /Y "%LOVE_PATH%\OpenAL32.dll" /B "intermediate\" > nul
copy /V /Y "%LOVE_PATH%\SDL2.dll" /B "intermediate\" > nul

cd source
Expand All @@ -65,7 +65,8 @@ copy /b love.exe + build.love r1delta_installer.exe >nul
ResourceHacker.exe -open r1delta_installer.exe -save r1delta_installer.exe -action addoverwrite -res ..\r1delta_installer_patch.res -mask ,,, >nul

echo Building 7-Zip archive...
7z.exe a -y r1delta_installer.7z r1delta_installer.exe love.dll lua51.dll OpenAL32.dll SDL2.dll >nul
rem 7z.exe a -y r1delta_installer.7z r1delta_installer.exe love.dll lua51.dll OpenAL32.dll SDL2.dll >nul
7z.exe a -y r1delta_installer.7z r1delta_installer.exe love.dll lua51.dll SDL2.dll >nul

echo Building 7-Zip SFX archive...
copy /V /Y "!7ZIP_PATH!\7zS2.sfx" /B "7zS2.sfx" >nul
Expand Down
19 changes: 19 additions & 0 deletions source/conf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,23 @@ function love.conf(t)
t.window.width = 414
t.window.height = 171
t.console = false

t.modules.audio = false
t.modules.data = true
t.modules.event = true
t.modules.font = true
t.modules.graphics = true
t.modules.image = true
t.modules.joystick = false
t.modules.keyboard = true
t.modules.math = true
t.modules.mouse = true
t.modules.physics = false
t.modules.sound = false
t.modules.system = true
t.modules.thread = true
t.modules.timer = true
t.modules.touch = false
t.modules.video = true
t.modules.window = true
end

0 comments on commit 18bb76b

Please sign in to comment.