34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
strcat_s(cl.cref, sf);
}
else
{
strcpy_s(cl.cref, sf);
};
puts(cl.cref);
#ifndef WIN32
fflush(stdout);
#endif
};
void conoutf(const char *s, ...)
{
sprintf_sdv(sf, s);
|
|
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
strcat_s(cl.cref, sf);
}
else
{
strcpy_s(cl.cref, sf);
};
puts(cl.cref);
#ifndef _WIN32
fflush(stdout);
#endif
};
void conoutf(const char *s, ...)
{
sprintf_sdv(sf, s);
|
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
};
void mapmsg(char *s) { strn0cpy(hdr.maptitle, s, 128); };
COMMAND(saycommand, ARG_VARI);
COMMAND(mapmsg, ARG_1STR);
#ifndef WIN32
#include <X11/Xlib.h>
#include <SDL_syswm.h>
#endif
void pasteconsole()
{
#ifdef WIN32
if(!IsClipboardFormatAvailable(CF_TEXT)) return;
if(!OpenClipboard(NULL)) return;
char *cb = (char *)GlobalLock(GetClipboardData(CF_TEXT));
strcat_s(commandbuf, cb);
GlobalUnlock(cb);
CloseClipboard();
#else
|
|
|
|
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
};
void mapmsg(char *s) { strn0cpy(hdr.maptitle, s, 128); };
COMMAND(saycommand, ARG_VARI);
COMMAND(mapmsg, ARG_1STR);
#ifndef _WIN32
#include <X11/Xlib.h>
#include <SDL_syswm.h>
#endif
void pasteconsole()
{
#ifdef _WIN32
if(!IsClipboardFormatAvailable(CF_TEXT)) return;
if(!OpenClipboard(NULL)) return;
char *cb = (char *)GlobalLock(GetClipboardData(CF_TEXT));
strcat_s(commandbuf, cb);
GlobalUnlock(cb);
CloseClipboard();
#else
|