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

Method RemoveFile

src/engine/shared/storage.cpp:806–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804 }
805
806 bool RemoveFile(const char *pFilename, int Type) override
807 {
808 dbg_assert(Type == TYPE_ABSOLUTE || (Type >= TYPE_SAVE && Type < m_NumPaths), "Type invalid");
809
810 char aBuffer[IO_MAX_PATH_LENGTH];
811 GetPath(Type, pFilename, aBuffer, sizeof(aBuffer));
812
813 return fs_remove(aBuffer) == 0;
814 }
815
816 bool RemoveFolder(const char *pFilename, int Type) override
817 {

Callers 15

StopRecordMethod · 0.80
CheckDemoMethod · 0.80
RemoveSkinMethod · 0.80
DeleteGhostItemMethod · 0.80
RenderMethod · 0.80
RunMethod · 0.80
DeleteTempfileMethod · 0.80
ResetMapDownloadMethod · 0.80
FinishMapDownloadMethod · 0.80
SaveReplayMethod · 0.80
RunMethod · 0.80

Calls 1

fs_removeFunction · 0.85

Tested by 1

TESTFunction · 0.64