- 注册时间
- 2006-4-20
- 最后登录
- 2007-10-15
超级版主
传说中的Bunny火神~!
 
- 积分
- 1
|
发表于 2007-5-15 04:17:33
|
显示全部楼层
用这个替换原来的Scene_File:
然后用这个替换Window_SaveFile的initialize部分:- def initialize(file_index, filename, position)
- y = 64 + position * 104
- super(0, y, 640, 104)
- self.contents = Bitmap.new(width - 32, height - 32)
- @file_index = file_index
- @filename = "Save#{@file_index + 1}.rxdata"
- @time_stamp = Time.at(0)
- @file_exist = FileTest.exist?(@filename)
- if @file_exist
- file = File.open(@filename, "r")
- @time_stamp = file.mtime
- @characters = Marshal.load(file)
- @frame_count = Marshal.load(file)
- @game_system = Marshal.load(file)
- @game_switches = Marshal.load(file)
- @game_variables = Marshal.load(file)
- @total_sec = @frame_count / Graphics.frame_rate
- file.close
- end
- refresh
- @selected = false
- end
复制代码 |
|