mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 14:05:47 -04:00
CPU/Recompiler: Implement fastmem
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
Log_SetChannel(Common::PageFaultHandler);
|
||||
|
||||
#if defined(WIN32)
|
||||
|
@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
#include "types.h"
|
||||
#include <functional>
|
||||
|
||||
namespace Common::PageFaultHandler {
|
||||
enum class HandlerResult
|
||||
@ -9,7 +8,7 @@ enum class HandlerResult
|
||||
ExecuteNextHandler,
|
||||
};
|
||||
|
||||
using Callback = std::function<HandlerResult(void* exception_pc, void* fault_address, bool is_write)>;
|
||||
using Callback = HandlerResult(*)(void* exception_pc, void* fault_address, bool is_write);
|
||||
using Handle = void*;
|
||||
|
||||
bool InstallHandler(void* owner, Callback callback);
|
||||
|
Reference in New Issue
Block a user