MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / InitGameEditSystems

Function InitGameEditSystems

editor/gameeditor.cpp:946–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

944}
945
946void InitGameEditSystems() {
947 // UnLoad the pilot and fill in the default
948 char p_fname[_MAX_FNAME];
949
950 Current_pilot.get_filename(p_fname);
951 if (p_fname[0] != '\0')
952 strcpy(Default_pilot, p_fname);
953 else
954 strcpy(Default_pilot, " ");
955
956 // reset ship permissions
957 PlayerResetShipPermissions(-1, true);
958
959 CloseControls();
960 ddio_KeyFlush();
961 ddio_MouseMode(MOUSE_STANDARD_MODE);
962
963 // Sound initialization for editor
964 InitD3Music(FindArg("-nomusic") ? false : true);
965 Sound_system.InitSoundLib(Descent, Sound_mixer, Sound_quality, false);
966
967 NewUIClose();
968 ui_Close();
969
970 SetDebugBreakHandlers(NULL, NULL);
971}
972
973// THESE FUNCTIONS DEAL WITH INTERFACING EDITOR AND GAME 3D system
974

Callers 1

GameToEditorFunction · 0.85

Calls 11

CloseControlsFunction · 0.85
ddio_KeyFlushFunction · 0.85
ddio_MouseModeFunction · 0.85
InitD3MusicFunction · 0.85
NewUICloseFunction · 0.85
ui_CloseFunction · 0.85
SetDebugBreakHandlersFunction · 0.85
get_filenameMethod · 0.80
FindArgFunction · 0.50
InitSoundLibMethod · 0.45

Tested by

no test coverage detected