Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Jun 2, 2014
2 parents bd85c2c + da1062c commit ecde096
Show file tree
Hide file tree
Showing 38 changed files with 650 additions and 115 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ battle_detail
*.saved.*
test*.py
desktop.ini
verinfo.txt
verinfo.txt
plugins/gacha_stat.py
53 changes: 53 additions & 0 deletions cross_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
LOCALE = locale.getdefaultlocale()[0]
CODEPAGE = locale.getdefaultlocale()[1]
NICE_TERM = 'NICE_TERM' in os.environ
ANDROID = 'ANDROID_ARGUMENT' in os.environ
convhans = lambda x:x
try:
import ZhConversion
Expand All @@ -37,6 +38,9 @@
) \
or sys.path[1].decode(sys.getfilesystemencoding()) # pyinstaller build

if ANDROID:
sys.path.insert(0, opath.join(getPATH0, 'modules.zip'))

raw_du8 = (IRONPYTHON or PYTHON3) and \
(lambda str:str) or \
(lambda str:convhans(str).decode('utf-8'))
Expand Down Expand Up @@ -78,3 +82,52 @@ def _win_getpass(prompt='Password:', stream=None):
import getpass
getpass = getpass.getpass

wsa_errors = None
if sys.platform.startswith('win'):
wsa_errors = {
10004:'中断函数调用',
10013:'权限被拒绝',
10014:'错误的地址',
10022:'参数无效',
10024:'打开的文件太多',
10035:'资源暂时不可用',
10036:'现在正在进行的操作',
10037:'操作已在进行',
10038:'套接字操作非插座进行插座上的',
10039:'所需的目标地址',
10040:'消息太长',
10041:'协议的套接字类型不正确',
10042:'错误的协议选项',
10043:'不支持的协议',
10044:'套接字类型不受支持',
10045:'不支持此操作',
10046:'协议系列不支持',
10047:'系列协议系列不支持地址',
10048:'地址已在使用中',
10049:'无法分配请求的地址',
10050:'网络出现故障',
10051:'网络不可访问',
10052:'网络中断连接重置',
10053:'软件造成连接终止',
10054:'连接被对等方重置',
10055:'没有可用的缓冲区空间',
10056:'套接字已连接',
10057:'套接字未连接',
10058:'套接字关闭后无法发送',
10060:'连接已超时',
10061:'连接被拒绝',
10064:'主机已关闭',
10065:'没有到主机的路由',
10067:'进程太多。',
10091:'网络子系统不可用。',
10092:'超出范围的 Winsock.dll 版本',
10093:'还没有执行成功的 WSAStartup',
10101:'正在进行的正常关机',
10109:'类找不到类型',
11001:'找不到主机。没有此主机不存在。',
11002:'没有发现非权威主机',
11003:'这是一个不可恢复的错误。',
11004:'有效的名称、 请求类型的任何数据记录'
}


4 changes: 4 additions & 0 deletions db/boss.cn.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,7 @@
30211,塞拉利斯,22080
30212,觉醒的塞拉利斯,38088
30213,暴走的塞拉利斯,62192
30214,清老头,20976
30215,觉醒的清老头,34702
30216,绿一色,20976
30217,觉醒的绿一色,34702
8 changes: 8 additions & 0 deletions db/boss.jp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,14 @@
4353,覚醒マカロニ,73000
4354,ポティナラ,23500
4355,覚醒ポティナラ,63000
4356,御坂美琴 -電撃解放-,35500
4357,覚醒 御坂美琴 -電撃解放-,76300
4358,神裂火織,25500
4359,覚醒 神裂火織,66300
4360,鳴護アリサ -歌声解放-,50600
4361,覚醒 鳴護アリサ -歌声解放-,99560
4362,どーにゃつ,50600
4363,覚醒 どーにゃつ,119560
9000,ルセーブ,22448
9001,ルセーブ,22448
9002,ルセーブ,22448
Expand Down
8 changes: 8 additions & 0 deletions db/boss.kr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@
2106,각성 멜트,75900
2107,라벤더,46423
2108,각성 라벤더,85008
2109,에텔,30360
2110,각성 에텔,69589
2111,라에린,43277
2112,각성 라에린,80702
3000,아서 - 마법의 파-,167440
3001,아서 -기교의 장-,189520
3002,아서 -검술의 성-,167440
Expand Down Expand Up @@ -392,3 +396,7 @@
60154,각성 메리골드,51226
60155,로즈,20958
60156,각성 로즈,37260
60157,아델라,17388
60158,각성 아델라,46920
60159,안젤리아,20332
60160,각성 안젤리아,33433
8 changes: 8 additions & 0 deletions db/boss.tw.txt
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,14 @@
50076,米莎羅娜,79120
50077,覺醒.米莎蘿娜,55200
50078,閃耀.米莎蘿娜,46920
50079,近衛隊長艾莉娜,38640
50080,覺醒隊長艾莉娜,46846
50081,雷雲之將庫洛德,48429
50082,覺醒雷雲庫洛德,45080
50083,鋼鐵姫尤咪爾,33856
50084,武器商卡特蕾爾,42228
50085,逢魔女王奧朵菈,44620
50086,強化.逢魔女王奧朵菈,35346
60001,凱爾皮,17664
60002,覺醒凱爾皮,12806
60003,藍帽子,16983
Expand Down
Loading

0 comments on commit ecde096

Please sign in to comment.