MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / CmFileSave

Method CmFileSave

roomedit/source/editcli.cpp:3850–3866  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////// TEditorClient ------------- Save the current editing level

Source from the content-addressed store, hash-verified

3848// Save the current editing level
3849//
3850void TEditorClient::CmFileSave ()
3851{
3852 // Ignore if "insert object" mode
3853 if ( InsertingObject )
3854 return;
3855
3856 if ((0 == RoomID) && NumThings > 2)
3857 {
3858 MessageBox("Please set Room ID from File menu before saving","Error Saving",MB_OK);
3859 return;
3860 }
3861 SET_HELP_CONTEXT(EDITOR_Save);
3862 SaveLevelData(LevelName);
3863
3864 DrawStatusBar();
3865 RESTORE_HELP_CONTEXT();
3866}
3867
3868
3869/////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

SaveLevelDataFunction · 0.85

Tested by

no test coverage detected