Page MenuHomeWildfire Games

Move the game loading out of the SavegameLoader
ClosedPublic

Authored by phosit on Sep 16 2023, 2:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 25, 1:26 AM
Unknown Object (File)
Tue, Sep 24, 5:13 PM
Unknown Object (File)
Sun, Sep 22, 1:32 AM
Unknown Object (File)
Fri, Sep 20, 11:27 AM
Unknown Object (File)
Fri, Sep 13, 8:43 AM
Unknown Object (File)
Wed, Sep 11, 9:34 AM
Unknown Object (File)
Sep 4 2024, 3:42 PM
Unknown Object (File)
Sep 2 2024, 9:53 AM
Subscribers
Restricted Owners Package

Details

Summary

The SavegameLoader should not know that it has to start a game afterwards.
Note: Now if there's an Error in Engine.StartSavedGame(gameId); the Dialog is still closed.

This simplifies D4770.

Test Plan

Load a game from the from the main menu and the campain page.
Also test other ways the dialog can be closed (cancel, saveing of a game).

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7290/display/redirect

There is duplication but i didn't know where to put the function. Propably "gui/common/functions_global_object.js"

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8379/display/redirect

phosit edited the summary of this revision. (Show Details)

Make it a member function in CampaignMenu.

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7302/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8391/display/redirect

  • Add forgoten .bind(this)
  • Inline pData

Based on a review by elexis.

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7304/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8393/display/redirect

Use .bind instead of arrow functions more often.
Correct a indent mistake.

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7329/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8418/display/redirect

  • spaces on the inside of {}
  • use ! instead of == null

Because of CC

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7354/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/8443/display/redirect

This revision was not accepted when it landed; it landed in state Needs Review.Oct 2 2023, 9:31 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Owners added a subscriber: Restricted Owners Package.Oct 2 2023, 9:31 PM