Class ReloadResult
java.lang.Object
dev.xichil.mvui.ReloadResult
What
GameBridge.reloadOptions() could not apply in the running game: the options that take effect only after
a restart. Immutable. A menu shows these to the player, e.g. "Restart to apply: fullscreenResolution".-
Method Summary
Modifier and TypeMethodDescriptionstatic ReloadResultapplied()Everything was applied live;needsRestart()is false.booleanWhether some options take effect only after a restart (restartOptions()is not empty).static ReloadResultneedsRestart(String... options) These options apply only after a restart.The options that take effect only after a restart, asoptions.txtkeys;options.txtitself if nothing could be applied.
-
Method Details
-
applied
Everything was applied live;needsRestart()is false.- Returns:
- the shared "applied" result
-
needsRestart
These options apply only after a restart. Used by backends.- Parameters:
options-options.txtkeys, e.g.fullscreenResolution, oroptions.txtfor the whole file; duplicates are dropped, order is kept- Returns:
- the result;
applied()ifoptionsis empty
-
needsRestart
public boolean needsRestart()Whether some options take effect only after a restart (restartOptions()is not empty).- Returns:
trueif at least one option needs a restart to take effect
-
restartOptions
-