mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-02 12:25:39 +00:00
19 lines
447 B
C++
19 lines
447 B
C++
// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
#pragma once
|
|
#include "common/types.h"
|
|
|
|
class Error;
|
|
|
|
namespace PageFaultHandler {
|
|
enum class HandlerResult
|
|
{
|
|
ContinueExecution,
|
|
ExecuteNextHandler,
|
|
};
|
|
|
|
HandlerResult HandlePageFault(void* exception_pc, void* fault_address, bool is_write);
|
|
bool Install(Error* error = nullptr);
|
|
} // namespace PageFaultHandler
|