MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / SaveState

Method SaveState

Source/ModuleAction.cpp:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47bool ModuleAction::CComment::SaveState(const CMainFrame &MainFrm) {
48 auto &modfile = GET_MODULE();
49 oldComment_ = modfile.GetComment();
50 oldShow_ = modfile.ShowsCommentOnOpen();
51 return true; // no merge because the comment dialog is modal
52}
53
54void ModuleAction::CComment::Undo(CMainFrame &MainFrm) {
55 GET_MODULE().SetComment(oldComment_, oldShow_);

Callers

nothing calls this directly

Calls 10

GetCommentMethod · 0.80
ShowsCommentOnOpenMethod · 0.80
GetModuleNameMethod · 0.80
GetModuleArtistMethod · 0.80
GetModuleCopyrightMethod · 0.80
HasInstrumentMethod · 0.80
GetInstrumentManagerMethod · 0.45
GetInstrumentMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected