class Scene_Save < Scene_File
alias old_on_savefile_ok on_savefile_ok
def on_savefile_ok
if @index == 0
Sound.play_buzzer
return
else
old_on_savefile_ok
end
end
alias old_first_savefile_index first_savefile_index first_savefile_index
def first_savefile_index
old_first_savefile_index
DataManager.last_savefile_index == 0 ? 1 : DataManager.last_savefile_index
end
alias old_cursor_down cursor_down
def cursor_down(wrap)
old_cursor_down(wrap)
if @index == 0
@index = 1
end
ensure_cursor_visible
end
alias old_cursor_up cursor_up
def cursor_up(wrap)
old_cursor_up(wrap)
if @index == 0
@index = 1
end
ensure_cursor_visible
end
alias old_cursor_pagedown cursor_pagedown
def cursor_pagedown
old_cursor_pagedown
if @index == 0
@index = 1
end
end
alias old_cursor_pageup cursor_pageup
def cursor_pageup
old_cursor_pageup
if @index == 0
@index = 1
end
end
end
class Scene_Save < Scene_File
alias old_on_savefile_ok on_savefile_ok
def on_savefile_ok
if @index == 0
Sound.play_buzzer
return
else
old_on_savefile_ok
end
end
alias old_first_savefile_index first_savefile_index first_savefile_index
def first_savefile_index
old_first_savefile_index
DataManager.last_savefile_index == 0 ? 1 : DataManager.last_savefile_index
end
alias old_cursor_down cursor_down
def cursor_down(wrap)
old_cursor_down(wrap)
if @index == 0
@index = 1
end
ensure_cursor_visible
end
alias old_cursor_up cursor_up
def cursor_up(wrap)
old_cursor_up(wrap)
if @index == 0
@index = 1
end
ensure_cursor_visible
end
alias old_cursor_pagedown cursor_pagedown
def cursor_pagedown
old_cursor_pagedown
if @index == 0
@index = 1
end
end
alias old_cursor_pageup cursor_pageup
def cursor_pageup
old_cursor_pageup
if @index == 0
@index = 1
end
end
end