Created
February 24, 2024 05:22
-
-
Save triacontane/70aaeacecdad6e550cd73d76767e2c92 to your computer and use it in GitHub Desktop.
セーブ画面でオートセーブを無視する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*: | |
* @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); | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GPT-4にて生成しました。
以下が生成記録です。
https://chat.openai.com/share/65a0ccd1-0c34-44b0-9075-102d8992541e