mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Add importing and exporting replays
This commit is contained in:
@@ -15,7 +15,7 @@ function GameMode:new(player_name, input_file, replay_grade)
|
||||
|
||||
if player_name == nil then self.training = true else self.training = false end
|
||||
if input_file ~= nil then
|
||||
input_file = love.filesystem.newFile(REPLAY_DIR..input_file, 'r'):read()
|
||||
input_file = love.filesystem.read(REPLAY_DIR..input_file)
|
||||
input_file = lualzw.decompress(input_file)
|
||||
local seed = self:getInputPieceSeq(input_file)
|
||||
self.replay_inputs = self:getReplayInputs(input_file)
|
||||
|
||||
Reference in New Issue
Block a user