annotate scn2k/scn2kdump.cc @ 70:281dcd7217df

Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 01 Apr 2011 22:54:40 +0200
parents 4416cfac86ae
children e4a12dd9a51b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
223b71206888 Initial import
thib
parents:
diff changeset
1 /*
223b71206888 Initial import
thib
parents:
diff changeset
2 *
223b71206888 Initial import
thib
parents:
diff changeset
3 * Copyright (C) 2002- Kazunori Ueno(JAGARL) <jagarl@creator.club.ne.jp>
223b71206888 Initial import
thib
parents:
diff changeset
4 *
223b71206888 Initial import
thib
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or modify
223b71206888 Initial import
thib
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
223b71206888 Initial import
thib
parents:
diff changeset
7 * the Free Software Foundation; either version 2 of the License, or
223b71206888 Initial import
thib
parents:
diff changeset
8 * (at your option) any later version.
223b71206888 Initial import
thib
parents:
diff changeset
9 *
223b71206888 Initial import
thib
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
223b71206888 Initial import
thib
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
223b71206888 Initial import
thib
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
223b71206888 Initial import
thib
parents:
diff changeset
13 * GNU General Public License for more details.
223b71206888 Initial import
thib
parents:
diff changeset
14 *
27
3a6aaeab7b4e * Fixed a typo in Jagarl's name
thib
parents: 0
diff changeset
15 * You should have received a copy of the GNU General Public License along
3a6aaeab7b4e * Fixed a typo in Jagarl's name
thib
parents: 0
diff changeset
16 * with this program; if not, write to the Free Software Foundation, Inc.,
3a6aaeab7b4e * Fixed a typo in Jagarl's name
thib
parents: 0
diff changeset
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
0
223b71206888 Initial import
thib
parents:
diff changeset
18 *
223b71206888 Initial import
thib
parents:
diff changeset
19 */
223b71206888 Initial import
thib
parents:
diff changeset
20
52
15a18fbe6f21 * Known bugs added to the README
thib
parents: 29
diff changeset
21 #include <stdlib.h>
15a18fbe6f21 * Known bugs added to the README
thib
parents: 29
diff changeset
22 #include <stdarg.h>
15a18fbe6f21 * Known bugs added to the README
thib
parents: 29
diff changeset
23 #include <stdio.h>
15a18fbe6f21 * Known bugs added to the README
thib
parents: 29
diff changeset
24 #include <string.h>
15a18fbe6f21 * Known bugs added to the README
thib
parents: 29
diff changeset
25 #include <string>
15a18fbe6f21 * Known bugs added to the README
thib
parents: 29
diff changeset
26 #include <vector>
15a18fbe6f21 * Known bugs added to the README
thib
parents: 29
diff changeset
27 #include <map>
0
223b71206888 Initial import
thib
parents:
diff changeset
28
223b71206888 Initial import
thib
parents:
diff changeset
29 using namespace std;
223b71206888 Initial import
thib
parents:
diff changeset
30
52
15a18fbe6f21 * Known bugs added to the README
thib
parents: 29
diff changeset
31 #include "system/file.h"
15a18fbe6f21 * Known bugs added to the README
thib
parents: 29
diff changeset
32 #include "system/file_impl.h"
0
223b71206888 Initial import
thib
parents:
diff changeset
33
29
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
34 #include "scn2k.h"
0
223b71206888 Initial import
thib
parents:
diff changeset
35
223b71206888 Initial import
thib
parents:
diff changeset
36
223b71206888 Initial import
thib
parents:
diff changeset
37 #define SCN_DUMP
223b71206888 Initial import
thib
parents:
diff changeset
38
29
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
39 class CmdD : public Cmd
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
40 {
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
41 public:
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
42 CmdD(const Flags& flags, int system_version) : Cmd(flags, system_version) {}
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
43 //CmdD(const Flags& f) : flags(f) { argc = 0; errorflag = false; cmdstr[0] = 0;}
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
44 bool ClearError() { /*errorflag = false;*/}
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
45 static map<int, struct CmdDescrItem*> cmd_descr;
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
46 const char* CmdDescr(int cmd1, int cmd2, int cmd3, int cmd4);
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
47 };
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
48
0
223b71206888 Initial import
thib
parents:
diff changeset
49 int system_version = 0;
223b71206888 Initial import
thib
parents:
diff changeset
50 bool ruby_flag = false;
223b71206888 Initial import
thib
parents:
diff changeset
51 bool ret_flag = false;
223b71206888 Initial import
thib
parents:
diff changeset
52 bool text_flag = false;
223b71206888 Initial import
thib
parents:
diff changeset
53 bool selection_flag = false;
223b71206888 Initial import
thib
parents:
diff changeset
54
223b71206888 Initial import
thib
parents:
diff changeset
55
223b71206888 Initial import
thib
parents:
diff changeset
56 inline int eval(int v1, int op, int v2) {
223b71206888 Initial import
thib
parents:
diff changeset
57 switch(op) {
223b71206888 Initial import
thib
parents:
diff changeset
58 case 0: return v1+v2;
223b71206888 Initial import
thib
parents:
diff changeset
59 case 1: return v1-v2;
223b71206888 Initial import
thib
parents:
diff changeset
60 case 2: return v1*v2;
223b71206888 Initial import
thib
parents:
diff changeset
61 case 3: return v2!=0 ? v1/v2 : v1;
223b71206888 Initial import
thib
parents:
diff changeset
62 case 4: return v2!=0 ? v1%v2 : v1;
223b71206888 Initial import
thib
parents:
diff changeset
63 case 5: return v1&v2;
223b71206888 Initial import
thib
parents:
diff changeset
64 case 6: return v1|v2;
223b71206888 Initial import
thib
parents:
diff changeset
65 case 7: return v1^v2;
223b71206888 Initial import
thib
parents:
diff changeset
66 case 8: return v1<<v2;
223b71206888 Initial import
thib
parents:
diff changeset
67 case 9: return v1>>v2;
223b71206888 Initial import
thib
parents:
diff changeset
68 case 40: return v1 == v2;
223b71206888 Initial import
thib
parents:
diff changeset
69 case 41: return v1 != v2;
223b71206888 Initial import
thib
parents:
diff changeset
70 case 42: return v1 <= v2;
223b71206888 Initial import
thib
parents:
diff changeset
71 case 43: return v1 < v2;
223b71206888 Initial import
thib
parents:
diff changeset
72 case 44: return v1 >= v2;
223b71206888 Initial import
thib
parents:
diff changeset
73 case 45: return v1 > v2;
223b71206888 Initial import
thib
parents:
diff changeset
74 case 60: return v1 && v2;
223b71206888 Initial import
thib
parents:
diff changeset
75 case 61: return v1 || v2;
223b71206888 Initial import
thib
parents:
diff changeset
76 }
223b71206888 Initial import
thib
parents:
diff changeset
77 return v2;
223b71206888 Initial import
thib
parents:
diff changeset
78 }
223b71206888 Initial import
thib
parents:
diff changeset
79
223b71206888 Initial import
thib
parents:
diff changeset
80
223b71206888 Initial import
thib
parents:
diff changeset
81 void usage(void) {
223b71206888 Initial import
thib
parents:
diff changeset
82 fprintf(stderr,"usage : scn2kdump [inputfile] [outputfile]\n");
223b71206888 Initial import
thib
parents:
diff changeset
83 fprintf(stderr," inputfile: seen.txt(default)\n");
223b71206888 Initial import
thib
parents:
diff changeset
84 fprintf(stderr," outputfile: seen.txt_out(default)\n");
223b71206888 Initial import
thib
parents:
diff changeset
85 exit(-1);
223b71206888 Initial import
thib
parents:
diff changeset
86 }
29
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
87
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
88 extern int debug_flag;
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
89
0
223b71206888 Initial import
thib
parents:
diff changeset
90 int main(int argc, char** argv) {
223b71206888 Initial import
thib
parents:
diff changeset
91 /* determine file names */
29
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
92 debug_flag = true;
0
223b71206888 Initial import
thib
parents:
diff changeset
93 bool verbose = false;
223b71206888 Initial import
thib
parents:
diff changeset
94 char* inname = "seen.txt";
223b71206888 Initial import
thib
parents:
diff changeset
95 char* outname = 0;
223b71206888 Initial import
thib
parents:
diff changeset
96 if (argc > 2 && strcmp(argv[1],"-v") == 0) {
223b71206888 Initial import
thib
parents:
diff changeset
97 int i; for (i=1; i<argc; i++) argv[i] = argv[i+1];
223b71206888 Initial import
thib
parents:
diff changeset
98 argc--;
223b71206888 Initial import
thib
parents:
diff changeset
99 verbose = true;
223b71206888 Initial import
thib
parents:
diff changeset
100 }
223b71206888 Initial import
thib
parents:
diff changeset
101 switch(argc) {
223b71206888 Initial import
thib
parents:
diff changeset
102 case 1: break;
223b71206888 Initial import
thib
parents:
diff changeset
103 case 2: inname = argv[1]; break;
223b71206888 Initial import
thib
parents:
diff changeset
104 case 3: inname = argv[1]; outname = argv[2]; break;
223b71206888 Initial import
thib
parents:
diff changeset
105 default: usage();
223b71206888 Initial import
thib
parents:
diff changeset
106 }
223b71206888 Initial import
thib
parents:
diff changeset
107 /* open output file */
223b71206888 Initial import
thib
parents:
diff changeset
108 FILE* outstream = stdout;
223b71206888 Initial import
thib
parents:
diff changeset
109 /* create archive instance */
223b71206888 Initial import
thib
parents:
diff changeset
110 SCN2kFILE archive(inname);
223b71206888 Initial import
thib
parents:
diff changeset
111 archive.Init();
223b71206888 Initial import
thib
parents:
diff changeset
112 if (archive.Deal() == 0) {
223b71206888 Initial import
thib
parents:
diff changeset
113 fprintf(stderr,"Cannot open / Invalid archive file %s\n",inname);
223b71206888 Initial import
thib
parents:
diff changeset
114 usage();
223b71206888 Initial import
thib
parents:
diff changeset
115 }
223b71206888 Initial import
thib
parents:
diff changeset
116 /* dump files */
223b71206888 Initial import
thib
parents:
diff changeset
117 archive.InitList();
223b71206888 Initial import
thib
parents:
diff changeset
118 char* fname;
223b71206888 Initial import
thib
parents:
diff changeset
119 fprintf(stderr,"Dump start\n");
223b71206888 Initial import
thib
parents:
diff changeset
120 while( (fname = archive.ListItem()) != 0) {
52
15a18fbe6f21 * Known bugs added to the README
thib
parents: 29
diff changeset
121 ARCINFO* info = archive.Find(fname, "");
15a18fbe6f21 * Known bugs added to the README
thib
parents: 29
diff changeset
122 if (info == NULL) continue;
0
223b71206888 Initial import
thib
parents:
diff changeset
123 char* data = info->CopyRead();
223b71206888 Initial import
thib
parents:
diff changeset
124 char* d = data;
223b71206888 Initial import
thib
parents:
diff changeset
125 char* dend = d + info->Size();
65
4416cfac86ae Convert EUC-JP files to UTF8
Thibaut Girka <thib@sitedethib.com>
parents: 52
diff changeset
126 /* version 確認 */
0
223b71206888 Initial import
thib
parents:
diff changeset
127 if (read_little_endian_int(d) == 0x1cc) {
223b71206888 Initial import
thib
parents:
diff changeset
128 system_version = 0;
223b71206888 Initial import
thib
parents:
diff changeset
129 } else if (read_little_endian_int(d) == 0x1d0) {
223b71206888 Initial import
thib
parents:
diff changeset
130 system_version = 1;
223b71206888 Initial import
thib
parents:
diff changeset
131 } else {
223b71206888 Initial import
thib
parents:
diff changeset
132 continue;
223b71206888 Initial import
thib
parents:
diff changeset
133 }
223b71206888 Initial import
thib
parents:
diff changeset
134 if (read_little_endian_int(d+4) == 0x1adb2) ; // little busters!
223b71206888 Initial import
thib
parents:
diff changeset
135 else if (read_little_endian_int(d+4) != 0x2712) continue;
223b71206888 Initial import
thib
parents:
diff changeset
136 int header_size;
223b71206888 Initial import
thib
parents:
diff changeset
137 if (system_version == 0) {
223b71206888 Initial import
thib
parents:
diff changeset
138 header_size = 0x1cc + read_little_endian_int(d+0x20) * 4;
223b71206888 Initial import
thib
parents:
diff changeset
139 } else {
223b71206888 Initial import
thib
parents:
diff changeset
140 header_size = read_little_endian_int(d+0x20);
223b71206888 Initial import
thib
parents:
diff changeset
141 }
223b71206888 Initial import
thib
parents:
diff changeset
142 d += header_size;
223b71206888 Initial import
thib
parents:
diff changeset
143
223b71206888 Initial import
thib
parents:
diff changeset
144 const char* dcur = d;
223b71206888 Initial import
thib
parents:
diff changeset
145 const char* dstart = d;
223b71206888 Initial import
thib
parents:
diff changeset
146 fprintf(stderr,"Dumping %s\n",fname);
223b71206888 Initial import
thib
parents:
diff changeset
147 fprintf(stdout,"Dumping %s\n",fname);
223b71206888 Initial import
thib
parents:
diff changeset
148 { int i; for (i=0; i<100; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
149 int n = read_little_endian_int(data + 0x34 + i*4);
223b71206888 Initial import
thib
parents:
diff changeset
150 if (n != 6) fprintf(stdout,"subroutine table %2d: %6d\n",i,n);
223b71206888 Initial import
thib
parents:
diff changeset
151 }}
223b71206888 Initial import
thib
parents:
diff changeset
152 Flags flags;
65
4416cfac86ae Convert EUC-JP files to UTF8
Thibaut Girka <thib@sitedethib.com>
parents: 52
diff changeset
153 /* 最初から最後までコマンド取得 -> 出力を繰り返す */
0
223b71206888 Initial import
thib
parents:
diff changeset
154 while(dcur<dend) {
223b71206888 Initial import
thib
parents:
diff changeset
155 const char* dprev = dcur;
29
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
156 CmdD cmd(flags, system_version); cmd.ClearError();
0
223b71206888 Initial import
thib
parents:
diff changeset
157
223b71206888 Initial import
thib
parents:
diff changeset
158 /* end? */
223b71206888 Initial import
thib
parents:
diff changeset
159 if (*dcur == -1) {
223b71206888 Initial import
thib
parents:
diff changeset
160 /* 0xff x 32byte + 0x00 : end sign */
223b71206888 Initial import
thib
parents:
diff changeset
161 int i; for (i=0; i<0x20; i++)
223b71206888 Initial import
thib
parents:
diff changeset
162 if (dcur[i] != -1) break;
223b71206888 Initial import
thib
parents:
diff changeset
163 if (i == 0x20 && dcur[i] == 0) break;
223b71206888 Initial import
thib
parents:
diff changeset
164 }
223b71206888 Initial import
thib
parents:
diff changeset
165 dprintf("%d : ",dcur-dstart);
223b71206888 Initial import
thib
parents:
diff changeset
166 cmd.GetCmd(flags, dcur);
223b71206888 Initial import
thib
parents:
diff changeset
167 if (cmd.IsError()) {
223b71206888 Initial import
thib
parents:
diff changeset
168 fprintf(outstream, "Error at %6d\n",dprev-dstart);
223b71206888 Initial import
thib
parents:
diff changeset
169 while(dcur < dend) {
223b71206888 Initial import
thib
parents:
diff changeset
170 if (*dcur == 0x29 && dcur[1] == 0x0a) {dcur++;break;}
223b71206888 Initial import
thib
parents:
diff changeset
171 if (*dcur == 0 && dcur[1] == 0x0a) {dcur++;break;}
223b71206888 Initial import
thib
parents:
diff changeset
172 if (*dcur == 0 && dcur[1] == 0x23) {dcur++;break;}
223b71206888 Initial import
thib
parents:
diff changeset
173 dcur++;
223b71206888 Initial import
thib
parents:
diff changeset
174 }
223b71206888 Initial import
thib
parents:
diff changeset
175 dprev -= 2*16;
223b71206888 Initial import
thib
parents:
diff changeset
176 int ilen = (dcur-dprev+15)/16;
223b71206888 Initial import
thib
parents:
diff changeset
177 int i; for (i=0; i<ilen; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
178 fprintf(outstream, "%6d: ",dprev-dstart);
223b71206888 Initial import
thib
parents:
diff changeset
179 int j; for (j=0; j<16; j++) {
223b71206888 Initial import
thib
parents:
diff changeset
180 if (dprev >= dend) break;
223b71206888 Initial import
thib
parents:
diff changeset
181 if (dprev < data) continue;
223b71206888 Initial import
thib
parents:
diff changeset
182 fprintf(outstream, "%02x ",*(unsigned char*)(dprev));
223b71206888 Initial import
thib
parents:
diff changeset
183 dprev++;
223b71206888 Initial import
thib
parents:
diff changeset
184 }
223b71206888 Initial import
thib
parents:
diff changeset
185 fprintf(outstream, "\n");
223b71206888 Initial import
thib
parents:
diff changeset
186 }
223b71206888 Initial import
thib
parents:
diff changeset
187 }
223b71206888 Initial import
thib
parents:
diff changeset
188 }
223b71206888 Initial import
thib
parents:
diff changeset
189 delete info;
223b71206888 Initial import
thib
parents:
diff changeset
190 }
223b71206888 Initial import
thib
parents:
diff changeset
191 return 0;
223b71206888 Initial import
thib
parents:
diff changeset
192 }
223b71206888 Initial import
thib
parents:
diff changeset
193
223b71206888 Initial import
thib
parents:
diff changeset
194 /*
223b71206888 Initial import
thib
parents:
diff changeset
195 SetStr
223b71206888 Initial import
thib
parents:
diff changeset
196 0x23 - cmd 01-0a:0000:00[ 2]
223b71206888 Initial import
thib
parents:
diff changeset
197 args:V<18>[17],"PB47"
223b71206888 Initial import
thib
parents:
diff changeset
198 CatStr
223b71206888 Initial import
thib
parents:
diff changeset
199 0x23 - cmd 01-0a:0002:00[ 2]
223b71206888 Initial import
thib
parents:
diff changeset
200 args:V<18>[17],V<18>[20]
223b71206888 Initial import
thib
parents:
diff changeset
201
223b71206888 Initial import
thib
parents:
diff changeset
202 WaitClick
223b71206888 Initial import
thib
parents:
diff changeset
203 0x23 - cmd 00-03:0011:00[ 0]
223b71206888 Initial import
thib
parents:
diff changeset
204
223b71206888 Initial import
thib
parents:
diff changeset
205 ChangeFaceGraphics
223b71206888 Initial import
thib
parents:
diff changeset
206 0x23 - cmd 00-03:03e8:00[ 1]
223b71206888 Initial import
thib
parents:
diff changeset
207 args:V<18>[17]
223b71206888 Initial import
thib
parents:
diff changeset
208 DeleteFaceGraphics
223b71206888 Initial import
thib
parents:
diff changeset
209 0x23 - cmd 00-03:03e9:01[ 0]
223b71206888 Initial import
thib
parents:
diff changeset
210 KoePlay
223b71206888 Initial import
thib
parents:
diff changeset
211 0x23 - cmd 01-17:0000:01[ 2]
223b71206888 Initial import
thib
parents:
diff changeset
212 args:100000026,5
65
4416cfac86ae Convert EUC-JP files to UTF8
Thibaut Girka <thib@sitedethib.com>
parents: 52
diff changeset
213 DrawGraphics(前景画あり)
0
223b71206888 Initial import
thib
parents:
diff changeset
214 0x23 - cmd 01-21:004b:00[ 1]
223b71206888 Initial import
thib
parents:
diff changeset
215 args:V<18>[1],10,kasane. #1 <args:V<18>[17],11>
223b71206888 Initial import
thib
parents:
diff changeset
216
65
4416cfac86ae Convert EUC-JP files to UTF8
Thibaut Girka <thib@sitedethib.com>
parents: 52
diff changeset
217 DrawGraphics(背景のみ)
0
223b71206888 Initial import
thib
parents:
diff changeset
218 0x23 - cmd 01-21:0049:00[ 2]
223b71206888 Initial import
thib
parents:
diff changeset
219 args:V<18>[1],10
223b71206888 Initial import
thib
parents:
diff changeset
220
223b71206888 Initial import
thib
parents:
diff changeset
221 Ruby
223b71206888 Initial import
thib
parents:
diff changeset
222 0x23 - cmd 00-03:0078:01[ 0]
65
4416cfac86ae Convert EUC-JP files to UTF8
Thibaut Girka <thib@sitedethib.com>
parents: 52
diff changeset
223 "理由"
0
223b71206888 Initial import
thib
parents:
diff changeset
224 0x23 - cmd 00-03:0078:00[ 1]
65
4416cfac86ae Convert EUC-JP files to UTF8
Thibaut Girka <thib@sitedethib.com>
parents: 52
diff changeset
225 "わけ"
0
223b71206888 Initial import
thib
parents:
diff changeset
226 SetTitle
223b71206888 Initial import
thib
parents:
diff changeset
227 0x23 - cmd 01-04:0000:00[ 1]
223b71206888 Initial import
thib
parents:
diff changeset
228 args:"Long Long Time Ago..."
223b71206888 Initial import
thib
parents:
diff changeset
229 WaitTime
223b71206888 Initial import
thib
parents:
diff changeset
230 0x23 - cmd 01-14:0069:00[ 1]
223b71206888 Initial import
thib
parents:
diff changeset
231 args:3000
65
4416cfac86ae Convert EUC-JP files to UTF8
Thibaut Girka <thib@sitedethib.com>
parents: 52
diff changeset
232 ChangeBGM 数値引数はフェードアウト、インの時間と推測
0
223b71206888 Initial import
thib
parents:
diff changeset
233 0x23 - cmd 01-14:0000:02[ 3]
223b71206888 Initial import
thib
parents:
diff changeset
234 args:"BGM18",700,700
223b71206888 Initial import
thib
parents:
diff changeset
235 */
223b71206888 Initial import
thib
parents:
diff changeset
236
223b71206888 Initial import
thib
parents:
diff changeset
237 struct CmdDescrItem {
223b71206888 Initial import
thib
parents:
diff changeset
238 CmdDescrItem* next;
223b71206888 Initial import
thib
parents:
diff changeset
239 int cmd4;
223b71206888 Initial import
thib
parents:
diff changeset
240 int cmd1;
223b71206888 Initial import
thib
parents:
diff changeset
241 int cmd2;
223b71206888 Initial import
thib
parents:
diff changeset
242 int cmd3;
223b71206888 Initial import
thib
parents:
diff changeset
243 const char* cmd_descr;
223b71206888 Initial import
thib
parents:
diff changeset
244 };
223b71206888 Initial import
thib
parents:
diff changeset
245 CmdDescrItem cmd_descr_orig[] = {
223b71206888 Initial import
thib
parents:
diff changeset
246 // scn2k_impl.cc; Scn2k::SysExec()
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
247 {0,0,0x01,0x05,0, "shell"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
248 {0,0,0x01,0x05,1, "launch"},
0
223b71206888 Initial import
thib
parents:
diff changeset
249 {0,0,0x00,0x01,0x0a, "local return"},
223b71206888 Initial import
thib
parents:
diff changeset
250 {0,0,0x00,0x01,0x0b, "global jump"},
223b71206888 Initial import
thib
parents:
diff changeset
251 {0,0,0x00,0x01,0x0c, "global call"},
223b71206888 Initial import
thib
parents:
diff changeset
252 {0,0,0x00,0x01,0x0d, "global return"},
223b71206888 Initial import
thib
parents:
diff changeset
253 {0,0,0x00,0x01,0x12, "global call"},
223b71206888 Initial import
thib
parents:
diff changeset
254 {0,0,0x00,0x01,0x13, "global return(?)"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
255 {0,0,0x01,0x04,0x00, "SetWindowCaption"},
0
223b71206888 Initial import
thib
parents:
diff changeset
256 {0,0,0x00,0x04,0x0d, "Menu_return"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
257 {0,0,0x01,0x04,0x74, "SetTimer"},
0
223b71206888 Initial import
thib
parents:
diff changeset
258 {0,0,0x01,0x04,0x82, "ClearMousePress"},
223b71206888 Initial import
thib
parents:
diff changeset
259 {0,0,0x01,0x04,0x83, "GetMouse(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
260 {0,0,0x01,0x04,0x85, "GetMouse"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
261 {0,0,0x01,0x04,0x12c,"rtlButton"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
262 {0,0,0x01,0x04,0x14c,"LocalSkipMode"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
263 {0,0,0x01,0x04,0x15e,"CtrlKeySkip"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
264 {0,0,0x01,0x04,0x15f,"CtrlKeySkipOn"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
265 {0,0,0x01,0x04,0x160,"CtrlKeySkipOff"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
266 {0,0,0x01,0x04,0x161,"CtrlPressed"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
267 {0,0,0x01,0x04,0x162,"ShiftPressed"},
0
223b71206888 Initial import
thib
parents:
diff changeset
268 {0,0,0x01,0x04,0x4b0,"QuitGame"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
269 {0,0,0x01,0x04,0x4b1,"GoMenu"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
270 {0,0,0x01,0x04,0x4b3,"GoMenu_Badend"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
271 {0,0,0x01,0x04,0x4bb,"EnableSyscom"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
272 {0,0,0x01,0x04,0x4bc,"HideSyscom"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
273 {0,0,0x01,0x04,0x4cf,"??? (Air, Clannad, Kanon)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
274 {0,0,0x01,0x04,0x515,"SetName"},
0
223b71206888 Initial import
thib
parents:
diff changeset
275 {0,0,0x01,0x04,0x58d,"PrevSaveNumber"},
223b71206888 Initial import
thib
parents:
diff changeset
276 {0,0,0x01,0x04,0x585,"SavedDate"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
277 {0,0,0x01,0x04,0x5de,"cgGetViewedPcnt"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
278 {0,0,0x01,0x04,0x7d1,"??? (Air, Clannad, Kanon)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
279 {0,0,0x01,0x04,0x803,"SetSkipAnimations"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
280 {0,0,0x01,0x04,0x8e3,"SetScreenMode"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
281 {0,0,0x01,0x04,0x947,"ScreenMode"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
282 {0,0,0x01,0x04,0xbb9,"menu_load"},
0
223b71206888 Initial import
thib
parents:
diff changeset
283 {0,0,0x01,0x04,0xc23,"Save"},
223b71206888 Initial import
thib
parents:
diff changeset
284 {0,0,0x01,0x04,0xc25,"Load"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
285 {0,0,0x01,0x04,0xdaf,"? CloseAll"},
0
223b71206888 Initial import
thib
parents:
diff changeset
286 {0,0,0x01,0x04,0xcc, "ShowMouseCursor"},
223b71206888 Initial import
thib
parents:
diff changeset
287 {0,0,0x01,0x04,0xcd, "HideMouseCursor"},
223b71206888 Initial import
thib
parents:
diff changeset
288 {0,0,0x01,0x04,0xcf, "SetCursorType"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
289
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
290 // debug commands
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
291 {0,0,0x01,0xff,0x32, "??? (Clannad)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
292 {0,0,0x01,0xff,0x65, "__SaveBufferIdx"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
293
29
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
294 // scn2k_cmd.cc; CmdD::GetCmd()
0
223b71206888 Initial import
thib
parents:
diff changeset
295 {0,0,0x00,0x01,0, "local jump"},
223b71206888 Initial import
thib
parents:
diff changeset
296 {0,0,0x00,0x01,1, "local jump-if"},
223b71206888 Initial import
thib
parents:
diff changeset
297 {0,0,0x00,0x01,2, "local jump-unless"},
223b71206888 Initial import
thib
parents:
diff changeset
298 {0,0,0x00,0x01,3, "local jump-switch??"},
223b71206888 Initial import
thib
parents:
diff changeset
299 {0,0,0x00,0x01,4, "local switch"},
223b71206888 Initial import
thib
parents:
diff changeset
300 {0,0,0x00,0x01,5, "local call"},
223b71206888 Initial import
thib
parents:
diff changeset
301 {0,0,0x00,0x01,8, "local switch(simple form)"},
223b71206888 Initial import
thib
parents:
diff changeset
302 {0,0,0x01,0x0b,0, "set multiple variables"},
223b71206888 Initial import
thib
parents:
diff changeset
303 {0,0,0x01,0x0b,1, "set variables in a range"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
304 {0,0,0x01,0x0b,2, "cpyrng"},
0
223b71206888 Initial import
thib
parents:
diff changeset
305 {0,0,0x01,0x0b,4, "clear variables in a range"},
223b71206888 Initial import
thib
parents:
diff changeset
306 {0,0,0x01,0x0b,0x64, "get summation of variables in a range"},
223b71206888 Initial import
thib
parents:
diff changeset
307 // scn2k_cmd.cc; Flags::Exec()
223b71206888 Initial import
thib
parents:
diff changeset
308 {0,0,0x01,0x0a,0, "SetStr"},
223b71206888 Initial import
thib
parents:
diff changeset
309 {0,0,0x01,0x0a,1, "ClearStr"},
223b71206888 Initial import
thib
parents:
diff changeset
310 {0,0,0x01,0x0a,2, "AppendStr"},
223b71206888 Initial import
thib
parents:
diff changeset
311 {0,0,0x01,0x0a,3, "StrLen"},
223b71206888 Initial import
thib
parents:
diff changeset
312 {0,0,0x01,0x0a,4, "StrCmp"},
223b71206888 Initial import
thib
parents:
diff changeset
313 {0,0,0x01,0x0a,5, "SubStrL"},
223b71206888 Initial import
thib
parents:
diff changeset
314 {0,0,0x01,0x0a,6, "SubStrR"},
223b71206888 Initial import
thib
parents:
diff changeset
315 {0,0,0x01,0x0a,7, "StrLenWideChar"},
223b71206888 Initial import
thib
parents:
diff changeset
316 {0,0,0x01,0x0a,8, "TrimStr"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
317 {0,0,0x01,0x0a,0x0b, "zentohan"},
0
223b71206888 Initial import
thib
parents:
diff changeset
318 {0,0,0x01,0x0a,0x0f, "IntToStr"},
223b71206888 Initial import
thib
parents:
diff changeset
319 {0,0,0x01,0x0a,0x11, "IntToStr_Fill"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
320 {0,0,0x01,0x0a,0x1e, "strpos"},
0
223b71206888 Initial import
thib
parents:
diff changeset
321 {0,0,0x01,0x0a,0x64, "ShowStr"},
223b71206888 Initial import
thib
parents:
diff changeset
322 // scn2k_text.cc; TextImpl::Exec()
223b71206888 Initial import
thib
parents:
diff changeset
323 {0,0,0x01,0x21,0x49, "SetFaceGraphic"},
223b71206888 Initial import
thib
parents:
diff changeset
324 {0,0,0x01,0x21,0x4b, "SetFaceGraphic"},
223b71206888 Initial import
thib
parents:
diff changeset
325 {0,0,0x01,0x21,0x4c, "SetFaceGraphic"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
326 {0,0,0x00,0x03,0x03, "TextReturn"},
0
223b71206888 Initial import
thib
parents:
diff changeset
327 {0,0,0x00,0x03,0x11, "WaitText"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
328 {0,0,0x00,0x03,0x65, "FontSize"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
329 {0,0,0x00,0x03,0x66, "SetTextWindowType"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
330 {0,0,0x00,0x03,0x67, "OpenTextWindow"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
331 {0,0,0x00,0x03,0x68, "ShowText"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
332 {0,0,0x00,0x03,0x78, "TextRuby"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
333 {0,0,0x00,0x03,0x97, "CloseTextWindow"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
334 {0,0,0x00,0x03,0x98, "ClearTextWindow"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
335 {0,0,0x00,0x03,0xa1, "msgHideAll"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
336 {0,0,0x00,0x03,0xa2, "msgClearAll"},
0
223b71206888 Initial import
thib
parents:
diff changeset
337 {0,0,0x00,0x03,0xc9, "TextReturn"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
338 {0,0,0x00,0x03,0xcd, "spause"},
0
223b71206888 Initial import
thib
parents:
diff changeset
339 {0,0,0x00,0x03,0x3e8,"SetFaceGraphic"},
223b71206888 Initial import
thib
parents:
diff changeset
340 {0,0,0x00,0x03,0x3e9,"SetFaceGraphic"},
223b71206888 Initial import
thib
parents:
diff changeset
341 {0,0,0x00,0x02,0x01, "Select"},
223b71206888 Initial import
thib
parents:
diff changeset
342 {0,0,0x00,0x02,0x03, "Select"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
343
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
344 {0,0,0x00,0x04,0x12d,"rtlCancel"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
345 {0,0,0x00,0x04,0x3e8,"CloseTextWindow (ShowBackground)"},
0
223b71206888 Initial import
thib
parents:
diff changeset
346 {0,0,0x00,0x04,0x44c,"TextSkipStart"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
347 {0,0,0x00,0x04,0x44d,"ClearSkipMode"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
348 {0,0,0x00,0x04,0x44e,"SkipMode"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
349 {0,0,0x00,0x04,0x4b0,"end"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
350 {0,0,0x00,0x04,0x4b1,"MenuReturn"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
351 {0,0,0x00,0x04,0x4b2,"MenuReturn2"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
352 {0,0,0x00,0x04,0x4b3,"ReturnMenu"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
353
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
354 {0,0,0x01,0x04,0x12d,"??? (Clannad)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
355 {0,0,0x01,0x04,0x12e,"??? (Clannad)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
356 {0,0,0x01,0x04,0x16e,"??? cursor? (Clannad)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
357 {0,0,0x01,0x04,0x3ea,"abs"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
358 {0,0,0x01,0x04,0x4b4,"ReturnPrevSelect"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
359 {0,0,0x01,0x04,0x4be,"SyscomEnabled"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
360 {0,0,0x01,0x04,0x4bf,"InvokeSyscom"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
361 {0,0,0x01,0x04,0x7d0,"CursorMono"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
362 {0,0,0x01,0x04,0x7d2,"LowPriority"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
363 {0,0,0x01,0x04,0x7d3,"ConfirmSaveLoad"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
364 {0,0,0x01,0x04,0x7d4,"ReduceDistortion"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
365 {0,0,0x01,0x04,0x7d9,"SoundQuality"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
366 {0,0,0x01,0x04,0x802,"SetCursorMono"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
367 {0,0,0x01,0x04,0x804,"SetLowPriority"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
368 {0,0,0x01,0x04,0x805,"SetConfirmSaveLoad"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
369 {0,0,0x01,0x04,0x806,"SetReduceDistortion"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
370 {0,0,0x01,0x04,0x80b,"SetSoundQuality"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
371 {0,0,0x01,0x04,0x8b6,"(Set)BgmVolMod"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
372 {0,0,0x01,0x04,0x8b8,"(Set)PcmVolMod"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
373 {0,0,0x01,0x04,0x8b9,"(Set)SeVolMod"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
374 {0,0,0x01,0x04,0x8c0,"(Set)BgmEnabled"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
375 {0,0,0x01,0x04,0x8c2,"(Set)PcmEnabled"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
376 {0,0,0x01,0x04,0x8c3,"(Set)SeEnabled"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
377 {0,0,0x01,0x04,0x8de,"(Set)ShowObject1"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
378 {0,0,0x01,0x04,0x91a,"BgmVolMod"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
379 {0,0,0x01,0x04,0x91c,"PcmVolMod"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
380 {0,0,0x01,0x04,0x91d,"SeVolMod"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
381 {0,0,0x01,0x04,0x924,"BgmEnabled"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
382 {0,0,0x01,0x04,0x926,"PcmEnabled"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
383 {0,0,0x01,0x04,0x927,"SeEnabled"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
384 {0,0,0x01,0x04,0x942,"ShowObject1"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
385 {0,0,0x01,0x04,0xdac,"Savepoint"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
386 {0,0,0x01,0x04,0xdad,"EnableAutoSavepoints"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
387 {0,0,0x01,0x04,0xdae,"DisableAutoSavepoints"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
388
0
223b71206888 Initial import
thib
parents:
diff changeset
389 {0,0,0x01,0x04,0x64, "WaitTime"},
223b71206888 Initial import
thib
parents:
diff changeset
390 {0,0,0x01,0x04,0x6f, "WaitTime"},
223b71206888 Initial import
thib
parents:
diff changeset
391 {0,0,0x01,0x04,0x79, "WaitTime"},
223b71206888 Initial import
thib
parents:
diff changeset
392 {0,0,0x01,0x04,0x65, "WaitTime w/ Cancel"},
223b71206888 Initial import
thib
parents:
diff changeset
393 {0,0,0x01,0x04,0x70, "WaitTime w/ Cancel"},
223b71206888 Initial import
thib
parents:
diff changeset
394 {0,0,0x01,0x04,0x1fe,"GetTimer"},
223b71206888 Initial import
thib
parents:
diff changeset
395 {0,0,0x01,0x04,0x201,"ResetTimer (unsupported; see rldev)"},
223b71206888 Initial import
thib
parents:
diff changeset
396 {0,0,0x01,0x04,0x202,"ResetTimerAll (unsupported; see rldev)"},
223b71206888 Initial import
thib
parents:
diff changeset
397 {0,0,0x01,0x04,0x72, "GetTimer"},
223b71206888 Initial import
thib
parents:
diff changeset
398 {0,0,0x01,0x04,0x7c, "GetTimer(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
399 {0,0,0x01,0x04,0x6e, "ClearTimer"},
223b71206888 Initial import
thib
parents:
diff changeset
400 {0,0,0x01,0x04,0x78, "ClearTimer(2)"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
401 {0,0,0x01,0x04,0x258,"InitFrames"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
402 {0,0,0x01,0x04,0x259,"InitFramesLoop"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
403 {0,0,0x01,0x04,0x262,"ReadFrames"},
0
223b71206888 Initial import
thib
parents:
diff changeset
404 {0,0,0x01,0x04,0x26c,"ClearTimer(multi)"},
223b71206888 Initial import
thib
parents:
diff changeset
405 {0,0,0x01,0x04,0x270,"ClearTimer(multi)"},
223b71206888 Initial import
thib
parents:
diff changeset
406 {0,0,0x01,0x04,0x276,"GetTimer(multi)"},
223b71206888 Initial import
thib
parents:
diff changeset
407 {0,0,0x01,0x04,0x1f4,"SetTimer"},
223b71206888 Initial import
thib
parents:
diff changeset
408 {0,0,0x01,0x04,0x3e8,"rand(x,y)"},
223b71206888 Initial import
thib
parents:
diff changeset
409 {0,0,0x01,0x04,0x3ec,"min(x,y)"},
223b71206888 Initial import
thib
parents:
diff changeset
410 {0,0,0x01,0x04,0x3ef,"min(x,y)"},
223b71206888 Initial import
thib
parents:
diff changeset
411 {0,0,0x01,0x04,0x320,"range conversion(V,?,ResultMin,ValMin,ValMax,ResultMax,?)"},
223b71206888 Initial import
thib
parents:
diff changeset
412 {0,0,0x01,0x04,0x3f1,"in_range(x,y,a)"},
223b71206888 Initial import
thib
parents:
diff changeset
413 {0,0,0x01,0x04,0x16c,"SetCursorType?"},
223b71206888 Initial import
thib
parents:
diff changeset
414 {0,0,0x01,0x04,0xbc1,"LoadFromMenu"},
223b71206888 Initial import
thib
parents:
diff changeset
415 {0,0,0x01,0x04,0x8d4,"SetTextWindowColor"},
223b71206888 Initial import
thib
parents:
diff changeset
416 {0,0,0x01,0x04,0x8d5,"SetTextWindowColor"},
223b71206888 Initial import
thib
parents:
diff changeset
417 {0,0,0x01,0x04,0x8d6,"SetTextWindowColor"},
223b71206888 Initial import
thib
parents:
diff changeset
418 {0,0,0x01,0x04,0x8d7,"SetTextWindowColor"},
223b71206888 Initial import
thib
parents:
diff changeset
419 {0,0,0x01,0x04,0x8d8,"SetTextWindowColor"},
223b71206888 Initial import
thib
parents:
diff changeset
420 {0,0,0x01,0x04,0x8db,"SetTextWindowColor"},
223b71206888 Initial import
thib
parents:
diff changeset
421 {0,0,0x01,0x04,0x93f,"SetTextWindowColor"},
223b71206888 Initial import
thib
parents:
diff changeset
422 {0,0,0x01,0x04,0xa39,"SetTextWindowColor"},
223b71206888 Initial import
thib
parents:
diff changeset
423 {0,0,0x01,0x04,0xa28,"Get #INIT_MESSAGE_SPEED (original) from gameexe.ini"},
223b71206888 Initial import
thib
parents:
diff changeset
424 {0,0,0x01,0x04,0xa29,"Get #INIT_MESSAGE_SPEED (original) from gameexe.ini"},
223b71206888 Initial import
thib
parents:
diff changeset
425 {0,0,0x01,0x04,0xa2c,"Get #MESSAGE_KEY_WAIT_USE (original) from gameexe.ini"},
223b71206888 Initial import
thib
parents:
diff changeset
426 {0,0,0x01,0x04,0xa2d,"Get #INIT_MESSAGE_SPEED (original) from gameexe.ini"},
223b71206888 Initial import
thib
parents:
diff changeset
427 {0,0,0x01,0x04,0xa2e,"Get #MESSAGE_KEY_WAIT_TIME (original) from gameexe.ini"},
223b71206888 Initial import
thib
parents:
diff changeset
428 {0,0,0x01,0x04,0x913,"Get #INIT_MESSAGE_SPEED"},
223b71206888 Initial import
thib
parents:
diff changeset
429 {0,0,0x01,0x04,0x914,"Get #INIT_MESSAGE_SPEED_MOD"},
223b71206888 Initial import
thib
parents:
diff changeset
430 {0,0,0x01,0x04,0x92e,"Get #MESSAGE_KEY_WAIT_USE"},
223b71206888 Initial import
thib
parents:
diff changeset
431 {0,0,0x01,0x04,0x92f,"Get #INIT_MESSAGE_SPEED_MOD"},
223b71206888 Initial import
thib
parents:
diff changeset
432 {0,0,0x01,0x04,0x930,"Get #MESSAGE_KEY_WAIT_TIME"},
223b71206888 Initial import
thib
parents:
diff changeset
433 {0,0,0x01,0x04,0x8af,"Set #INIT_MESSAGE_SPEED"},
223b71206888 Initial import
thib
parents:
diff changeset
434 {0,0,0x01,0x04,0x8b0,"Set #INIT_MESSAGE_SPEED_MOD"},
223b71206888 Initial import
thib
parents:
diff changeset
435 {0,0,0x01,0x04,0x8ca,"Set #MESSAGE_KEY_WAIT_USE"},
223b71206888 Initial import
thib
parents:
diff changeset
436 {0,0,0x01,0x04,0x8cb,"Set #INIT_MESSAGE_SPEED_MOD"},
223b71206888 Initial import
thib
parents:
diff changeset
437 {0,0,0x01,0x04,0x8cc,"Set #MESSAGE_KEY_WAIT_USE"},
223b71206888 Initial import
thib
parents:
diff changeset
438 {0,0,0x01,0x04,0x51f,"Set Name Text"},
223b71206888 Initial import
thib
parents:
diff changeset
439 {0,0,0x01,0x04,0x51e,"Get Name Text"},
223b71206888 Initial import
thib
parents:
diff changeset
440 {0,0,0x01,0x04,0x514,"Get Name Text"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
441 {0,0,0x01,0x04,0x6a4,"CreateInput"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
442 {0,0,0x01,0x04,0x6a5,"CloseInput"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
443 {0,0,0x01,0x04,0x6a6,"CloseAllInput"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
444 {0,0,0x01,0x04,0x6a7,"FocusInput"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
445 {0,0,0x01,0x04,0x6ae,"SetInput"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
446 {0,0,0x01,0x04,0x6af,"GetInput"},
0
223b71206888 Initial import
thib
parents:
diff changeset
447 // scn2k_grp.cc; GrpImpl::Exec()
223b71206888 Initial import
thib
parents:
diff changeset
448 // music commands
223b71206888 Initial import
thib
parents:
diff changeset
449 {0,0,0x01,0x14,0, "PlayBGM"},
223b71206888 Initial import
thib
parents:
diff changeset
450 {0,0,0x01,0x14,2, "PlayBGM"},
223b71206888 Initial import
thib
parents:
diff changeset
451 {0,0,0x01,0x14,0x05, "StopBGM"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
452 {0,0,0x01,0x14,0x0c, "bgmSetVolume"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
453 {0,0,0x01,0x14,0x0d, "bgmUnMute"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
454 {0,0,0x01,0x14,0x0e, "bgmMute"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
455 {0,0,0x01,0x14,0x69, "bgmFadeOut"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
456 {0,0,0x01,0x14,0x6a, "bgmFadeOutEx"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
457 {0,0,0x01,0x14,0x3ea,"??? bgm (Air)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
458
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
459 {0,0,0x01,0x15,0, "wavPlay"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
460 {0,0,0x01,0x15,1, "wavPlayEx"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
461 {0,0,0x01,0x15,2, "wavLoop"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
462 {0,0,0x01,0x15,3, "wavWait"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
463 {0,0,0x01,0x15,4, "wavPlaying"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
464 {0,0,0x01,0x15,5, "wavStop"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
465 {0,0,0x01,0x15,7, "wavPlaying2"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
466 {0,0,0x01,0x15,8, "wavRewind"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
467 {0,0,0x01,0x15,9, "wavStop3"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
468 {0,0,0x01,0x15,10, "wavStop4"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
469 {0,0,0x01,0x15,11, "wavVolume"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
470 {0,0,0x01,0x15,12, "wavSetVolume"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
471 {0,0,0x01,0x15,13, "wavUnMute"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
472 {0,0,0x01,0x15,14, "wavMute"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
473 {0,0,0x01,0x15,20, "wavStopAll"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
474 {0,0,0x01,0x15,105, "wavFadeOut"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
475 {0,0,0x01,0x15,106, "wavFadeOut2"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
476
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
477 {0,0,0x01,0x16,0, "sePlay"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
478
0
223b71206888 Initial import
thib
parents:
diff changeset
479 {0,0,0x01,0x17,0, "PlayKoe"},
223b71206888 Initial import
thib
parents:
diff changeset
480 {0,0,0x01,0x1a,1, "PlayMovie"},
223b71206888 Initial import
thib
parents:
diff changeset
481 {0,0,0x01,0x1a,0x14, "PlayMovie"},
223b71206888 Initial import
thib
parents:
diff changeset
482 // graphic commands
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
483 {0,0,0x01,0x0c,0, "ShakeLayersStop"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
484 {0,0,0x01,0x0c,0x44c,"__shlud ShakeLayers"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
485 {0,0,0x01,0x0c,0x44d,"__shlrl ShakeLayers"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
486 {0,0,0x01,0x0c,0xce4,"ShakeLayersSpecEx"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
487 {0,0,0x01,0xc,0x1005,"??? shake (Clannad)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
488 {0,0,0x01,0xc,0x106a,"??? shake (Clannad)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
489
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
490 {0,0,0x01,0x0d,0, "ShakeStop"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
491 {0,0,0x01,0x0d,0x44e,"ShakeScreen2D"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
492 {0,0,0x01,0x0d,0x514,"ShakeSpec"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
493 {0,0,0x01,0x0d,0xc1e,"ShakeScreen2DEx"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
494
0
223b71206888 Initial import
thib
parents:
diff changeset
495 {0,0,0x01,0x1e,0, "GraphicStackClear"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
496 {0,0,0x01,0x1e,0x01, "GraphicStackNop"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
497 {0,0,0x01,0x1e,0x02, "GraphicStackPop"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
498 {0,0,0x01,0x1e,0x03, "GraphicStackSize"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
499 {0,0,0x01,0x1e,0x04, "GraphicStackTrunc"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
500 {0,0,0x01,0x1e,0x14, "DrawAuto"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
501 {0,0,0x01,0x1e,0x15, "DrawSemiAuto"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
502 {0,0,0x01,0x1e,0x16, "DrawManual"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
503 {0,0,0x01,0x1e,0x1e, "ModeToScreenSize"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
504 {0,0,0x01,0x1e,0x1f, "GetDCPixel"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
505
0
223b71206888 Initial import
thib
parents:
diff changeset
506 {0,0,0x01,0x1f,0, "GraphicStackClear"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
507
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
508 {0,0,0x01,0x21,0x10, "freeDC"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
509 {0,0,0x01,0x21,0x1f, "wipe"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
510 {0,0,0x01,0x21,0x20, "shake"},
0
223b71206888 Initial import
thib
parents:
diff changeset
511 {0,0,0x01,0x21,0x46, "LoadSurface"},
223b71206888 Initial import
thib
parents:
diff changeset
512 {0,0,0x01,0x21,0x49, "LoadBackSurface"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
513 {0,0,0x01,0x21,0x4a, "grpMaskOpen"},
0
223b71206888 Initial import
thib
parents:
diff changeset
514 {0,0,0x01,0x21,0x4b, "LoadForeSurface"},
223b71206888 Initial import
thib
parents:
diff changeset
515 {0,0,0x01,0x21,0x4c, "LoadSurface"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
516 {0,0,0x01,0x21,0x4d, "grpMulti"},
0
223b71206888 Initial import
thib
parents:
diff changeset
517 {0,0,0x01,0x21,0x64, "CopySurface"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
518 {0,0,0x01,0x21,0x65, "grpMaskCopy"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
519 {0,0,0x01,0x21,0xc9, "grpFill"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
520 {0,0,0x01,0x21,0x12c,"grpInvert"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
521 {0,0,0x01,0x21,0x12d,"grpMono"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
522 {0,0,0x01,0x21,0x12f,"grpLight"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
523 {0,0,0x01,0x21,0x192,"grpZoom"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
524 {0,0,0x01,0x21,0x193,"grpFade"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
525 {0,0,0x01,0x21,0x194,"grpFlash"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
526 {0,0,0x01,0x21,0x195,"DefaultWindowResetPos"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
527 {0,0,0x01,0x21,0x41a,"recLoad"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
528 {0,0,0x01,0x21,0x41b,"recMaskLoad"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
529 {0,0,0x01,0x21,0x41d,"recOpenBg"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
530 {0,0,0x01,0x21,0x420,"recOpen"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
531 {0,0,0x01,0x21,0x44c,"recCopy"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
532 {0,0,0x01,0x21,0x44d,"recMaskCopy"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
533 {0,0,0x01,0x21,0x4b1,"recFill"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
534 {0,0,0x01,0x21,0x514,"recInvert"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
535 {0,0,0x01,0x21,0x515,"recMono"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
536 {0,0,0x01,0x21,0x579,"recStretchBlt"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
537 {0,0,0x01,0x21,0x640,"recAdd"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
538 {0,0,0x01,0x21,0x6a4,"recSub"},
0
223b71206888 Initial import
thib
parents:
diff changeset
539 {0,0,0x01,0x21,0x196,"??? grp"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
540
0
223b71206888 Initial import
thib
parents:
diff changeset
541 {0,0,0x01,0x22,0xc30,"ScrollEffect (Princess Bride)"},
223b71206888 Initial import
thib
parents:
diff changeset
542 {0,0,0x01,0x22,0xc1c,"FallEffect (Princess Bride)"},
223b71206888 Initial import
thib
parents:
diff changeset
543 {0,0,0x01,0x22,0x835,"FallEffect (Princess Bride)"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
544
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
545 // Backgrounds
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
546 {0,0,0x01,0x28,0xa, "bgrLoadHaikei"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
547 {0,0,0x01,0x28,0x64, "bgrMulti"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
548
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
549 {0,0,0x01,0x04,0x1cc,"EnableWindowAnm"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
550 {0,0,0x01,0x04,0x1cd,"DisableWindowAnm"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
551 {0,0,0x01,0x04,0x1ce,"GetOpenAnmMod"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
552 {0,0,0x01,0x04,0x1cf,"SetOpenAnmMod"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
553 {0,0,0x01,0x04,0x1d0,"GetOpenAnmTime"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
554 {0,0,0x01,0x04,0x1d1,"SetOpenAnmTime"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
555 {0,0,0x01,0x04,0x1d2,"GetCloseAnmMod"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
556 {0,0,0x01,0x04,0x1d3,"SetCloseAnmMod"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
557 {0,0,0x01,0x04,0x1d4,"GetCloseAnmTime"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
558 {0,0,0x01,0x04,0x1d5,"SetCloseAnmTime"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
559
0
223b71206888 Initial import
thib
parents:
diff changeset
560 // grphic object commands
223b71206888 Initial import
thib
parents:
diff changeset
561 {0,0,0x01,0x04,0xd2, "??? grp"},
223b71206888 Initial import
thib
parents:
diff changeset
562 {0,0,0x01,0x04,0xd3, "??? grp"},
223b71206888 Initial import
thib
parents:
diff changeset
563 {0,0,0x01,0x04,0xd7, "??? grp"},
223b71206888 Initial import
thib
parents:
diff changeset
564 {0,0,0x01,0x04,0xd8, "??? grp"},
223b71206888 Initial import
thib
parents:
diff changeset
565 {0,0,0x01,0x04,0x5e0,"GetShownGrpFlag"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
566
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
567 // Obj
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
568 {0,0,0x01,0x3d,0x02, "objCopy"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
569 {0,0,0x01,0x3d,0x04, "objWipeCopyOn"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
570 {0,0,0x01,0x3d,0x0a, "ClearGrpObj (objClear)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
571 {0,0,0x01,0x3d,0x0b, "ClearGrpObj (objDelete)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
572 {0,0,0x01,0x3d,0x6f, "??? (Kanon)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
573
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
574 // ObjBg
0
223b71206888 Initial import
thib
parents:
diff changeset
575 {0,0,0x01,0x3e,0x0a, "ClearGrpObj"},
223b71206888 Initial import
thib
parents:
diff changeset
576 {0,0,0x01,0x3e,0x0a, "ClearGrpObj"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
577 {0,0,0x01,0x3c,0x00, "??? grp (Clannad)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
578 {0,0,0x01,0x3c,0x01, "??? grp (Air, Clannad, Kanon)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
579 {0,0,0x01,0x3c,0x02, "objCopyFgToBg"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
580 {0,0,0x01,0x3c,0x64, "??? grp (Clannad)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
581 {0,0,0x01,0x3c,0x6e, "??? grp (Clannad)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
582 {0,0,0x01,0x3c,0x6f, "??? grp (Air)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
583 {0,0,0x01,0x3e,0x02, "objBgCopyToFg"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
584 {0,0,0x01,0x47,0x3e8,"SetGrpObj_Fname (objOfFile)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
585 {0,0,0x01,0x47,0x3e9,"SetGrpObj_Fname (objOfFile2)"},
0
223b71206888 Initial import
thib
parents:
diff changeset
586 {0,0,0x01,0x47,0x3eb,"SetGrpObj_GANname"},
223b71206888 Initial import
thib
parents:
diff changeset
587 {0,0,0x01,0x47,0x4b0,"SetGrpObj_Text"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
588 {0,0,0x01,0x47,0x514,"objDriftOfFile"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
589 {0,0,0x01,0x48,0x3e8,"objBgOfFile"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
590 {0,0,0x01,0x48,0x3e9,"objBgOfFile2"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
591 {0,0,0x01,0x48,0x3eb,"objBgOfFileGan/Anm"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
592 {0,0,0x01,0x48,0x44c,"objBgOfArea"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
593 {0,0,0x01,0x48,0x44d,"objBgOfRect"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
594 {0,0,0x01,0x48,0x4b0,"objBgOfText"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
595 {0,0,0x01,0x48,0x514,"objBgDriftOfFile"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
596 {0,0,0x01,0x48,0x578,"objBgOfDigit"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
597
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
598 // Gan
0
223b71206888 Initial import
thib
parents:
diff changeset
599 {0,0,0x01,0x49,0, "StopAnimation"},
223b71206888 Initial import
thib
parents:
diff changeset
600 {0,0,0x01,0x49,3, "QueryExecAnimation"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
601 {0,0,0x01,0x49,4, "??? (Clannad)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
602 {0,0,0x01,0x49,0x68, "??? (Clannad)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
603 {0,0,0x01,0x49,0x3ee,"ganPlayEx"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
604 {0,0,0x01,0x49,0x7d1,"objLoop"},
0
223b71206888 Initial import
thib
parents:
diff changeset
605 {0,0,0x01,0x49,0x7d3,"SetGrpObj_GAN?"},
223b71206888 Initial import
thib
parents:
diff changeset
606 {0,0,0x01,0x49,0xbb9,"StartAnimation"},
223b71206888 Initial import
thib
parents:
diff changeset
607 {0,0,0x01,0x49,0xbbb,"StartAnimation"},
223b71206888 Initial import
thib
parents:
diff changeset
608 {0,0,0x01,0x49,0xbbd,"StartAnimation"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
609 {0,0,0x01,0x49,0xc1f,"??? (Clannad)"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
610
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
611 // obj
0
223b71206888 Initial import
thib
parents:
diff changeset
612 {0,0,0x01,0x51,0x3e8,"SetGrpObj_xy"},
223b71206888 Initial import
thib
parents:
diff changeset
613 {0,0,0x01,0x51,0x3e9,"SetGrpObj_x"},
223b71206888 Initial import
thib
parents:
diff changeset
614 {0,0,0x01,0x51,0x3ea,"SetGrpObj_y"},
223b71206888 Initial import
thib
parents:
diff changeset
615 {0,0,0x01,0x51,0x3eb,"SetGrpObj_alpha"},
223b71206888 Initial import
thib
parents:
diff changeset
616 {0,0,0x01,0x51,0x3ec,"SetGrpObj_visible"},
223b71206888 Initial import
thib
parents:
diff changeset
617 {0,0,0x01,0x51,0x3ee,"SetGrpObj_xy?"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
618 {0,0,0x01,0x51,0x3f8,"objColour"},
0
223b71206888 Initial import
thib
parents:
diff changeset
619 {0,0,0x01,0x51,0x3fd,"SetGrpObj_centering?"},
223b71206888 Initial import
thib
parents:
diff changeset
620 {0,0,0x01,0x51,0x401,"SetGrpObj_textsize"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
621 {0,0,0x01,0x51,0x407,"SetGrpObj_objDriftOpts"},
0
223b71206888 Initial import
thib
parents:
diff changeset
622 {0,0,0x01,0x51,0x40a,"SetGrpObj_clipregion"},
223b71206888 Initial import
thib
parents:
diff changeset
623 {0,0,0x01,0x51,0x40f,"SetGrpObj_surfacenum"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
624 {0,0,0x01,0x51,0x410,"SetGrpObj_??? (Clannad)"},
0
223b71206888 Initial import
thib
parents:
diff changeset
625 {0,0,0x01,0x51,0x416,"SetGrpObj_expand"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
626 {0,0,0x01,0x51,0x418,"objHeight"},
0
223b71206888 Initial import
thib
parents:
diff changeset
627 {0,0,0x01,0x51,0x419,"SetGrpObj_rotate"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
628 {0,0,0x01,0x51,0x41a,"objRepOrigin"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
629 {0,0,0x01,0x51,0x41c,"objRepOriginY"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
630 {0,0,0x01,0x51,0x420,"objFadeOpts"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
631
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
632 // objBg
0
223b71206888 Initial import
thib
parents:
diff changeset
633 {0,0,0x01,0x52,0x3e8,"SetGrpObj_xy(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
634 {0,0,0x01,0x52,0x3ea,"SetGrpObj_y(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
635 {0,0,0x01,0x52,0x3eb,"SetGrpObj_alpha(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
636 {0,0,0x01,0x52,0x3ec,"SetGrpObj_visible(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
637 {0,0,0x01,0x52,0x3ee,"SetGrpObj_xy?(2)"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
638 {0,0,0x01,0x52,0x3f1,"objBgMono"},
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
639 {0,0,0x01,0x52,0x3f8,"objBgColour"},
0
223b71206888 Initial import
thib
parents:
diff changeset
640 {0,0,0x01,0x52,0x3fd,"SetGrpObj_centering?(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
641 {0,0,0x01,0x52,0x401,"SetGrpObj_textsize(2)"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
642 {0,0,0x01,0x52,0x407,"objBgDriftOpts"},
0
223b71206888 Initial import
thib
parents:
diff changeset
643 {0,0,0x01,0x52,0x408,"SetGrpObj_order (not supported)"},
223b71206888 Initial import
thib
parents:
diff changeset
644 {0,0,0x01,0x52,0x40a,"SetGrpObj_clipregion(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
645 {0,0,0x01,0x52,0x40f,"SetGrpObj_surfacenum(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
646 {0,0,0x01,0x52,0x416,"SetGrpObj_expand(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
647 {0,0,0x01,0x52,0x419,"SetGrpObj_rotate(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
648 {0,0,0x01,0x54,0x3e8,"GetGrpObj_xy"},
223b71206888 Initial import
thib
parents:
diff changeset
649 {0,0,0x01,0x54,0x44c,"GetGrpObj_wh"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
650 {0,0,0x01,0x55,0x3e8,"S/GetGrpObj_??? (Kanon)"},
0
223b71206888 Initial import
thib
parents:
diff changeset
651
223b71206888 Initial import
thib
parents:
diff changeset
652 {0,0,0x02,0x3d,0x0a, "ClearGrpObj(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
653 {0,0,0x02,0x3d,0x0b, "ClearGrpObj(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
654 {0,0,0x02,0x3e,0x0a, "ClearGrpObj(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
655 {0,0,0x02,0x3e,0x0a, "ClearGrpObj(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
656 {0,0,0x02,0x3c,0x01, "??? grp (CLANNAD)(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
657 {0,0,0x02,0x47,0x3e8,"SetGrpObj_Fname(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
658 {0,0,0x02,0x47,0x3eb,"SetGrpObj_GANname(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
659 {0,0,0x02,0x47,0x4b0,"SetGrpObj_Text(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
660 {0,0,0x02,0x48,0x3e8,"SetGrpObj_ForeGrp?(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
661 {0,0,0x02,0x49,0, "StopAnimation(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
662 {0,0,0x02,0x49,3, "QueryExecAnimation(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
663 {0,0,0x02,0x49,0x7d3,"SetGrpObj_GAN?(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
664 {0,0,0x02,0x49,0xbb9,"StartAnimation(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
665 {0,0,0x02,0x49,0xbbb,"StartAnimation(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
666 {0,0,0x02,0x49,0xbbd,"StartAnimation(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
667 {0,0,0x02,0x51,0x3e8,"SetGrpObj_xy(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
668 {0,0,0x02,0x51,0x3ea,"SetGrpObj_y(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
669 {0,0,0x02,0x51,0x3eb,"SetGrpObj_alpha(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
670 {0,0,0x02,0x51,0x3ec,"SetGrpObj_visible(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
671 {0,0,0x02,0x51,0x3ee,"SetGrpObj_xy?(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
672 {0,0,0x02,0x51,0x3fd,"SetGrpObj_centering?(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
673 {0,0,0x02,0x51,0x401,"SetGrpObj_textsize(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
674 {0,0,0x02,0x51,0x40a,"SetGrpObj_clipregion(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
675 {0,0,0x02,0x51,0x40f,"SetGrpObj_surfacenum(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
676 {0,0,0x02,0x51,0x416,"SetGrpObj_expand(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
677 {0,0,0x02,0x51,0x419,"SetGrpObj_rotate(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
678 {0,0,0x02,0x52,0x3e8,"SetGrpObj_xy(2)(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
679 {0,0,0x02,0x52,0x3ea,"SetGrpObj_y(2)(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
680 {0,0,0x02,0x52,0x3eb,"SetGrpObj_alpha(2)(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
681 {0,0,0x02,0x52,0x3ec,"SetGrpObj_visible(2)(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
682 {0,0,0x02,0x52,0x3ee,"SetGrpObj_xy?(2)(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
683 {0,0,0x02,0x52,0x3fd,"SetGrpObj_centering?(2)(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
684 {0,0,0x02,0x52,0x401,"SetGrpObj_textsize(2)(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
685 {0,0,0x02,0x52,0x40a,"SetGrpObj_clipregion(2)(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
686 {0,0,0x02,0x52,0x40f,"SetGrpObj_surfacenum(2)(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
687 {0,0,0x02,0x52,0x416,"SetGrpObj_expand(2)(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
688 {0,0,0x02,0x52,0x419,"SetGrpObj_rotate(2)(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
689 {0,0,0x02,0x54,0x3e8,"GetGrpObj_xy(2)"},
223b71206888 Initial import
thib
parents:
diff changeset
690 {0,0,0x02,0x54,0x44c,"GetGrpObj_wh(2)"},
70
281dcd7217df Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 65
diff changeset
691
0
223b71206888 Initial import
thib
parents:
diff changeset
692 {0,0,0,0,0,0}
223b71206888 Initial import
thib
parents:
diff changeset
693 };
29
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
694 map<int, CmdDescrItem*> CmdD::cmd_descr;
d229cce98f50 * no more (or, at least, less) duplicate code between scn2kdump and the rest
thib
parents: 27
diff changeset
695 const char* CmdD::CmdDescr(int cmd1, int cmd2, int cmd3, int cmd4) {
0
223b71206888 Initial import
thib
parents:
diff changeset
696 if (cmd_descr.empty()) {
223b71206888 Initial import
thib
parents:
diff changeset
697 int i;
223b71206888 Initial import
thib
parents:
diff changeset
698 for (i=0; cmd_descr_orig[i].cmd_descr != 0; i++) {
223b71206888 Initial import
thib
parents:
diff changeset
699 CmdDescrItem& cur = cmd_descr_orig[i];
223b71206888 Initial import
thib
parents:
diff changeset
700 int item_num = cur.cmd1*1000000+cur.cmd2*10000+cur.cmd3;
223b71206888 Initial import
thib
parents:
diff changeset
701 map<int,CmdDescrItem*>::iterator it = cmd_descr.find(item_num);
223b71206888 Initial import
thib
parents:
diff changeset
702 if (it == cmd_descr.end()) cmd_descr[item_num] = &cur;
223b71206888 Initial import
thib
parents:
diff changeset
703 else {
223b71206888 Initial import
thib
parents:
diff changeset
704 cur.next = it->second;
223b71206888 Initial import
thib
parents:
diff changeset
705 it->second = &cur;
223b71206888 Initial import
thib
parents:
diff changeset
706 }
223b71206888 Initial import
thib
parents:
diff changeset
707 }
223b71206888 Initial import
thib
parents:
diff changeset
708 }
223b71206888 Initial import
thib
parents:
diff changeset
709 int item_num = cmd1*1000000+cmd2*10000+cmd3;
223b71206888 Initial import
thib
parents:
diff changeset
710 map<int,CmdDescrItem*>::iterator it = cmd_descr.find(item_num);
223b71206888 Initial import
thib
parents:
diff changeset
711 if (it == cmd_descr.end()) return "No descr (unsupported)";
223b71206888 Initial import
thib
parents:
diff changeset
712 CmdDescrItem* cur = it->second;
223b71206888 Initial import
thib
parents:
diff changeset
713 do {
223b71206888 Initial import
thib
parents:
diff changeset
714 if (cur->cmd1 == cmd1 && cur->cmd2 == cmd2 && cur->cmd3 == cmd3) {
223b71206888 Initial import
thib
parents:
diff changeset
715 return cur->cmd_descr;
223b71206888 Initial import
thib
parents:
diff changeset
716 }
223b71206888 Initial import
thib
parents:
diff changeset
717 cur = cur->next;
223b71206888 Initial import
thib
parents:
diff changeset
718 } while(cur != 0);
223b71206888 Initial import
thib
parents:
diff changeset
719 return "No descr (unsupported)";
223b71206888 Initial import
thib
parents:
diff changeset
720 }