Save custom mode (#1007)

* first step to save custom game

* localize various settings in custom game

* rename fields to lower cases

* fix many bugs

* fixes #1014
This commit is contained in:
Imple Lee
2023-10-20 01:42:04 +08:00
committed by GitHub
parent 7ac2c282f6
commit 90c428cf44
13 changed files with 240 additions and 158 deletions

View File

@@ -52,6 +52,9 @@ local function _playRep(fileName)
DATA.pumpRecording(rep.data,GAME.rep)
loadGame(rep.mode,true)
if rep.private and GAME.curMode.loadPrivate then
GAME.curMode.loadPrivate(rep.private)
end
resetGameData('r')
PLAYERS[1].username=rep.player
PLAYERS[1]:startStreaming(GAME.rep)