Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created February 24, 2024 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triacontane/70aaeacecdad6e550cd73d76767e2c92 to your computer and use it in GitHub Desktop.
Save triacontane/70aaeacecdad6e550cd73d76767e2c92 to your computer and use it in GitHub Desktop.
セーブ画面でオートセーブを無視する
/*:
* @target MZ
* @plugindesc セーブ画面でオートセーブを無視する
* @author RPG Maker MZ Mentor
* @help NoAutoSaveInSaveScreen.js
*
* このプラグインは、セーブ画面でオートセーブを無視します。
*/
(() => {
const _Scene_File_needsAutosave = Scene_File.prototype.needsAutosave;
Scene_File.prototype.needsAutosave = function() {
// Scene_Saveの時はfalseを返してオートセーブを無効にする
if (this instanceof Scene_Save) {
return false;
}
// それ以外の場合は元のメソッドの動作に従う
return _Scene_File_needsAutosave.call(this);
};
})();
@triacontane
Copy link
Author

triacontane commented Feb 24, 2024

GPT-4にて生成しました。
以下が生成記録です。
https://chat.openai.com/share/65a0ccd1-0c34-44b0-9075-102d8992541e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment