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
| 188 | // Called by Disk2InterfaceCard::EjectDisk() and HD_Unplug() |
| 189 | // Called by RepeatInitialization() when Harddisk Controller card is disabled |
| 190 | void 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 |
no test coverage detected