MCPcopy Create free account
hub / github.com/ddnet/ddnet / SaveConfigurationToFile

Method SaveConfigurationToFile

src/game/client/components/touch_controls.cpp:856–868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854}
855
856bool CTouchControls::SaveConfigurationToFile()
857{
858 IOHANDLE File = Storage()->OpenFile(CONFIGURATION_FILENAME, IOFLAG_WRITE, IStorage::TYPE_SAVE);
859 if(!File)
860 {
861 log_error("touch_controls", "Failed to open '%s' for writing configuration", CONFIGURATION_FILENAME);
862 return false;
863 }
864
865 CJsonFileWriter Writer(File);
866 WriteConfiguration(&Writer);
867 return true;
868}
869
870void CTouchControls::SaveConfigurationToClipboard()
871{

Callers 1

Calls 2

StorageFunction · 0.85
OpenFileMethod · 0.45

Tested by

no test coverage detected