MCPcopy Create free account
hub / github.com/TASEmulators/fceux / exitTASEditor

Function exitTASEditor

src/drivers/win/taseditor.cpp:170–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170bool exitTASEditor()
171{
172 if (!askToSaveProject()) return false;
173
174 // destroy window
175 taseditorWindow.exit();
176 disableGeneralKeyboardInput();
177 // release memory
178 editor.free();
179 pianoRoll.free();
180 markersManager.free();
181 greenzone.free();
182 bookmarks.free();
183 branches.free();
184 popupDisplay.free();
185 history.free();
186 playback.stopSeeking();
187 selection.free();
188
189 // restore "eoptions"
190 eoptions = saved_eoptions;
191 // restore autosaves
192 EnableAutosave = saved_EnableAutosave;
193 DoPriority();
194 // restore frame_display
195 frame_display = saved_frame_display;
196 UpdateCheckedMenuItems();
197 // switch off TAS Editor mode
198 movieMode = MOVIEMODE_INACTIVE;
199 FCEU_DispMessage("TAS Editor disengaged", 0);
200 FCEUMOV_CreateCleanMovie();
201 return true;
202}
203
204// everyframe function
205void updateTASEditor()

Callers 2

DoFCEUExitFunction · 0.85
TASEditorWndProcFunction · 0.85

Calls 9

askToSaveProjectFunction · 0.85
DoPriorityFunction · 0.85
UpdateCheckedMenuItemsFunction · 0.85
FCEU_DispMessageFunction · 0.85
FCEUMOV_CreateCleanMovieFunction · 0.85
exitMethod · 0.80
freeMethod · 0.45
stopSeekingMethod · 0.45

Tested by

no test coverage detected