| 赞 | 5 |
| VIP | |
| 好人卡 | |
| 积分 | 71 |
| 经验 | |
| 最后登录 | 2015-7-27 |
| 在线时间 | 1666 小时 |
- 梦石
- 0
- 星屑
- 7095
- 在线时间
- 1666 小时
- 注册时间
- 2008-10-29
- 回帖
- 6612

|
发表于 2009-12-7 13:25:05
|
显示全部楼层
本帖最后由 后知后觉 于 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
复制代码 |
|