MCPcopy Create free account
hub / github.com/crossuo/crossuo / Save

Method Save

src/Managers/MacroManager.cpp:365–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365void 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
386CMacro *CMacroManager::FindMacro(Keycode key, bool alt, bool ctrl, bool shift)
387{

Callers

nothing calls this directly

Calls 6

WriteUInt8Method · 0.80
WriteInt16LEMethod · 0.80
WriteBufferMethod · 0.80
WriteUInt32LEMethod · 0.80
OpenMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected