Subversion Repositories Kolibri OS

Rev

Rev 7037 | Rev 7227 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7037 Rev 7050
Line 156... Line 156...
156
	memmov(#line_text, cdata.content, length);
156
	memmov(#line_text, cdata.content, length);
157
	replace_char(#line_text, 0, 31, length); // 31 is a dot
157
	replace_char(#line_text, 0, 31, length); // 31 is a dot
158
	WriteText(select_list.x+236, yyy+select_list.text_y, select_list.font_type, text_color, #line_text);
158
	WriteText(select_list.x+236, yyy+select_list.text_y, select_list.font_type, text_color, #line_text);
159
}
159
}
Line 160... Line -...
160
 
-
 
161
 
-
 
162
 
-
 
163
replace_char(dword in_str, char from_char, to_char, int length) {
-
 
164
	int i;
-
 
165
	for (i=0; i
-
 
166
		if (ESBYTE[in_str+i] == from_char) ESBYTE[in_str+i] = to_char;
-
 
167
	}
-
 
168
	ESBYTE[in_str+length]=0;
-
 
169
}
-
 
170
 
160
 
171
int SaveSlotContents(dword size, off) {
161
int SaveSlotContents(dword size, off) {
172
	EAX = WriteFile(size, off, DEFAULT_SAVE_PATH);
162
	EAX = WriteFile(size, off, DEFAULT_SAVE_PATH);
173
	if (!EAX)
163
	if (!EAX)
174
	{
164
	{