| 944 | } |
| 945 | |
| 946 | void 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 |
no test coverage detected