1 /* Copyright (C) 1996-1997 Aleksey Volynskov
2 * Copyright (C) 2011 Rambo
3 * Copyright (C) 2020 SovietPony
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License ONLY.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
19 #include <stdio.h>
20 #include <string.h>
21 #include <stdlib.h>
22 #include <assert.h>
51 }
54 }
57 }
58 }
63 }
70 }
74 }
80 }
82 }
86 }
92 }
94 }
98 }
100 /*
101 void F_nextmus (char *s) {
102 int i = F_findres(s);
103 if (i <= m_start || i >= m_end) {
104 i = m_start;
105 }
106 for (++i; ; ++i) {
107 if (i >= m_end) {
108 i = m_start + 1;
109 }
110 WADRES_getname(i, s);
111 if (cp866_strcasecmp(s, "MENU") == 0 ||
112 cp866_strcasecmp(s, "INTERMUS") == 0 ||
113 cp866_strcasecmp(s, "\x8a\x8e\x8d\x85\x96\x0") == 0) {
114 continue;
115 }
116 if (cp866_strncasecmp(s, "DMI", 3) != 0) {
117 break;
118 }
119 }
120 }
122 void F_randmus (char *s) {
123 int i;
124 int n = myrand(10);
125 for (i = 0; i < n; i++) {
126 F_nextmus(s);
127 }
128 }
129 */
139 }
142 }
143 }
151 }
154 KOS32_Stream rd;
161 }
166 }
167 }
168 }
171 KOS32_Stream rd;
176 }
177 }
180 KOS32_Stream wr;
185 }
186 }