Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Command Line Option to Immediately Load a Game #1257

Merged
merged 1 commit into from Oct 6, 2014

Conversation

shartte
Copy link
Contributor

@shartte shartte commented Oct 5, 2014

Added a command line option "-loadlastgame" that'll simply load the latest game on startup.

@Cervator Cervator merged commit 20be2b3 into MovingBlocks:develop Oct 6, 2014
Cervator added a commit that referenced this pull request Oct 6, 2014
@Cervator
Copy link
Member

Cervator commented Oct 6, 2014

Merged! We aren't missing anything by not going through the initial engine.run normally? Certainly seems like it works fine.

Also added an associated run config (and fixed a checkstyle hit)

Maybe it would be an idea to make an option to auto-start a new world as well, rather than load? Can use an approach similar to the headless start. Or just auto-start if auto-load has nothing to load.

@shartte
Copy link
Contributor Author

shartte commented Oct 7, 2014

the engine.run() call is actually blocking until the engine is shut down ;-)

@shartte shartte deleted the loadLastGameOption branch October 7, 2014 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants