1
\$\begingroup\$

How can I restart a LibGDX game to apply certain changes to the game such as changes to the resolution (going from 1920X1080 to 1280X720), or changing full screen.
Granted the resize(int width, int height) can help with the resolution change, but I need to change other settings as well so I rather restart the game and continue from the options menu instead of forcing the user to manually exit the game and then restart it.

\$\endgroup\$
3
\$\begingroup\$

After 3 days of working I managed to work around it, I created this git repository so people can use it, it says everything there. Git Repository Enjoy, those who need it.


EDIT: Not the solution.
EDIT: The solution is located here.

\$\endgroup\$
  • \$\begingroup\$ Can you quote the relevant part of your code here, in case you delete your repository later? That way, people on this site can still see how you did it. \$\endgroup\$ – ashes999 Jun 26 '14 at 23:35
  • \$\begingroup\$ Sure, give me a minute. \$\endgroup\$ – Aon GoltzCrank Jun 26 '14 at 23:41
  • \$\begingroup\$ I am not approving this because of the fact this while it gives you the DesktopLauncher class, you still can not restart the game due to an error, I'll post a new problem since it's a different issue, and once I have that resolved I'll come back and change it to the complete answer. \$\endgroup\$ – Aon GoltzCrank Jun 27 '14 at 17:56
  • \$\begingroup\$ This is too much code to be useful, instead of just the part relevant to the question. \$\endgroup\$ – ashes999 Jun 27 '14 at 21:01
  • \$\begingroup\$ Like I said, this isn't the answer, so once I have the answer I'll write it, for now I'm removing the code, whoever wants the code it's in the repository. \$\endgroup\$ – Aon GoltzCrank Jun 27 '14 at 21:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.