MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / Snapshot_UpdatePath

Function Snapshot_UpdatePath

source/SaveState.cpp:190–203  ·  view source on GitHub ↗

Called by Disk2InterfaceCard::InsertDisk() and HD_Insert() after a successful insertion Called by Disk2InterfaceCard::EjectDisk() and HD_Unplug() Called by RepeatInitialization() when Harddisk Controller card is disabled

Source from the content-addressed store, hash-verified

188// Called by Disk2InterfaceCard::EjectDisk() and HD_Unplug()
189// Called by RepeatInitialization() when Harddisk Controller card is disabled
190void Snapshot_UpdatePath(void)
191{
192 std::string defaultFilename;
193 std::string defaultPath;
194 Snapshot_GetDefaultFilenameAndPath(defaultFilename, defaultPath);
195
196 if (defaultPath.empty() || g_strSaveStatePath == defaultPath)
197 return;
198
199 if (!defaultFilename.empty())
200 defaultFilename += ".aws.yaml";
201
202 Snapshot_SetFilename(defaultFilename, defaultPath);
203}
204
205//-----------------------------------------------------------------------------
206

Callers 5

EjectDiskMethod · 0.85
InsertDiskMethod · 0.85
InsertMethod · 0.85
UnplugMethod · 0.85
RepeatInitializationFunction · 0.85

Calls 2

Snapshot_SetFilenameFunction · 0.85

Tested by

no test coverage detected