Skip to content

Commit

Permalink
Add dynamic loading of code through Media Plugin using Datapaks langu…
Browse files Browse the repository at this point in the history
…age specific (besides English for DataStarters).
  • Loading branch information
gabordemooij committed Jan 29, 2025
1 parent 886f149 commit 302b224
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/media/media.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 302b224

Please sign in to comment.