-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWWCTAppend.1sc
96 lines (94 loc) · 2.98 KB
/
WWCTAppend.1sc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
//------------------------------------------------
//--- 010 Editor v9.0.2 Script File
//
// File:
// Authors:
// Version:
// Purpose:
// Category:
// History:
//------------------------------------------------
local int lastIndex;
local int stringPos;
local int strlength;
void WWCTAppend (string type, string filePath){
RunTemplate("WWCT.bt");
switch (type){
case "WWEV":
stringPos = EOWWEV + 4;
lastIndex = WWEVCount;
strlength = Strlen(filePath) + 5;
InsertBytes(EOWWEV, strlength);
WriteInt(EOWWEV, lastIndex);
WriteString(stringPos, filePath);
WWEVCount++;
break;
case "WWBK":
stringPos = EOWWBK + 4;
lastIndex = WWBKCount;
strlength = Strlen(filePath) + 5;
InsertBytes(EOWWBK, strlength);
WriteInt(EOWWBK, lastIndex);
WriteString(stringPos, filePath);
WWBKCount++;
break;
case "WWPK":
stringPos = EOWWPK + 4;
lastIndex = WWPKCount;
strlength = Strlen(filePath) + 5;
InsertBytes(EOWWPK, strlength);
WriteInt(EOWWPK, lastIndex);
WriteString(stringPos, filePath);
WWPKCount++;
break;
case "WWSW":
stringPos = EOWWSW + 4;
lastIndex = WWSWCount;
strlength = Strlen(filePath) + 5;
InsertBytes(EOWWSW, strlength);
WriteInt(EOWWSW, lastIndex);
WriteString(stringPos, filePath);
WWSWCount++;
break;
case "WWST":
stringPos = EOWWST + 4;
lastIndex = WWSTCount;
strlength = Strlen(filePath) + 5;
InsertBytes(EOWWST, strlength);
WriteInt(EOWWST, lastIndex);
WriteString(stringPos, filePath);
WWSTCount++;
break;
case "WWGP":
stringPos = EOWWGP + 4;
lastIndex = WWGPCount;
strlength = Strlen(filePath) + 5;
InsertBytes(EOWWGP, strlength);
WriteInt(EOWWGP, lastIndex);
WriteString(stringPos, filePath);
WWGPCount++;
break;
case "WWENF":
stringPos = EOWWENF + 4;
lastIndex = WWENFCount;
strlength = Strlen(filePath) + 5;
InsertBytes(EOWWENF, strlength);
WriteInt(EOWWENF, lastIndex);
WriteString(stringPos, filePath);
WWENFCount++;
break;
case "Unkn3":
stringPos = EOUnkn3 + 4;
lastIndex = Unkn3Count;
strlength = Strlen(filePath) + 5;
InsertBytes(EOUnkn3, strlength);
WriteInt(EOUnkn3, lastIndex);
WriteString(stringPos, filePath);
Unkn3Count++;
break;
default:
Printf("Invalid type.");
};
RunTemplate("WWCT.bt");
}
WWCTAppend("WWBK", "sound\\wwise\\Windows\\Test_WW");