save sync update

This commit is contained in:
bryanthaboi
2026-08-20 20:31:20 -04:00
committed by bryanthaboi
parent 90163a3ff2
commit db25c14dfb
10 changed files with 758 additions and 118 deletions
+22
View File
@@ -22,6 +22,10 @@ return function(game)
syncNow = function(self) self.status = "Checking for changes..." return true end,
unlink = function(self) self.isLinked, self.codes = false, nil return true end,
shareMods = function(self) self.shareCode = "K7QW3M" return true end,
answerModOptions = function(self, importThem)
if self.modPlan then self.modPlan.applyOptions = importThem and true or false end
return importThem
end,
fetchShare = function(self) return true end,
applyModPlan = function(self) self.modPlan = nil return true end,
resolveConflict = function(self) self.conflicts = {} self.phase = "idle" return true end,
@@ -95,6 +99,24 @@ return function(game)
U.log("share code:", tostring(eng.shareCode))
shot("sync_mods.png")
eng.modPlan.options = {
{ id = "jp_green", values = { language = "JP" } },
{ id = "randomizer", values = { seed = 1234, wild = true } },
{ id = "widescreen_hud", values = { scale = 2 } },
}
U.wait(2)
U.log("options question up:", tostring(eng.modPlan.applyOptions == nil))
shot("sync_mod_options.png")
love.window.setMode(800, 480, { resizable = true, highdpi = true })
U.wait(3)
shot("sync_mod_options_short.png")
imp:_syncAnswerModOptions(false)
U.wait(2)
shot("sync_mods_short.png")
love.window.setMode(1024, 768, { resizable = true, highdpi = true })
U.wait(3)
eng.phase = "conflict"
eng.status = "These saves were played at the same time."
eng.conflicts = { {