From 821f77b5bb2e7d95e7446e656b6d87aed8355f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=9A=93?= Date: Tue, 11 Feb 2025 01:16:22 -0500 Subject: [PATCH] Add default initializer to `Color`, `Tone` and `Rect` in libretro builds --- binding-sandbox/etc-binding.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/binding-sandbox/etc-binding.h b/binding-sandbox/etc-binding.h index 0e529326..1ae364b4 100644 --- a/binding-sandbox/etc-binding.h +++ b/binding-sandbox/etc-binding.h @@ -33,7 +33,7 @@ namespace mkxp_sandbox { SANDBOX_COROUTINE(etc_binding_init, SANDBOX_COROUTINE(color_binding_init, - SANDBOX_DEF_ALLOC(color_type) + SANDBOX_DEF_ALLOC_WITH_INIT(color_type, new Color) SANDBOX_DEF_DFREE(Color) SANDBOX_DEF_LOAD(Color) @@ -209,7 +209,7 @@ namespace mkxp_sandbox { ) SANDBOX_COROUTINE(tone_binding_init, - SANDBOX_DEF_ALLOC(tone_type) + SANDBOX_DEF_ALLOC_WITH_INIT(tone_type, new Tone) SANDBOX_DEF_DFREE(Tone) SANDBOX_DEF_LOAD(Tone) @@ -385,7 +385,7 @@ namespace mkxp_sandbox { ) SANDBOX_COROUTINE(rect_binding_init, - SANDBOX_DEF_ALLOC(rect_type) + SANDBOX_DEF_ALLOC_WITH_INIT(rect_type, new Rect) SANDBOX_DEF_DFREE(Rect) SANDBOX_DEF_LOAD(Rect)