From 096a945a19c5f50d8fcac2f08aabe5b1ef3aa7da Mon Sep 17 00:00:00 2001 From: WillowSauceR Date: Fri, 1 Sep 2023 23:46:28 +0800 Subject: [PATCH] fix: fix dlsym API --- src/video_player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_player.c b/src/video_player.c index 437b5e9..f850e17 100644 --- a/src/video_player.c +++ b/src/video_player.c @@ -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,