Skip to content

Commit

Permalink
Merge pull request #616 from l-Luna/fix/luaboot
Browse files Browse the repository at this point in the history
  • Loading branch information
DemoJameson authored Apr 26, 2023
2 parents 2fda8ed + 3fed148 commit 72f654d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Celeste.Mod.mm/Content/Lua/boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -642,16 +642,16 @@ table.insert(package.searchers, loaderVirtualFS)

-- Vex forced me to do this.
local function loaderCS(name)
name = name and (name:match("^cs%.(.*)") or name:match("^#(.*)"))
if not name then
local stripped = name and (name:match("^cs%.(.*)") or name:match("^#(.*)"))
if not stripped then
return "\n\tNot a C# reference: " .. name
end

local found = cs
for key in name:gmatch("[^.]+") do
for key in stripped:gmatch("[^.]+") do
found = found[key]
if not found then
return "\n\tC# reference not found: " .. name
return "\n\tC# reference not found: " .. stripped
end
end

Expand Down

0 comments on commit 72f654d

Please sign in to comment.