Skip to content

Commit

Permalink
Change retro_hw_get_proc_address_t's return type to UNCHECKED
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Apr 8, 2024
1 parent 93aac77 commit 09ec00e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libretro/api/video/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from ctypes import Structure, c_bool, c_uint, CFUNCTYPE, c_char_p, cast, c_void_p, c_int

from libretro.api.proc import retro_proc_address_t
from libretro.api._utils import FieldsFromTypeHints, c_uintptr
from libretro.api._utils import FieldsFromTypeHints, c_uintptr, UNCHECKED

RETRO_HW_FRAME_BUFFER_VALID = cast((-1), c_void_p)

Expand Down Expand Up @@ -43,7 +43,7 @@ def __init__(self, value):

retro_hw_context_reset_t = CFUNCTYPE(None)
retro_hw_get_current_framebuffer_t = CFUNCTYPE(c_uintptr)
retro_hw_get_proc_address_t = CFUNCTYPE(retro_proc_address_t, c_char_p)
retro_hw_get_proc_address_t = CFUNCTYPE(UNCHECKED(retro_proc_address_t), c_char_p)


@dataclass(init=False)
Expand Down

0 comments on commit 09ec00e

Please sign in to comment.