赞 | 12 |
VIP | 107 |
好人卡 | 6 |
积分 | 4 |
经验 | 31122 |
最后登录 | 2024-6-29 |
在线时间 | 1606 小时 |
Lv2.观梦者 傻♂逼
- 梦石
- 0
- 星屑
- 374
- 在线时间
- 1606 小时
- 注册时间
- 2007-3-13
- 帖子
- 6562
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
自我检查程序的完整性
- $file_list = [
- "Game.rvproj",
- "Game.ini",
- "Game.exe",
- "Data/Actors.rvdata",
- "Data/Animations.rvdata",
- "Data/Areas.rvdata",
- "Data/Armors.rvdata",
- "Data/Enemies.rvdata",
- "Data/Items.rvdata",
- "Data/MapInfos.rvdata",
- "Data/Map001.rvdata",
- "Data/CommonEvents.rvdata",
- "Data/Classes.rvdata",
- "Data/Scripts.rvdata",
- "Data/Skills.rvdata",
- "Data/States.rvdata",
- "Data/System.rvdata",
- "Data/Troops.rvdata",
- "Data/Weapons.rvdata"
- ]
- for filename in $file_list
- a = filename
- if Dir.glob(a).size > 0
- b = a.split(/./)[1]
- while (b.to_s).split(/./)[1] != nil
- b = a.split(/./)[1]
- end
- case b
- when "png"
- c = Bitmap.new(a)
- when "bmp"
- c = Bitmap.new(a)
- when "jpg"
- c = Bitmap.new(a)
- when "bmp"
- c = Bitmap.new(a)
- when "ogg"
- Audio.bgm_play(a)
- when "mp3"
- Audio.bgm_play(a)
- when "mdi"
- Audio.bgm_play(a)
- when "wma"
- Audio.bgm_play(a)
- when "wav"
- Audio.bgm_play(a)
- when "rvdata"
- file = File.open(a,"rb")
- tp = Marshal.load(file)
- file.close
- end
- else
- p a
- exit
- end
- end
复制代码 |
|