MZ [CGMZ] Exit To Desktop

[CGMZ] Exit To Desktop
By: Casper Gaming
Last Update: December 28, 2025
Latest Version: 1.1.0
​

Forum-Header-Introduction.png

Adds an option to close the game completely in the title screen, game end screen, and (if using CGMZ GameOver) in the game over screen as well.
Forum-Header-Features.png

  • Exit game to desktop on title screen
  • Exit game to desktop on game end screen
Forum-Header-Screenshots.png

Spoiler: Screenshots
Exit the game from the in-game main menu
FjeShpY.png

Exit the game to desktop from title screen
jnGvOtA.png
Forum-Header-HowTo.png

Import into plugin manager and enable the plugin. Some customization options available. Further instructions in plugin.

Documentation can be found on my website.
User documentation can be found on the Casper Gaming Wiki.
Forum-Header-Download.png

Plugin (along with all my other plugins) can be found here: https://www.caspergaming.com/plugins/cgmz/exittodesktop/
Requires [CGMZ] Core plugin: https://www.caspergaming.com/plugins/cgmz/core/

Also available on Itch.io:
Forum-Header-CreditAndTerms.png

https://www.caspergaming.com/terms-of-use/
Forum-Header-VersionHistory.png

Spoiler: Version History
Version 1.0.1
  • Added Spanish help documentation language
Version 1.0.2
  • Added options to hide in each individual window
  • Fixed bug with command window sizes and hide in browser parameter
Version 1.1.0
  • Added plugin command to exit the game
Always good to have that feature. Makes it feel complete being able to exit to desktop. Thanks Casper.
@casper667 Nice Plugin Casper, would it be also possible to add a loading and save function into this?
I always thought mvs and mzs way of doing things where weird, the idea is as follows.

No save menu no game end menu, instead:
Game System Menu:

Save Game
Load Game
Return to Title
End Game

All In one Menu, which would be the alternate "game end menu" and just renamed to system menu.
Let me know your thoughts.

Edit: The default save menu can just be disabled in system tabs of the engine anyway.
And your plugin could also give the option to disable or enable certain functions.
So developers have free control of that customization for there game.
Just putting it in the plugin settings would be the best solution.
@Heartless_Angel I think it makes sense, but since you can already partially do that with CGMZ Menu Command Window (hiding save from main menu, changing name of game end menu, just can't show save/load in the game end menu) I will release another plugin that lets you have similar control over the game end menu so you can call your own custom scenes from there as well (maybe you want Options as well or some other plugin's custom scene, but someone else doesn't).
Thank you for this. It boggles my mind why they took this option out in the default game.
version-101.png

Hi all, this plugin received a small update today to version 1.0.1! 👋

This update adds Spanish language help documentation.

Version 1.0.1
  • Added Spanish help documentation language
version-102.png

Hi all, this plugin received a minor update today to version 1.0.2! 👋

This update fixes a bug that would cause it to improperly resize some command windows in browser deploys. Previously, it would still resize the window even if the option to hide in browser was enabled. It should now also be more compatible with other plugins that change these command windows.

This update also adds an option to hide the exit game command in each of the various windows it can appear in.

Version 1.0.2
  • Added options to hide in each individual window
  • Fixed bug with command window sizes and hide in browser parameter
version-110.png

Hi all, today this plugin was updated to version 1.1.0! 👋

This version adds a plugin command that can exit the game, allowing you to event an exit game choice or otherwise use the option to exit the game in your events.

Version 1.1.0
  • Added plugin command to exit the game

Original thread: https://forums.rpgmakerweb.com/threads/cgmz-exit-to-desktop.128944/