MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / getstring

Function getstring

src/inputdevice.cpp:1173–1200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1171 return v;
1172}
1173static TCHAR *getstring (const TCHAR **pp)
1174{
1175 int i;
1176 static TCHAR str[CONFIG_BLEN];
1177 const TCHAR *p = *pp;
1178 bool quoteds = false;
1179 bool quotedd = false;
1180
1181 if (*p == 0)
1182 return 0;
1183 i = 0;
1184 while (*p != 0 && i < 1000 - 1) {
1185 if (*p == '\"')
1186 quotedd = quotedd ? false : true;
1187 if (*p == '\'')
1188 quoteds = quoteds ? false : true;
1189 if (!quotedd && !quoteds) {
1190 if (*p == '.' || *p == ',')
1191 break;
1192 }
1193 str[i++] = *p++;
1194 }
1195 if (*p == '.' || *p == ',')
1196 p++;
1197 str[i] = 0;
1198 *pp = p;
1199 return str;
1200}
1201
1202static void reset_inputdevice_settings (struct uae_input_device *uid)
1203{

Callers 3

read_inputdevice_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected