Skip to content

Commit

Permalink
fix: fix dlsym API
Browse files Browse the repository at this point in the history
  • Loading branch information
WillowSauceR authored and WillowSauceR committed Sep 1, 2023
1 parent 6de9453 commit 096a945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video_player.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void play_video(struct video_queue *video_queue_node, struct map_item_saved_data
struct rgb **pixels = get_png_pixels(filepath);
static void *set_pixel_func = NULL;
if (!set_pixel_func)
set_pixel_func = dlsym("?setPixel@MapItemSavedData@@QEAA_NIII@Z");
set_pixel_func = dlsym_auto("?setPixel@MapItemSavedData@@QEAA_NIII@Z");
for (int y = 0; y < 128; ++y) {
for (int x = 0; x < 128; ++x) {
VIRTUAL_CALL(set_pixel_func,
Expand Down

0 comments on commit 096a945

Please sign in to comment.