summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/frontend/graphics_context.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/core/frontend/graphics_context.h b/src/core/frontend/graphics_context.h
index 064b19a96..7554c1583 100644
--- a/src/core/frontend/graphics_context.h
+++ b/src/core/frontend/graphics_context.h
@@ -3,8 +3,9 @@
3 3
4#pragma once 4#pragma once
5 5
6#include <optional> 6#include <memory>
7#include <string> 7
8#include "common/dynamic_library.h"
8 9
9namespace Core::Frontend { 10namespace Core::Frontend {
10 11
@@ -24,16 +25,8 @@ public:
24 /// Releases (dunno if this is the "right" word) the context from the caller thread 25 /// Releases (dunno if this is the "right" word) the context from the caller thread
25 virtual void DoneCurrent() {} 26 virtual void DoneCurrent() {}
26 27
27 /// Parameters used to configure custom drivers (used by Android only) 28 /// Gets the GPU driver library (used by Android only)
28 struct CustomDriverParameters { 29 virtual std::shared_ptr<Common::DynamicLibrary> GetDriverLibrary() {
29 std::string hook_lib_dir;
30 std::string custom_driver_dir;
31 std::string custom_driver_name;
32 std::string file_redirect_dir;
33 };
34
35 /// Gets custom driver parameters configured by the frontend (used by Android only)
36 virtual std::optional<CustomDriverParameters> GetCustomDriverParameters() {
37 return {}; 30 return {};
38 } 31 }
39 32