diff options
-rw-r--r-- | csrc/tool_strings.c | 345 | ||||
-rw-r--r-- | r2/print_tool_strings.py | 72 |
2 files changed, 417 insertions, 0 deletions
diff --git a/csrc/tool_strings.c b/csrc/tool_strings.c new file mode 100644 index 0000000..9b664cc --- /dev/null +++ b/csrc/tool_strings.c @@ -0,0 +1,345 @@ +/* + * Copyright (C) 2018 Iru Cai <mytbk920423@gmail.com> + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#include <stddef.h> + +const char *tool_strings[12][26] = { + { + "#0236\xb4\xc0\xa7\xda\xb0\xa3\xb1\xbc\x0a\xbb\xd9\xc3\xaa\xaa\xab\xa1\x49", /* #0236替我除掉障碍物! */ + "#0237\xa6\xb9\xb8\xf4\xac\x4f\xa7\xda\xb6}\xa1\x41\x0a\xa6\xb9\xbe\xf0\xac\x4f\xa7\xda\xae\xe2\xa1\xe3", /* #0237此路是我开,此树是我栽∼ */ + "#0238\xa4\x70\xa4\xdf\xa1\x49\x0a\xa8\x42\xa8\x42\xa6\x4d\xbe\xf7\xa1\xe3", /* #0238小心!步步危机∼ */ + "#0239\xb0\x65\xa7\x41\xad\xcc\xa4@\xad\xd3\x0a\xa4\x70\xc2\xa7\xaa\xab\xa1\xe3", /* #0239送你们一个小礼物∼ */ + "#0234\xbd\xc4\xb0\xda\xa1\x49\x0a\xb3\xa5\xa4\xfb\xb8\xb9\xa1\x49", /* #0234冲啊!野牛号! */ + "#0235\xb6\xd9\xa1\x49\xc4_\xa8\xa9\xa1\xe3\x0a\xa4@\xb0_\xa5\x68\xb0\xc2\xad\xb7\xa7\x61\xa1\x49", /* #0235嗨!宝贝∼一起去兜风吧! */ + "#0240\xac\xb5\xb1\x6f\xa7\x41\x0a\xc2\xfb\xad\xb8\xaa\xaf\xb8\xf5\xa1\xe3\xa1\xe3", /* #0240炸得你鸡飞狗跳∼∼ */ + "#0241\xad\x6e\xb4\x58\xc2\x49\xa6\xb3\xb4\x58\xc2\x49\xa1\x49\x0a\xb6}\xa1\xe3", /* #0241要几点有几点!开∼ */ + "#0246\xa5\x53\xa7\xcc\xad\xcc\xa1\x49\x0a\xa4\x57\xa4\x75\xa4\x46\xa1\xe3", /* #0246兄弟们!上工了∼ */ + "#0242\xa6\x70\xaa\x47\xa6\x41\xa6^\xa8\xec\x0a\xb1\x71\xab\x65\xa1\xe3", /* #0242如果再回到从前∼ */ + "#0243\xc0\xfe\xb6\xa1\xb2\xbe\xb0\xca\xa1\x49\xa1\x49", /* #0243瞬间移动!! */ + "#0244\xa9\xee\xb0\xa3\xa4\x6a\xb6\xa4\xa8\xd3\xa4\x46\xa1\x49", /* #0244拆除大队来了! */ + "#0245\xa6\x55\xa1\xe3\xa6\xec\xa1\xe3\xc6[\xa1\xe3\xb2\xb3\x0a\xa1\x44\xa1\x44\xa1\x44\xa1\x44\xa1\x43", /* #0245各∼位∼观∼众....。 */ + NULL, + "#0247\xbd\xd6\xb4\xb1\xbe\xd7\xa7\xda\x0a\xa5\x68\xb8\xf4\xa1\x48\xa1\x49", /* #0247谁敢挡我去路?! */ + "#0248\xbd\xd6\xb3\x6f\xbb\xf2\xaf\xca\xbc\x77\xa1\x48\xa1\x49", /* #0248谁这么缺德?! */ + "#0249\xa7\xda\xa4\xa3\xad\x6e\xa1\xe3\xa1\xe3\xa1\xe3", /* #0249我不要∼∼∼ */ + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + }, + { + "#0252\xbd\xc4\xb0\xda\xa1\x49\xc4_\xa8\xa9\xa1\x49", /* #0252冲啊!宝贝! */ + "#0253\xb9\x44\xb8\xf4\xac\x49\xa4\x75\xa1\xe3", /* #0253道路施工∼ */ + "#0254\xbc\x48\xbc\x48\xa1\x49", /* #0254嘻嘻! */ + "#0255\xb0\x65\xa7\x41\xa4@\xad\xd3\x0a\xb7\x52\xaa\xba\xc2\xa7\xaa\xab\xa1\xe3", /* #0255送你一个爱的礼物∼ */ + "#0250\xa8\x53\xc0\x64\xbe\x6d\x0a\xb4\x4e\xc3\x4d\xa8\xae\xa7\x61\xa1\x49", /* #0250没骆驼就骑车吧! */ + "#0251\xa7\xda\xac\x4f\xa6\xb3\xa8\xae\xb6\xa5\xaf\xc5\xa1\x49", /* #0251我是有车阶级! */ + "#0256\xba\xcb\xb7\xc7\xa1\x41\xb5\x6f\xae\x67\xa1\x49", /* #0256瞄准,发射! */ + "#0257\xa8\xd3\xad\xd3\xa9\xaf\xb9\x42\x0a\xbc\xc6\xa6\x72\xa7\x61\xa1\x49", /* #0257来个幸运数字吧! */ + "#0262\xb6}\xa4\x75\xa4\x6a\xa6\x4e\xa1\xe3", /* #0262开工大吉∼ */ + "#0258\xa1\x75\xa6^\xa8\xec\xa5\xbc\xa8\xd3\xa1\x76\x0a\xac\xdd\xb9\x4c\xb6\xdc\xa1\x48", /* #0258「回到未来」看过吗? */ + "#0259\xb7\x52\xb7\x68\xa4\xb0\xbb\xf2\x0a\xb4\x4e\xb7\x68\xa4\xb0\xbb\xf2\xa1\x49", /* #0259爱搬什么就搬什么! */ + "#0260\xa7\xda\xc3\x68\xa9\xc0\xbc\x73\xc1\xef\x0a\xaa\xba\xa8\x46\xba\x7a\xa1\xe3", /* #0260我怀念广阔的沙漠∼ */ + "#0261\xac\xdd\xa7\xda\xaa\xba\x0a\xaf\xb5\xb1\x4b\xaa\x5a\xbe\xb9\xa1\xe3", /* #0261看我的秘密武器∼ */ + NULL, + "#0263\xb3\x51\xbe\xd7\xa6\xed\xa4\x46\xa1\xe3", /* #0263被挡住了∼ */ + "#0264\xa7\xb9\xb3\x4a\xa4\x46\xa1\xe3", /* #0264完蛋了∼ */ + "#0265\xa7\xda\xab\xe7\xbb\xf2\xb3\x6f\xbb\xf2\xb0\x49\xa1\xe3", /* #0265我怎么这么衰∼ */ + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + }, + { + "#0268\xbd\xc4\xb0\xda\xa1\xe3\x0a\xb6}\xb8\xf4\xa5\xfd\xbe\x57\xa1\x49", /* #0268冲啊∼开路先锋! */ + "#0269\xbd\xd6\xb3\xa3\xa7\x4f\xb7\x51\xb9\x4c\xa1\x49", /* #0269谁都别想过! */ + "#0270\xbd\xd6\xbd\xf2\xa8\xec\xbd\xd6\xad\xcb\xb7\xb0\xa1\x49", /* #0270谁踩到谁倒楣! */ + "#0271\xad\x6e\xa9\x52\xaa\xba\x0a\xb4\x4e\xa7\x4f\xb9\x4c\xa8\xd3\xa1\x49", /* #0271要命的就别过来! */ + "#0266\xa8\x53\xac\xdd\xb9\x4c\xa7\xd4\xaa\xcc\x0a\xc3\x4d\xbe\xf7\xa8\xae\xb0\xda\xa1\x48", /* #0266没看过忍者骑机车啊? */ + "#0267\xab\xd3\xa7\x61\xa1\x49", /* #0267帅吧! */ + "#0272\xa4\xa3\xb7\x51\xa6\xba\xaa\xba\x0a\xbe\x61\xc3\xe4\xaf\xb8\xa1\xe3", /* #0272不想死的靠边站∼ */ + "#0273\xa5\xbc\xa8\xd3\xb4\x78\xb4\xa4\xa6\x62\x0a\xa6\xdb\xa4\x76\xa4\xe2\xa4\xa4\xa1\x43", /* #0273未来掌握在自己手中。 */ + "#0278\xb7\xc7\xb3\xc6\xa4\x6a\xbf\xb3\xa4\x67\xa4\xec\xa1\xe3", /* #0278准备大兴土木∼ */ + "#0274\xa7\xda\xaf\x75\xc3\x68\xa9\xc0\x0a\xa5\x48\xab\x65\xaa\xba\xa4\xe9\xa4\x6c\xa1\x43", /* #0274我真怀念以前的日子。 */ + "#0275\xac\xec\xa7\xde\xaa\xba\xb5\xb2\xb4\xb9\xa1\xe3", /* #0275科技的结晶∼ */ + "#0276\xc5\xfd\xa7\xda\xa8\xd3\xb6}\xa9\xdd\x0a\xa4\x48\xa5\xcd\xaa\xba\xa4\x6a\xb9\x44\xa1\xe3", /* #0276让我来开拓人生的大道∼ */ + "#0277\xac\xdd\xa7\xda\xaa\xba\x0a\xb2\xd7\xb7\xa5\xa5\xb2\xb1\xfe\xa7\xde\xa1\xe3\xa1\xe3", /* #0277看我的终极必杀技∼∼ */ + NULL, + "#0279\xa7\x4f\xc4\x64\xa7\xda\xa1\x49", /* #0279别拦我! */ + "#0280\xa7\xda\xba\x47\xa4\x46\xa1\xe3", /* #0280我惨了∼ */ + "#0281\xa7\xd6\xa5\xe1\xb5\xb9\xa7\x4f\xa4\x48\xa1\x49", /* #0281快丢给别人! */ + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + }, + { + "#0284\xab\xbd\xab\xbd\xa1\x49\x0a\xa5\x68\xc0\xb0\xa7\xda\xb6}\xb8\xf4\xa7\x61\xa1\x49", /* #0284娃娃!去帮我开路吧! */ + "#0285\xac\xdd\xa7\xda\xaa\xba\xa1\x49\xa1\x49", /* #0285看我的!! */ + "#0286\xbc\x4b\xbc\x4b\xbc\x4b\xa1\xe3", /* #0286嘿嘿嘿∼ */ + "#0287\xa7\xda\xa4\x53\xad\x6e\xae`\xa4\x48\xa4\x46\xa1\x41\x0a\xbc\x48\xbc\x48\xa1\xe3", /* #0287我又要害人了,嘻嘻∼ */ + "#0282\xac[\xa6\xa1\xa4\x51\xa8\xac\xa7\x61\xa1\x49", /* #0282架式十足吧! */ + "#0283\xc3\x69\xb1\x6f\xa8\xab\xb8\xf4\xa1\xe3", /* #0283懒得走路∼ */ + "#0288\xac\xdd\xa7\xda\xaa\xba\x0a\xa4\xec\xc4\xf5\xad\xb8\xbc\x75\xa1\x49", /* #0288看我的木兰飞弹! */ + "#0289\xa6\xd1\xae\x51\x0a\xaa\xb1\xaa\xb1\xa4\x51\xa4\x4b\xb0\xd5\xa1\xe3", /* #0289老娘玩玩十八啦∼ */ + "#0294\xb7\x46\xac\xa1\xa7\x61\xa1\x49\x0a\xa7\xda\xaa\xba\xa5\xa3\xc1\xf5\xa1\xe3", /* #0294干活吧!我的奴隶∼ */ + "#0290\xad\xfc\xa1\x49\x0a\xc1\xd9\xac\x4f\xb1\x71\xab\x65\xa6\x6e\xa1\x43", /* #0290唉!还是从前好。 */ + "#0291\xb0\xae\xa9[\xa4\x6a\xae\xbf\xb2\xbe\xa1\x49", /* #0291乾坤大挪移! */ + "#0292\xb9\x48\xb3\xb9\xab\xd8\xbf\x76\x0a\xab\xe7\xbb\xf2\xa8\x53\xa4\x48\xba\xde\xb0\xda\xa1\x48", /* #0292违章建筑怎么没人管啊? */ + "#0293\xa5@\xac\xc9\xa5\xbd\xa4\xe9\xa8\xec\xb9\xc6\xa1\xe3", /* #0293世界末日到喽∼ */ + NULL, + "#0295\xa4\xc4\xaf}\xb5\xb7\xc4\xfb\xa4\x46\xa1\xe3", /* #0295勾破丝袜了∼ */ + "#0296\xb0\xda\xa1\x49\x0a\xa7\xda\xaa\xba\xad\xbb\xa9`\xa8\xe0\xa1\xe3", /* #0296啊!我的香奈儿∼ */ + "#0297\xab\x7a\xa1\xe3\x0a\xa7\xd6\xad\x6e\xc3\x7a\xa4\x46\xa1\x49", /* #0297哇∼快要爆了! */ + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + }, + { + "#0300\xa9\x49\xa5\xec\xa5\x68\xa1\xe3", /* #0300呼伊去∼ */ + "#0301\xa5\xd2\xa7\xda\xad\xe1\xab\xa8", /* #0301甲我冻咧 */ + "#0302\xa4\x6a\xae\x61\xa5\x64\xaa`\xb7\x4e\xa3\xb0\xa1\x49", /* #0302大家卡注意ㄟ! */ + "#0303\xac\xdd\xbd\xd6\xa4\x48\xa5\x64\xb0\x49\xa1\x48", /* #0303看谁人卡衰? */ + "#0298\xc3\x4d\xbc\x51\xae\x67\xc5\x4b\xb0\xa8\x0a\xa8\xd3\xa5\x68\xa1\x49", /* #0298骑喷射铁马来去! */ + "#0299\xa6\xd1\xa5\xeb\xb0\xda\x0a\xa5\xbc\xb3\xf4\xb5\xdb\xa5\xce\xa6\xe6\xa3\xb0\xa1\x49", /* #0299老伙啊未堪著用行ㄟ! */ + "#0304\xa5\x64\xa6\xb3\xae\xf0\xbe\x7a\xad\x43\xa1\x49", /* #0304卡有气魄耶! */ + "#0305\xb7\x6e\xb4\x58\xc2\x49\xa5\x64\xa6\x6e\xa1\x48", /* #0305摇几点卡好? */ + "#0310\xa5\x53\xa7\xcc\xb0\xda\xa1\xe3\x0a\xa5\x64\xa5\xb4\xab\xf7\xa3\xb0\xa1\x49", /* #0310兄弟啊∼卡打拼ㄟ! */ + "#0306\xe5\x46\xba\xe2\xe5\x46\xba\xe2\xa1\x41\x0a\xad\xab\xa8\xd3\xb0\xd5", /* #0306呒算呒算,重来啦 */ + "#0307\xb3\x6f\xac\x4f\xbd\xbc\xa6\xcc\xa1\x48", /* #0307这是虾米? */ + "#0308\xa4\x48\xa7\xec\xad\xed\xa9\xee\xa1\xe3", /* #0308人抓厝拆∼ */ + "#0309\xa5\x47\xa7\xda\xc3\x7a\xa8\xec\x0a\xb4\x4e\xa6\x59\xa4\x4f\xa4\x46\xb3\xe1\xa1\x49", /* #0309乎我爆到就吃力了喔! */ + NULL, + "#0311\xb3\xc1\xad\xe1\xb8\xf4\xb0\xd5\xa1\x49", /* #0311麦冻路啦! */ + "#0312\xbd\xd6\xa4\x48\xa9\xf1\xaa\xba\xa1\x49\xa1\x49\xa1\x49", /* #0312谁人放的!!! */ + "#0313\xb5\x55\xa6\xba\xa6_\xa5\x4a\xa1\x49", /* #0313猴死囝仔! */ + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + }, + { + "#0316\xb4\xc0\xa7\xda\xb6}\xb8\xf4\xa7\x61\xa1\x49\x0a\xab\xbd\xab\xbd\xa7\x4c\xa1\x49", /* #0316替我开路吧!娃娃兵! */ + "#0317\xa5\xf4\xa6\xf3\xa4\x48\x0a\xb3\xa3\xa4\xa3\xb3\x5c\xb3\x71\xb9\x4c\xa1\x43", /* #0317任何人都不许通过。 */ + "#0318\xa7\x4f\xa9\xc7\xa7\xda\xa1\x49\xa1\x49", /* #0318别怪我!! */ + "#0319\xad\xcb\xbc\xc6\xad\x70\xae\xc9\xb6}\xa9\x6c\xa1\xe3", /* #0319倒数计时开始∼ */ + "#0314\xad\xbb\xa8\xae\xb0\x74\xac\xfc\xa4\x48\xa1\xe3", /* #0314香车配美人∼ */ + "#0315\xa5\xbb\xa4\xbd\xa5\x44\x0a\xc1\xd9\xa4\xed\xad\xd3\xa5\x71\xbe\xf7\xa1\xe3", /* #0315本公主还欠个司机∼ */ + "#0320\xa7\x41\xad\xcc\x0a\xa4\x6a\xc3\xf8\xc1{\xc0\x59\xa4\x46\xa1\x49", /* #0320你们大难临头了! */ + "#0321\xa7\xda\xaa\xba\x0a\xa9\xaf\xb9\x42\xbc\xc6\xa6\x72\xac\x4f\xa1\x48", /* #0321我的幸运数字是? */ + "#0326\xb6\xd4\xa7\xd6\xc2\x49\xa1\x49\x0a\xa5\xbb\xa4\xbd\xa5\x44\x0a\xb7|\xbf\xcb\xa6\xdb\xc5\xe7\xa6\xac\xa1\x49", /* #0326勤快点!本公主会亲自验收! */ + "#0322\xac\x51\xa4\xe9\xa6\x68\xbb\xf2\xac\xfc\xa6\x6e\xa1\xe3", /* #0322昨日多么美好∼ */ + "#0323\xb7\x51\xa4\xa3\xa8\xec\x0a\xa6\xb3\xb3\x6f\xa4@\xa9\xdb\xa7\x61\xa1\x48", /* #0323想不到有这一招吧? */ + "#0324\xa5\xbb\xa4\xbd\xa5\x44\x0a\xad\x6e\xa4@\xb8\xf4\xa9\xee\xb9\x4c\xa5\x68\xa1\xe3", /* #0324本公主要一路拆过去∼ */ + "#0325\xa4\x48\xa4\xa3\xac\xb0\xa4\x76\xa1\x41\x0a\xa4\xd1\xb8\xdd\xa6\x61\xb7\xc0\xa1\xe3", /* #0325人不为己,天诛地灭∼ */ + NULL, + "#0327\xbd\xd6\xb4\xb1\xbe\xd7\xa5\xbb\xa4\xbd\xa5\x44\xa1\x48", /* #0327谁敢挡本公主? */ + "#0328\xa4\xa3\xb7|\xa7\x61\xa1\x48\xa1\x49", /* #0328不会吧?! */ + "#0329\xbd\xd6\xa8\xd3\xa7\xe2\xa5\xa6\xae\xb3\xa8\xab\xa1\x48", /* #0329谁来把它拿走? */ + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + }, + { + "#0332\xb9\xcd\xb9\xcd\xb9\xcd\xa1\x41\x0a\xa5\xe6\xb5\xb9\xa7\xda\xa8\xd3\xa1\x49", /* #0332哔哔哔,交给我来! */ + "#0333\xbd\xd0\xba\x43\xa1\xe3\xba\x43\xa1\xe3\x0a\xa6\x61\xab~\xa8\xfd\xa7\x61\xa1\x49", /* #0333请慢∼慢∼地品味吧! */ + "#0334\xbd\xd0\xba\x43\xa1\xe3\xba\x43\xa1\xe3\x0a\xa8\xab\xae@\xa1\x49", /* #0334请慢∼慢∼走哦! */ + "#0335\xa8\xfe\xa8\xfe\xa1\x41\xa6\x6e\xb4\xc1\xab\xdd\xa1\x49", /* #0335呵呵,好期待! */ + "#0330\xa5\x68\xa7\x61\xa1\x41\x0a\xa7\xda\xaa\xba\x48\x4f\x4e\x44\x41\xa1\x49", /* #0330去吧,我的HONDA! */ + "#0331\xa5\x68\xa7\x61\xa1\x41\x0a\xa7\xda\xaa\xba\x54\x4f\x59\x4f\x54\x41\xa1\x49", /* #0331去吧,我的TOYOTA! */ + "#0336\xa5\x68\xa7\x61\xa1\x41\x0a\xa7\xda\xaa\xba\xad\xb8\xbc\x75\xa1\x49", /* #0336去吧,我的飞弹! */ + "#0337\xa6\x6e\xa1\x41\x0a\xa5\xbb\xa4\x6a\xa4\x48\xad\x6e\xa8\xab\xa4\x46\xa1\x49", /* #0337好,本大人要走了! */ + "#0342\xb8\xd3\xa7\xda\xa4\x57\xb3\xf5\xa4\x46\xa1\x49", /* #0342该我上场了! */ + "#0338\xad\xb8\xa7\x72\xad\xb8\xa7\x72\xa1\x41\x0a\xa6^\xa8\xec\xb9\x4c\xa5\x68\xa1\xe3", /* #0338飞呀飞呀,回到过去∼ */ + "#0339\xaf\x75\xa4\xe8\xab\x4b\xaa\xba\xb3\xc3\xa5\xeb", /* #0339真方便的家伙 */ + "#0340\xad\xf3\xa1\x41\xa9\xee\xa4\x46\xa7\x41\xa1\x49", /* #0340哼,拆了你! */ + "#0341\xa5\x68\xa1\x41\xae\xd6\xa4\x6c\xbc\x75\xa1\x49", /* #0341去,核子弹! */ + NULL, + "#0343\xb0\xb1\xa4\x55\xa8\xd3\xa4\x46\xa1\x49", /* #0343停下来了! */ + "#0344\xaf\x62\xa5\xcd\xa1\x49", /* #0344畜生! */ + "#0345\xb6\xe3\xab\x7a\xa1\xe3\xa1\xe3\xa1\x49", /* #0345呜哇∼∼! */ + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + }, + { + "#0348\xa6\x6e\xa6\x68\xaa\x46\xa6\xe8\x0a\xbe\xd7\xb8\xf4\xb3\xe1\xa1\x49", /* #0348好多东西挡路喔! */ + "#0349\xa6\xb9\xb8\xf4\xa4\xa3\xb3\x71\xa1\x49\xa1\x49\xa1\x49", /* #0349此路不通!!! */ + "#0350\xb0\x65\xa7\x41\xa4@\xa5\xf7\x0a\xb7\x52\xaa\xba\xc2\xa7\xaa\xab\xa1\xe3", /* #0350送你一份爱的礼物∼ */ + "#0351\xa4\x70\xa4\xdf\x0a\xa4\xa3\xad\x6e\xbd\xf2\xa8\xec\xa4\x46\xb3\xe1\xa1\x49", /* #0351小心不要踩到了喔! */ + "#0346\xa7\xda\xb7|\x0a\xb4\xee\xb3\x74\xba\x43\xa6\xe6\xaa\xba\xa1\x49", /* #0346我会减速慢行的! */ + "#0347\xa7\xda\xb7|\x0a\xbf\xed\xa6\x75\xa5\xe6\xb3\x71\xb3\x57\xab\x68\xa1\x49", /* #0347我会遵守交通规则! */ + "#0352\xb3\xf8\xa4\xb3\xaa\xba\xae\xc9\xad\xd4\x0a\xa8\xec\xa4\x46\xa1\x49", /* #0352报仇的时候到了! */ + "#0353\xb2\x71\xb2\x71\xac\xdd\x0a\xa7\xda\xad\x6e\xa8\xab\xb4\x58\xa8\x42\xa1\x48", /* #0353猜猜看我要走几步? */ + "#0358\xbb\x5c\xb1\x6f\xb6\x56\xb0\xaa\xb6\x56\xa6\x6e\xa1\x49", /* #0358盖得越高越好! */ + "#0354\xb9\x42\xae\xf0\xa4\xd3\xae\x74\xa4\x46\xa1\x49", /* #0354运气太差了! */ + "#0355\xb3\x6f\xbe\xf7\xbe\xb9\x0a\xab\xdc\xaf\xab\xa9_\xb3\xe1\xa1\x49", /* #0355这机器很神奇喔! */ + "#0356\xbb\xb0\xa7\xd6\xc2\xf7\xb6}\xb4\x4e\xa4\xa3\xb7|\x0a\xa6\xb3\xa4\x48\xa8\xfc\xb6\xcb\xa1\x49\xa1\x49", /* #0356赶快离开就不会有人受伤!! */ + "#0357\xae`\xb9\x4c\xa7\xda\xaa\xba\xa4\x48\x0a\xb7\xed\xa4\xdf\xa4\x46\xa1\xe3", /* #0357害过我的人当心了∼ */ + NULL, + "#0359\xbd\xd6\xb3\x6f\xbb\xf2\xb5\x4c\xb2\xe1\xa1\x48\xa1\x49", /* #0359谁这么无聊?! */ + "#0360\xa7\xda\xab\xe7\xbb\xf2\x0a\xb3\x6f\xbb\xf2\xa4\xa3\xa4\x70\xa4\xdf\xa1\x48\xa1\x49", /* #0360我怎么这么不小心?! */ + "#0361\xae`\xa4\x48\xba\xeb\xa1\x49\xa1\x49", /* #0361害人精!! */ + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + }, + { + "#0364\xbd\xc4\xb0\xda\xa1\x49", /* #0364冲啊! */ + "#0365\xa5\xe6\xb3\x71\xba\xde\xa8\xee\xa1\x49", /* #0365交通管制! */ + "#0366\xa7\xda\xa4\xb0\xbb\xf2\xb3\xa3\xa8\x53\xb0\xb5\xa1\xe3", /* #0366我什么都没做∼ */ + "#0367\xa8\x53\xa4\x48\xac\xdd\xa8\xec\xa7\x61\xa1\x48", /* #0367没人看到吧? */ + "#0362\xb3\xe1\xa1\xe3\xa1\xe3\xa1\xe3\x0a\xb3\xe1\xa1\xe3\xa1\xe3\xa1\xe3", /* #0362喔∼∼∼喔∼∼∼ */ + "#0363\xad\x4a\xc5\xcd\xbd\x4d\xb7\x64\x0a\xad\x4a\xc5\xcd\xbd\x4d\xb7\x64\xa1\xe3", /* #0363胡搅瞎搞胡搅瞎搞∼ */ + "#0368\xba\xcb\xb7\xc7\xa5\xd8\xbc\xd0\xa1\x49\xa1\x49", /* #0368瞄准目标!! */ + "#0369\xc0\x48\xa4\xdf\xa9\xd2\xb1\xfd\x0a\xa6\xdb\xa5\xd1\xa6\xdb\xa6\x62\xa1\x49", /* #0369随心所欲自由自在! */ + "#0374\xb0\xca\xa7@\xa7\xd6\xa4@\xc2\x49\xa1\x49\xa1\x49", /* #0374动作快一点!! */ + "#0370\xae\xc9\xa5\xfa\xad\xcb\xac\x79\xb9\xc6\xa1\x49", /* #0370时光倒流喽! */ + "#0371\xb3\x6f\xad\x6e\xab\xe7\xbb\xf2\xa5\xce\xb0\xda\xa1\x48", /* #0371这要怎么用啊? */ + "#0372\xae\xb3\xa7\x41\xad\xcc\xa8\xd3\xb6}\xa4\x4d\xa1\x49", /* #0372拿你们来开刀! */ + "#0373\xa7\xda\xa9\xf1\xb7\xcf\xa4\xf5\x0a\xb5\xb9\xa4\x6a\xae\x61\xac\xdd\xa1\x49", /* #0373我放烟火给大家看! */ + NULL, + "#0375\xa7\xda\xb0\xb1\xa1\xe3", /* #0375我停∼ */ + "#0376\xaf\x51\xab}\xa6\x6e\xa5\x69\xbc\xa6\xb3\xe1\xa1\x49", /* #0376乌咪好可怜喔! */ + "#0377\xa7\xd6\xc3\x7a\xac\xb5\xa4\x46\xb0\xd5\xa1\x49\xa1\x49", /* #0377快爆炸了啦!! */ + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + }, + { + "#0380\xa4\x70\xa5\x69\xb7\x52\xa1\x41\xa5\x68\xa7\x61", /* #0380小可爱,去吧 */ + "#0381\xb6\xa2\xa4\x48\xa4\xee\xa8\x42\xa1\x49", /* #0381闲人止步! */ + "#0382\xa7\x4f\xa4\x6a\xb7\x4e\xa7\x72", /* #0382别大意呀 */ + "#0383\xa6\x59\xc1\xfb\xb3\x4a\xa7\x61", /* #0383吃颗蛋吧 */ + "#0378\xa5\xe6\xb3\x71\xa6\x77\xa5\xfe\x0a\xad\x6e\xaa`\xb7\x4e\xa1\x49", /* #0378交通安全要注意! */ + "#0379\xa7\xda\xb3\xdf\xc5\x77\x0a\xb0\x6c\xa8\x44\xb3\x74\xab\xd7\xb7\x50\xa1\x49", /* #0379我喜欢追求速度感! */ + "#0384\xbd\xe0\xa7\x41\xa4@\xaa\x54\xad\xb8\xbc\x75\xa1\x49", /* #0384赏你一枚飞弹! */ + "#0385\xa7\xda\xa5\x69\xa5\x48\xa5\x68\x0a\xb7\x51\xa5\x68\xaa\xba\xa6\x61\xa4\xe8\xa4\x46\xa1\x49", /* #0385我可以去想去的地方了! */ + "#0390\xa7\x41\xad\xcc\xbf\xec\xa8\xc6\x0a\xa7\xda\xa9\xf1\xa4\xdf\xa1\xe3", /* #0390你们办事我放心∼ */ + "#0386\xad\xcb\xb0\x68\xa4@\xa6^\xa6\x58\xa1\x49\xa1\x49", /* #0386倒退一回合!! */ + "#0387\xb1\x6f\xa4\xa7\xa4\xa3\xa9\xf6\xa1\x41\x0a\xb7\x51\xb2\x4d\xb7\xa1\xa6\x41\xa5\xce\xa1\x49", /* #0387得之不易,想清楚再用! */ + "#0388\xa7\xda\xa8\xd3\xc0\xcb\xb4\xfa\xa4\x6a\xae\x61\xaa\xba\x0a\xa9\xd0\xa4\x6c\xb0\xed\xa4\xa3\xb0\xed\xa9\x54\xa1\x48", /* #0388我来检测大家的房子坚不坚固? */ + "#0389\xb9\xef\xbc\xc4\xa4\x48\xa4\xaf\xb7\x4f\xa1\x41\x0a\xb4\x4e\xac\x4f\xb9\xef\xa6\xdb\xa4\x76\xb4\xdd\xa7\xd4", /* #0389对敌人仁慈,就是对自己残忍 */ + NULL, + "#0391\xa6\xb3\xb0\xf7\xbe\xf7\xa8\xae\xa1\x49\xa1\x49", /* #0391有够机车!! */ + "#0392\xaf\x75\xad\xcb\xbe`\xa1\x49\xa1\x49", /* #0392真倒霉!! */ + "#0393\xbd\xd6\xa8\xd3\xb1\xb5\xa4\xe2\xa1\xe3\xa1\xe3", /* #0393谁来接手∼∼ */ + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + }, + { + "#0396\xbd\xc4\xa7\x72\xa1\x49\xbd\xc4\xa7\x72\xa1\x49", /* #0396冲呀!冲呀! */ + "#0397\xb8\x54\xa4\xee\xb3\x71\xa6\xe6\xa1\x49", /* #0397禁止通行! */ + "#0398\xaa`\xb7\x4e\xa1\x49", /* #0398注意! */ + "#0399\xa4\x70\xa4\xdf\xc2\x49\xa1\x49", /* #0399小心点! */ + "#0394\xb6]\xa7\xd6\xa4@\xc2\x49\xa1\x49", /* #0394跑快一点! */ + "#0395\xa4\xf1\xa4\xf5\xbd\x62\xc1\xd9\xa7\xd6\xb3\xe1\xa1\x49", /* #0395比火箭还快喔! */ + "#0400\xb6\xd9\xa1\x49\xa4\x6a\xb9\xd9\xa8\xe0\xad\xcc\xa1\x49", /* #0400嗨!大伙儿们! */ + "#0401\xa4\xdf\xb7\x51\xa8\xc6\xa6\xa8\xa1\x49", /* #0401心想事成! */ + "#0406\xa7\xd6\xa8\xd3\xc0\xb0\xa4\xe2\xa1\x49", /* #0406快来帮手! */ + "#0402\xa6^\xa8\xec\xb9\x4c\xa5\x68\xa1\x49\xa1\x49", /* #0402回到过去!! */ + "#0403\xa6\x6e\xbe\xf7\xbe\xb9\xa1\x49", /* #0403好机器! */ + "#0404\xa7\xda\xac\x4f\x0a\xc5]\xb0\xad\xb2\xd7\xb5\xb2\xaa\xcc\xa1\x49", /* #0404我是魔鬼终结者! */ + "#0405\xa5@\xac\xc9\xa5\xbd\xa4\xe9\xa8\xec\xa4\x46\xa1\xe3", /* #0405世界末日到了∼ */ + NULL, + "#0407\xbe\xbe\xa1\x49", /* #0407噢! */ + "#0408\xa7\xb9\xa4\x46\xa1\x49", /* #0408完了! */ + "#0409\xa4\x6a\xa8\xc6\xa4\xa3\xa7\xae\xa1\xe3", /* #0409大事不妙∼ */ + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + }, + { + "#0410@20", /* #0410@20 */ + "#0411@19", /* #0411@19 */ + "#0412@19", /* #0412@19 */ + "#0413@19", /* #0413@19 */ + "#0414@20", /* #0414@20 */ + "#0415@20", /* #0415@20 */ + "#0416@19", /* #0416@19 */ + "#0417@20", /* #0417@20 */ + "#0418@20", /* #0418@20 */ + "#0419@20", /* #0419@20 */ + "#0420@20", /* #0420@20 */ + "#0421@20", /* #0421@20 */ + "#0422@19", /* #0422@19 */ + NULL, + "#0423@05", /* #0423@05 */ + "#0424@07", /* #0424@07 */ + "#0425@02", /* #0425@02 */ + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + }, +}; diff --git a/r2/print_tool_strings.py b/r2/print_tool_strings.py new file mode 100644 index 0000000..4037c8a --- /dev/null +++ b/r2/print_tool_strings.py @@ -0,0 +1,72 @@ +# Copyright (C) 2018 Iru Cai <mytbk920423@gmail.com> +# SPDX-License-Identifier: GPL-3.0-or-later + +import r2pipe +import opencc + + +def isprint(c): + if c >= 0x20 and c <= 0x7e and c != ord('"') and c != ord('\\'): + return True + else: + return False + + +def asc2str(c): + if isprint(c): + return chr(c) + else: + return f'\\x{i:02c}' + + +def ishexchr(c): + if c >= ord('0') and c <= ord('9'): + return True + if c >= ord('a') and c <= ord('z'): + return True + if c >= ord('A') and c <= ord('Z'): + return True + return False + + +cc = opencc.OpenCC('t2s') +r = r2pipe.open() +data = r.cmdj("xj 0x68*12 @ 0x480d5a") + +print('const char *tool_strings[12][26] = {') + +offset = 0 +for rich4_player in range(0, 12): + print('{') + for card_idx in range(0, 26): + addr = data[offset] + (data[offset+1] << 8) + \ + (data[offset+2] << 16) + (data[offset+3] << 24) + if addr == 0: + print('NULL,') + else: + prev_ascii = False + hexs = r.cmdj("xj 100 @ {}".format(addr)) + hexstr = "" + cbytes = bytearray([]) + for i in hexs: + if i == 0: + break + if isprint(i) and prev_ascii: + hexstr += asc2str(i) + elif isprint(i) and not ishexchr(i): + hexstr += asc2str(i) + prev_ascii = True + else: + hexstr += f'\\x{i:02x}' + prev_ascii = False + cbytes.append(i) + try: + big5str = cc.convert(cbytes.decode( + encoding='big5')).replace('\n', '') + except UnicodeDecodeError: + big5str = "" + print(f'"{hexstr}", /* {big5str} */') + offset = offset + 4 + print('},') + +print('};') |