It would be useful to have metadata about the save—at the very least its type; e.g., 'autosave', 'slot', 'disk'—during the Config.saves.onSave function call.
Perhaps something like a extra parameter to the call. For example (modified example from the original post):
Config.saves.onSave = function (save, type) {
switch (type) {
case 'autosave':
save.title = 'autosave';
break;
case 'disk':
save.title = prompt('Name this save or use default:', save.title);
break;
default:
save.title = 'Chapter ' + State.variables.chapter + ' bookmark';
break;
}
};
Something to that effect would be useful. Unsure at present whether there's other information, beyond the type, that could use useful to include there.
SEE: https://intfiction.org/t/modifying-custom-save-title-code/46445
It would be useful to have metadata about the save—at the very least its type; e.g.,
'autosave'
,'slot'
,'disk'
—during theConfig.saves.onSave
function call.Perhaps something like a extra parameter to the call. For example (modified example from the original post):
Something to that effect would be useful. Unsure at present whether there's other information, beyond the type, that could use useful to include there.