| 833 | } |
| 834 | |
| 835 | bool CTouchControls::LoadConfigurationFromFile(int StorageType) |
| 836 | { |
| 837 | void *pFileData; |
| 838 | unsigned FileLength; |
| 839 | if(!Storage()->ReadFile(CONFIGURATION_FILENAME, StorageType, &pFileData, &FileLength)) |
| 840 | { |
| 841 | log_error("touch_controls", "Failed to read configuration from '%s'", CONFIGURATION_FILENAME); |
| 842 | return false; |
| 843 | } |
| 844 | |
| 845 | const bool Result = ParseConfiguration(pFileData, FileLength); |
| 846 | free(pFileData); |
| 847 | return Result; |
| 848 | } |
| 849 | |
| 850 | bool CTouchControls::LoadConfigurationFromClipboard() |
| 851 | { |
no test coverage detected