Skip to content

Commit

Permalink
add back missing fix from EverestAPI#616
Browse files Browse the repository at this point in the history
this seems to have been clobbered at some point, as it doesn't show up in the git history on `core`, while it is on `dev`
  • Loading branch information
microlith57 committed Nov 12, 2023
1 parent 575c794 commit 01695a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Celeste.Mod.mm/Content/Lua/boot.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local luanet = _G.luanet
local luanet = _G.luanet

local symcache = {}
local function symbol(id)
Expand Down Expand Up @@ -580,16 +580,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 01695a4

Please sign in to comment.