| 赞 | 5  | 
 
| VIP | 620 | 
 
| 好人卡 | 38 | 
 
| 积分 | 70 | 
 
| 经验 | 125468 | 
 
| 最后登录 | 2015-7-27 | 
 
| 在线时间 | 1666 小时 | 
 
 
 
 
 
Lv4.逐梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 6955 
 
        - 在线时间
 - 1666 小时
 
        - 注册时间
 - 2008-10-29
 
        - 帖子
 - 6710
 
 
  
 
 | 
	
 本帖最后由 后知后觉 于 2010-4-28 19:34 编辑  
 
1.标题无法使用的情况其实是个囧囧的问题 
  在Scene_Title里有一行 Audio.me_stop 
2.默认的 FileTest.exist?  是无法检测 带有汉字路径的文件名的 
  关于这个问题的修复看我下面帖的脚本 
- PathFileExists = Win32API.new("shlwapi", "PathFileExistsW", "P", "I")
 
 - MultiByteToWideChar = Win32API.new("kernel32", "MultiByteToWideChar", "ILPIPI", "I")
 
 - def FileTest.exists?(filename)
 
 -   len = MultiByteToWideChar.call(65001, 0, filename, -1, 0, 0) << 1
 
 -   buf = " " * len
 
 -   MultiByteToWideChar.call(65001, 0, filename, -1, buf, len)
 
 -   return PathFileExists.call(buf) == 0 ? false : true
 
 - end
 
  复制代码 |   
 
 
 
 |