Page MenuHomeWildfire Games

Move the game loading out of the SavegameLoader
ClosedPublic

Authored by phosit on Sep 16 2023, 2:45 PM.

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).

Event Timeline

phosit created this revision.Sep 16 2023, 2:45 PM

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 requested review of this revision.Sep 16 2023, 3:03 PM
phosit updated this revision to Diff 22276.Sep 17 2023, 5:56 PM
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

phosit updated this revision to Diff 22280.Sep 18 2023, 6:47 PM
  • 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

phosit updated this revision to Diff 22315.Sep 24 2023, 3:51 PM

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

phosit updated this revision to Diff 22350.Oct 1 2023, 5:04 PM
  • spaces on the inside of {}
  • use ! instead of == null

Because of CC

Vulcan added a comment.Oct 1 2023, 5:04 PM

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

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

Vulcan added a comment.Oct 1 2023, 5:08 PM

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