From 302b2240e92ed86a21ea691db4d00dd5724efdf5 Mon Sep 17 00:00:00 2001 From: Gabor de Mooij Date: Wed, 29 Jan 2025 16:02:06 +0100 Subject: [PATCH] Add dynamic loading of code through Media Plugin using Datapaks language specific (besides English for DataStarters). --- plugins/media/media.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/media/media.c b/plugins/media/media.c index 6545527f..8ca90e5a 100644 --- a/plugins/media/media.c +++ b/plugins/media/media.c @@ -4490,6 +4490,9 @@ void begin(){ ctr_internal_create_func(mediaObject, ctr_build_string_from_cstring( CTR_DICT_END ), &ctr_media_end ); ctr_internal_create_func(mediaObject, ctr_build_string_from_cstring( "sys:" ), &ctr_media_system ); ctr_internal_create_func(mediaObject, ctr_build_string_from_cstring( "use:" ), &ctr_media_include ); + if (strcmp(CTR_DICT_USE_SET,"use:")!==0) { + ctr_internal_create_func(mediaObject, ctr_build_string_from_cstring( CTR_DICT_USE_SET ), &ctr_media_include ); + } ctr_internal_create_func(mediaObject, ctr_build_string_from_cstring( "_datastart" ), &ctr_media_datastart ); ctr_internal_create_func(mediaObject, ctr_build_string_from_cstring( CTR_DICT_DIALOG_SET ), &ctr_media_dialog ); ctr_internal_create_func(mediaObject, ctr_build_string_from_cstring( "website:" ), &ctr_media_website );