| 赞 | 0  | 
 
| VIP | 35 | 
 
| 好人卡 | 32 | 
 
| 积分 | 11 | 
 
| 经验 | 37746 | 
 
| 最后登录 | 2025-11-4 | 
 
| 在线时间 | 967 小时 | 
 
 
 
 
 
Lv3.寻梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 1095 
 
        - 在线时间
 - 967 小时
 
        - 注册时间
 - 2011-5-11
 
        - 帖子
 - 438
 
 
 
 | 
	
 本帖最后由 345912390 于 2012-12-7 19:45 编辑  
 
修改DataManager页内容,以下为修改部分,自己找到对应的改一下-  #--------------------------------------------------------------------------
 
 -   # ● 判定存档文件是否存在
 
 -   #--------------------------------------------------------------------------
 
 -   def self.save_file_exists?
 
 -     !Dir.glob('Save/Save*.rvdata2').empty?
 
 -   end
 
 -    #--------------------------------------------------------------------------
 
 -   # ● 生成文件名
 
 -   #     index : 文件索引
 
 -   #--------------------------------------------------------------------------
 
 -   def self.make_filename(index)
 
 -     sprintf("Save/Save%02d.rvdata2", index + 1)
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 执行存档(没有错误处理)
 
 -   #--------------------------------------------------------------------------
 
 -   def self.save_game_without_rescue(index)
 
 -     if Dir.glob('Save).empty?#修改了一下
 
 -       Dir.mkdir("Save")
 
 -     end
 
 -     File.open(make_filename(index), "wb") do |file|
 
 -       $game_system.on_before_save
 
 -       Marshal.dump(make_save_header, file)
 
 -       Marshal.dump(make_save_contents, file)
 
 -       @last_savefile_index = index
 
 -     end
 
 -     return true
 
 -   end
 
  复制代码 |   
 
 
 
 |