bitmap_hook_lifecycle.h 561 B

123456789101112131415161718
  1. #pragma once
  2. namespace sunrise::client::hooks::bitmap {
  3. /**
  4. * Attaches the bitmap crash guards. These are required fixes, so they carry no settings switch.
  5. * Each guard reports its own outcome, so a single miss never disables the others.
  6. * @return True when every guard attached.
  7. */
  8. [[nodiscard]] bool install() noexcept;
  9. /** Detaches every bitmap crash guard. */
  10. void uninstall() noexcept;
  11. /** @return True while at least one bitmap crash guard is attached. */
  12. [[nodiscard]] bool is_installed() noexcept;
  13. } // namespace sunrise::client::hooks::bitmap