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

game_restart() causes the game to stop working #2

Open
DJRahimAli opened this issue Mar 12, 2021 · 1 comment
Open

game_restart() causes the game to stop working #2

DJRahimAli opened this issue Mar 12, 2021 · 1 comment

Comments

@DJRahimAli
Copy link

pls also fix :(
https://youtu.be/ojES4OB9PKg

@YellowAfterlife
Copy link
Member

YellowAfterlife commented Mar 13, 2021

game_restart is easily the most cursed function in GameMaker - it will run extension shutdown code (like on game end) and then run extension init code again (like on game start) without unloading the DLLs first. It will also leak a lot of game state such as global variables and data structures. You are most likely better off with not using the function.

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

No branches or pull requests

2 participants