| 363 | } |
| 364 | |
| 365 | void CMacroManager::Save(const fs_path &path) |
| 366 | { |
| 367 | Wisp::CBinaryFileWriter writer; |
| 368 | writer.Open(path); |
| 369 | |
| 370 | writer.WriteUInt8(0); //version |
| 371 | |
| 372 | short count = GetItemsCount(); |
| 373 | |
| 374 | writer.WriteInt16LE(count); |
| 375 | writer.WriteBuffer(); |
| 376 | |
| 377 | QFOR(obj, m_Items, CMacro *) |
| 378 | obj->Save(writer); |
| 379 | |
| 380 | writer.WriteUInt32LE(0); //EOF |
| 381 | writer.WriteBuffer(); |
| 382 | |
| 383 | writer.Close(); |
| 384 | } |
| 385 | |
| 386 | CMacro *CMacroManager::FindMacro(Keycode key, bool alt, bool ctrl, bool shift) |
| 387 | { |
nothing calls this directly
no test coverage detected