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

Method HandleMapDrop

src/game/editor/editor.cpp:7475–7489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7473}
7474
7475bool CEditor::HandleMapDrop(const char *pFilename, int StorageType)
7476{
7477 OnDialogClose();
7478 if(HasUnsavedData())
7479 {
7480 str_copy(m_aFilenamePendingLoad, pFilename);
7481 m_PopupEventType = CEditor::POPEVENT_LOADDROP;
7482 m_PopupEventActivated = true;
7483 return true;
7484 }
7485 else
7486 {
7487 return Load(pFilename, IStorage::TYPE_ALL_OR_ABSOLUTE);
7488 }
7489}
7490
7491bool CEditor::Load(const char *pFilename, int StorageType)
7492{

Callers 1

RunMethod · 0.80

Calls 2

HasUnsavedDataFunction · 0.85
str_copyFunction · 0.50

Tested by

no test coverage detected