duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

page_fault_handler.h (447B)


      1 // SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
      2 // SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
      3 
      4 #pragma once
      5 #include "common/types.h"
      6 
      7 class Error;
      8 
      9 namespace PageFaultHandler {
     10 enum class HandlerResult
     11 {
     12   ContinueExecution,
     13   ExecuteNextHandler,
     14 };
     15 
     16 HandlerResult HandlePageFault(void* exception_pc, void* fault_address, bool is_write);
     17 bool Install(Error* error = nullptr);
     18 } // namespace PageFaultHandler