Skip to content

Commit

Permalink
style: fixes luau linter
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoDornelles committed Oct 4, 2024
1 parent c8f74f3 commit 1888121
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .luaurc
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
"native_draw_color",
"native_draw_flush",
"native_draw_font",
"native_draw_image",
"native_draw_line",
"native_draw_rect",
"native_draw_start",
"native_draw_text",
"native_get_system_lang",
"io"
]
}
1 change: 1 addition & 0 deletions src/engine/core/native/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function native_callback_init(width, height, game_lua)
:package('@color', engine_color)
:package('@draw.fps', engine_draw_fps)
:package('@draw.poly', engine_draw_poly, native_dict_poly)
:package('@memory', engine_memory)
:package('load', zeebo_module.load)
:package('math', engine_math.clib)
:package('math.random', engine_math.clib_random)
Expand Down
5 changes: 2 additions & 3 deletions src/lib/engine/memory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@ local function gc_clear_all()
local items = #memory_list

while index <= items do
cache_clear(memory_list[index])
unset(memory_list[index])
index = index + 1
end

memory_list = {}
memory_queue_list = {}

return items
end
Expand All @@ -97,7 +96,7 @@ local function install(std, game, application)
std.mem.gc_clear_all = gc_clear_all

return {
std={mem=mem}
mem=std.mem
}
end

Expand Down

0 comments on commit 1888121

Please sign in to comment.