| 1222 | } |
| 1223 | |
| 1224 | static void reset_inputdevice_config_temp(void) |
| 1225 | { |
| 1226 | for (int i = 0; i < MAX_INPUT_DEVICES; i++) { |
| 1227 | for (int j = 0; j < IDTYPE_MAX; j++) { |
| 1228 | temp_uid_index[i][j] = -1; |
| 1229 | } |
| 1230 | } |
| 1231 | for (int i = 0; i < IDTYPE_MAX; i++) { |
| 1232 | temp_uid_cnt[i] = 0; |
| 1233 | } |
| 1234 | xfree(temp_uid.configname); |
| 1235 | xfree(temp_uid.name); |
| 1236 | memset(&temp_uid, 0, sizeof temp_uid); |
| 1237 | for (int i = 0; i < MAX_INPUT_DEVICES; i++) { |
| 1238 | temp_uid.matcheddevices[i] = -1; |
| 1239 | temp_uid.nonmatcheddevices[i] = -1; |
| 1240 | } |
| 1241 | temp_uid.idnum = -1; |
| 1242 | temp_uid.lastdevtype = -1; |
| 1243 | } |
| 1244 | |
| 1245 | void reset_inputdevice_config (struct uae_prefs *prefs, bool reset) |
| 1246 | { |
no outgoing calls
no test coverage detected