Skip to content

Commit

Permalink
fix: missing librarys in core repl
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoDornelles authored Sep 25, 2024
1 parent 4f788ad commit f17c327
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/engine/core/repl/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ local engine_http = require('src/lib/engine/http')
local engine_encoder = require('src/lib/engine/encoder')
local engine_draw_fps = require('src/lib/draw/fps')
local engine_draw_poly = require('src/lib/draw/poly')
local protocol_curl = require('src/lib/protocol/http_curl')
local library_csv = require('src/third_party/csv/rodrigodornelles')
local library_json = require('src/third_party/json/rxi')
local application_default = require('src/lib/object/application')
local game = require('src/lib/object/game')
local std = require('src/lib/object/std')
Expand Down Expand Up @@ -79,15 +81,14 @@ local function main()
:package('@game', engine_game)
:package('@math', engine_math)
:package('@color', engine_color)
:package('@load', zeebo_module.load)
:package('@math', engine_math.clib)
:package('@random', engine_math.clib_random)
:package('@csv', engine_csv)
:package('@http', engine_http, protocol_curl)
:package('load', zeebo_module.load)
:package('math', engine_math.clib)
:package('random', engine_math.clib_random)
:package('http', engine_http, protocol_curl)
:package('csv', engine_encoder, library_csv)
:package('json', engine_encoder, library_json)
:run()

application.callbacks.init(std, game)

while true do
local index = 1
local ok, line = pcall(io.read)
Expand Down

0 comments on commit f17c327

Please sign in to comment.