Skip to content

Commit 911ee17

Browse files
committed
feat: begin DLC 2.0
1 parent ff6b508 commit 911ee17

File tree

6 files changed

+292
-519
lines changed

6 files changed

+292
-519
lines changed

languages/english.json

+3
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
"opening link...": "opening link...",
8989
"Opened Download Link": "Opened Download Link",
9090
"Couldn't Open Link\nLink copied to clipboard": "Couldn't Open Link\nLink copied to clipboard",
91+
"DLC downloaded!": "DLC downloaded!",
92+
"Download failed": "Download failed",
93+
"DLC not found": "DLC not found",
9194
"^_Daily Challenge":"",
9295
"today's\nchallenge": "today's\nchallenge",
9396
"highscores": "highscores",

main.lua

+2-32
Original file line numberDiff line numberDiff line change
@@ -54,38 +54,8 @@
5454
--version check
5555
if love._version_major ~= 11 then error("You have an outdated version of Love2d! Get 11.4 and retry.") end
5656

57-
function preload(module, path)
58-
local full_path = module .. "/" .. path
59-
-- read from .love
60-
local data = love.filesystem.read("libs/" .. full_path)
61-
-- write to save directory
62-
love.filesystem.setIdentity("mari0_libs")
63-
if not love.filesystem.getInfo(module) then
64-
love.filesystem.createDirectory(module)
65-
end
66-
love.filesystem.write(full_path, data)
67-
-- preload module
68-
package.preload[module] = package.loadlib(love.filesystem.getSaveDirectory() .. "/" .. full_path, "luaopen_" .. module)
69-
love.filesystem.setIdentity("mari0")
70-
end
71-
72-
-- preload https module from bundled libs folder
73-
-- to be removed in LÖVE 12.0
74-
local system_os = love.system.getOS()
75-
if system_os == "Windows" and jit.arch == "x64" then
76-
preload("https", "win64.dll")
77-
elseif system_os == "Windows" and jit.arch == "x86" then
78-
preload("https", "win32.dll")
79-
elseif system_os == "Linux" then
80-
preload("https", "linux.so")
81-
elseif system_os == "OS X" then
82-
preload("https", "osx.so")
83-
end
84-
85-
local https_status, https = pcall(require, "https")
86-
if not https_status then
87-
https = nil
88-
end
57+
require("utils")
58+
hardloadhttps()
8959

9060
local debugconsole = false --debug
9161
if debugconsole then debuginputon = true; debuginput = "print()"; print("DEBUG ON") end

0 commit comments

Comments
 (0)