Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# KC changes
Added standalone app for Windows plus app closes itself upon overwriting save.



# RPGMaker Save Editor

This is a tool for editing RPGMaker save files. It currently supports save files written by RPG Maker MZ (.rmmzsave), but support for other versions of RPGMaker is planned for the future.
Expand Down
Binary file added RPGMaker_Save_Editor-win32-x64.7z
Binary file not shown.
17 changes: 11 additions & 6 deletions js/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,17 @@ function build_sections(json, context) {
function build_palette(sections, fdata) {
let palette = document.getElementById('palette');

let savebtn = document.createElement('button');
savebtn.textContent = 'Overwrite ' + fdata['filename'];
savebtn.classList.add('palette-button');
savebtn.onclick = (event) => {
handle_save(fdata['savefile'], fdata['object'], fdata['rm_root'], sections);
}
let savebtn = document.createElement('button');
savebtn.textContent = 'Overwrite ' + fdata['filename'];
savebtn.classList.add('palette-button');
savebtn.onclick = async (event) => {
try {
await handle_save(fdata['savefile'], fdata['object'], fdata['rm_root'], sections);
window.close(); // Close the current window (app).
} catch (e) {
console.error(`Error saving file: ${e}`);
}
};

let saveasbtn = document.createElement('button');
saveasbtn.textContent = 'Save as...';
Expand Down
Loading