diff --git a/src/engine/core/repl/main.lua b/src/engine/core/repl/main.lua index 17fb345..6ab70cb 100644 --- a/src/engine/core/repl/main.lua +++ b/src/engine/core/repl/main.lua @@ -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') @@ -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)