mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-21 03:39:57 -04:00
Keep the game installed when an update stops in the compile.
An update whose lift ran again drops the compile step's record before the compile runs, so a compile that then stopped left state.json without it, build.built_version said '' and the launcher's next start showed the first-run screen and asked for the dump. build.installed now also counts a folder that holds the exe of the build before and game files a rebuild can start from: the window opens on home, where Rebuild the Game reads "Not Finished" and Play says which build it starts, and an update's rebuild and the command line's go on with the game. Begin Installation into a folder whose game files are already unpacked builds on from them instead of reading the dump again. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -301,9 +301,18 @@ class InstallJob(Job):
|
||||
'scan', 'ready'])
|
||||
self.dump, self.game_dir = str(dump), str(game_dir)
|
||||
|
||||
def args(self):
|
||||
"""make_game.py's arguments. A game folder whose game files an earlier run already unpacked and checked
|
||||
(build.can_rebuild, build.unpacked) is built on from those, for this processor's level as a first build is:
|
||||
the dump is not read again, so an install that stopped after the RomFS image goes on although the dump
|
||||
was moved or deleted since, and the 26 GB image is not packed a second time."""
|
||||
if build.can_rebuild(self.game_dir) and build.unpacked(self.game_dir):
|
||||
return build.rebuild_args(self.ctx.layout, self.game_dir, retune=True)
|
||||
return build.install_args(self.ctx.layout, self.dump, self.game_dir)
|
||||
|
||||
def run(self):
|
||||
self.ensure_tools('tools')
|
||||
self.make_game(build.install_args(self.ctx.layout, self.dump, self.game_dir),
|
||||
self.make_game(self.args(),
|
||||
{s: s for s in ('check', 'exefs', 'romfs', 'lift', 'compile', 'shaders', 'prompts', 'scan')})
|
||||
for sid in ('shaders', 'prompts', 'scan'):
|
||||
if self.step(sid) and self.step(sid).state == PENDING:
|
||||
|
||||
Reference in New Issue
Block a user