From 2b40b797ebe53416935a3055f536622a476df79d Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Mon, 15 Jan 2024 16:40:57 -0800 Subject: [PATCH] Sync tp_magic_example.c (filepaths compatible with Android) --- docs/en/html/tp_magic_example.c | 6 +++--- docs/en/tp_magic_example.c | 6 +++--- docs/es_ES.UTF-8/html/tp_magic_example.c | 6 +++--- docs/es_ES.UTF-8/tp_magic_example.c | 6 +++--- docs/fr_FR.UTF-8/html/tp_magic_example.c | 6 +++--- docs/fr_FR.UTF-8/tp_magic_example.c | 6 +++--- docs/gl_ES.UTF-8/html/tp_magic_example.c | 6 +++--- docs/gl_ES.UTF-8/tp_magic_example.c | 6 +++--- docs/is_IS.UTF-8/html/tp_magic_example.c | 6 +++--- docs/is_IS.UTF-8/tp_magic_example.c | 6 +++--- docs/ja_JP.UTF-8/html/tp_magic_example.c | 6 +++--- docs/ja_JP.UTF-8/tp_magic_example.c | 6 +++--- 12 files changed, 36 insertions(+), 36 deletions(-) diff --git a/docs/en/html/tp_magic_example.c b/docs/en/html/tp_magic_example.c index 7f4f97690..e0cc02b12 100644 --- a/docs/en/html/tp_magic_example.c +++ b/docs/en/html/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - December 29, 2023 + January 15, 2024 */ @@ -159,7 +159,7 @@ int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_leve "tp-magic-config --dataprefix" command would have told us when we installed our plugin and its data.) */ - snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory, + snprintf(filename, sizeof(filename), "%ssounds/magic/%s", api->data_directory, sound_filenames[i]); printf("Trying to load %s sound file\n", filename); @@ -209,7 +209,7 @@ SDL_Surface *example_get_icon(magic_api * api, int which) We use "which" (which of our tools Tux Paint is asking about) as an index into the array. */ - snprintf(filename, sizeof(filename), "%s/images/magic/%s", + snprintf(filename, sizeof(filename), "%simages/magic/%s", api->data_directory, icon_filenames[which]); printf("Trying to load %s icon\n", filename); diff --git a/docs/en/tp_magic_example.c b/docs/en/tp_magic_example.c index 7f4f97690..e0cc02b12 100644 --- a/docs/en/tp_magic_example.c +++ b/docs/en/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - December 29, 2023 + January 15, 2024 */ @@ -159,7 +159,7 @@ int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_leve "tp-magic-config --dataprefix" command would have told us when we installed our plugin and its data.) */ - snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory, + snprintf(filename, sizeof(filename), "%ssounds/magic/%s", api->data_directory, sound_filenames[i]); printf("Trying to load %s sound file\n", filename); @@ -209,7 +209,7 @@ SDL_Surface *example_get_icon(magic_api * api, int which) We use "which" (which of our tools Tux Paint is asking about) as an index into the array. */ - snprintf(filename, sizeof(filename), "%s/images/magic/%s", + snprintf(filename, sizeof(filename), "%simages/magic/%s", api->data_directory, icon_filenames[which]); printf("Trying to load %s icon\n", filename); diff --git a/docs/es_ES.UTF-8/html/tp_magic_example.c b/docs/es_ES.UTF-8/html/tp_magic_example.c index 585983e23..c07a047fa 100644 --- a/docs/es_ES.UTF-8/html/tp_magic_example.c +++ b/docs/es_ES.UTF-8/html/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - diciembre 29, 2023 + enero 15, 2024 */ @@ -159,7 +159,7 @@ int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_leve "tp-magic-config --dataprefix" command would have told us when we installed our plugin and its data.) */ - snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory, + snprintf(filename, sizeof(filename), "%ssounds/magic/%s", api->data_directory, sound_filenames[i]); printf("Trying to load %s sound file\n", filename); @@ -209,7 +209,7 @@ SDL_Surface *example_get_icon(magic_api * api, int which) We use "which" (which of our tools Tux Paint is asking about) as an index into the array. */ - snprintf(filename, sizeof(filename), "%s/images/magic/%s", + snprintf(filename, sizeof(filename), "%simages/magic/%s", api->data_directory, icon_filenames[which]); printf("Trying to load %s icon\n", filename); diff --git a/docs/es_ES.UTF-8/tp_magic_example.c b/docs/es_ES.UTF-8/tp_magic_example.c index 585983e23..c07a047fa 100644 --- a/docs/es_ES.UTF-8/tp_magic_example.c +++ b/docs/es_ES.UTF-8/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - diciembre 29, 2023 + enero 15, 2024 */ @@ -159,7 +159,7 @@ int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_leve "tp-magic-config --dataprefix" command would have told us when we installed our plugin and its data.) */ - snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory, + snprintf(filename, sizeof(filename), "%ssounds/magic/%s", api->data_directory, sound_filenames[i]); printf("Trying to load %s sound file\n", filename); @@ -209,7 +209,7 @@ SDL_Surface *example_get_icon(magic_api * api, int which) We use "which" (which of our tools Tux Paint is asking about) as an index into the array. */ - snprintf(filename, sizeof(filename), "%s/images/magic/%s", + snprintf(filename, sizeof(filename), "%simages/magic/%s", api->data_directory, icon_filenames[which]); printf("Trying to load %s icon\n", filename); diff --git a/docs/fr_FR.UTF-8/html/tp_magic_example.c b/docs/fr_FR.UTF-8/html/tp_magic_example.c index 5a555b5e0..f8dd6a56b 100644 --- a/docs/fr_FR.UTF-8/html/tp_magic_example.c +++ b/docs/fr_FR.UTF-8/html/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - décembre 29, 2023 + janvier 15, 2024 */ @@ -159,7 +159,7 @@ int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_leve "tp-magic-config --dataprefix" command would have told us when we installed our plugin and its data.) */ - snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory, + snprintf(filename, sizeof(filename), "%ssounds/magic/%s", api->data_directory, sound_filenames[i]); printf("Trying to load %s sound file\n", filename); @@ -209,7 +209,7 @@ SDL_Surface *example_get_icon(magic_api * api, int which) We use "which" (which of our tools Tux Paint is asking about) as an index into the array. */ - snprintf(filename, sizeof(filename), "%s/images/magic/%s", + snprintf(filename, sizeof(filename), "%simages/magic/%s", api->data_directory, icon_filenames[which]); printf("Trying to load %s icon\n", filename); diff --git a/docs/fr_FR.UTF-8/tp_magic_example.c b/docs/fr_FR.UTF-8/tp_magic_example.c index 5a555b5e0..f8dd6a56b 100644 --- a/docs/fr_FR.UTF-8/tp_magic_example.c +++ b/docs/fr_FR.UTF-8/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - décembre 29, 2023 + janvier 15, 2024 */ @@ -159,7 +159,7 @@ int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_leve "tp-magic-config --dataprefix" command would have told us when we installed our plugin and its data.) */ - snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory, + snprintf(filename, sizeof(filename), "%ssounds/magic/%s", api->data_directory, sound_filenames[i]); printf("Trying to load %s sound file\n", filename); @@ -209,7 +209,7 @@ SDL_Surface *example_get_icon(magic_api * api, int which) We use "which" (which of our tools Tux Paint is asking about) as an index into the array. */ - snprintf(filename, sizeof(filename), "%s/images/magic/%s", + snprintf(filename, sizeof(filename), "%simages/magic/%s", api->data_directory, icon_filenames[which]); printf("Trying to load %s icon\n", filename); diff --git a/docs/gl_ES.UTF-8/html/tp_magic_example.c b/docs/gl_ES.UTF-8/html/tp_magic_example.c index 85a33e903..25dffddbc 100644 --- a/docs/gl_ES.UTF-8/html/tp_magic_example.c +++ b/docs/gl_ES.UTF-8/html/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - Decembro 29, 2023 + Xaneiro 15, 2024 */ @@ -159,7 +159,7 @@ int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_leve "tp-magic-config --dataprefix" command would have told us when we installed our plugin and its data.) */ - snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory, + snprintf(filename, sizeof(filename), "%ssounds/magic/%s", api->data_directory, sound_filenames[i]); printf("Trying to load %s sound file\n", filename); @@ -209,7 +209,7 @@ SDL_Surface *example_get_icon(magic_api * api, int which) We use "which" (which of our tools Tux Paint is asking about) as an index into the array. */ - snprintf(filename, sizeof(filename), "%s/images/magic/%s", + snprintf(filename, sizeof(filename), "%simages/magic/%s", api->data_directory, icon_filenames[which]); printf("Trying to load %s icon\n", filename); diff --git a/docs/gl_ES.UTF-8/tp_magic_example.c b/docs/gl_ES.UTF-8/tp_magic_example.c index 85a33e903..25dffddbc 100644 --- a/docs/gl_ES.UTF-8/tp_magic_example.c +++ b/docs/gl_ES.UTF-8/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - Decembro 29, 2023 + Xaneiro 15, 2024 */ @@ -159,7 +159,7 @@ int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_leve "tp-magic-config --dataprefix" command would have told us when we installed our plugin and its data.) */ - snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory, + snprintf(filename, sizeof(filename), "%ssounds/magic/%s", api->data_directory, sound_filenames[i]); printf("Trying to load %s sound file\n", filename); @@ -209,7 +209,7 @@ SDL_Surface *example_get_icon(magic_api * api, int which) We use "which" (which of our tools Tux Paint is asking about) as an index into the array. */ - snprintf(filename, sizeof(filename), "%s/images/magic/%s", + snprintf(filename, sizeof(filename), "%simages/magic/%s", api->data_directory, icon_filenames[which]); printf("Trying to load %s icon\n", filename); diff --git a/docs/is_IS.UTF-8/html/tp_magic_example.c b/docs/is_IS.UTF-8/html/tp_magic_example.c index 967079d94..b7270601a 100644 --- a/docs/is_IS.UTF-8/html/tp_magic_example.c +++ b/docs/is_IS.UTF-8/html/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - 29. desember 2023 + 15. janúar 2024 */ @@ -159,7 +159,7 @@ int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_leve "tp-magic-config --dataprefix" command would have told us when we installed our plugin and its data.) */ - snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory, + snprintf(filename, sizeof(filename), "%ssounds/magic/%s", api->data_directory, sound_filenames[i]); printf("Trying to load %s sound file\n", filename); @@ -209,7 +209,7 @@ SDL_Surface *example_get_icon(magic_api * api, int which) We use "which" (which of our tools Tux Paint is asking about) as an index into the array. */ - snprintf(filename, sizeof(filename), "%s/images/magic/%s", + snprintf(filename, sizeof(filename), "%simages/magic/%s", api->data_directory, icon_filenames[which]); printf("Trying to load %s icon\n", filename); diff --git a/docs/is_IS.UTF-8/tp_magic_example.c b/docs/is_IS.UTF-8/tp_magic_example.c index 967079d94..b7270601a 100644 --- a/docs/is_IS.UTF-8/tp_magic_example.c +++ b/docs/is_IS.UTF-8/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - 29. desember 2023 + 15. janúar 2024 */ @@ -159,7 +159,7 @@ int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_leve "tp-magic-config --dataprefix" command would have told us when we installed our plugin and its data.) */ - snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory, + snprintf(filename, sizeof(filename), "%ssounds/magic/%s", api->data_directory, sound_filenames[i]); printf("Trying to load %s sound file\n", filename); @@ -209,7 +209,7 @@ SDL_Surface *example_get_icon(magic_api * api, int which) We use "which" (which of our tools Tux Paint is asking about) as an index into the array. */ - snprintf(filename, sizeof(filename), "%s/images/magic/%s", + snprintf(filename, sizeof(filename), "%simages/magic/%s", api->data_directory, icon_filenames[which]); printf("Trying to load %s icon\n", filename); diff --git a/docs/ja_JP.UTF-8/html/tp_magic_example.c b/docs/ja_JP.UTF-8/html/tp_magic_example.c index 1de571826..34025e43a 100644 --- a/docs/ja_JP.UTF-8/html/tp_magic_example.c +++ b/docs/ja_JP.UTF-8/html/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - 12月 29, 2023 + 1月 15, 2024 */ @@ -159,7 +159,7 @@ int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_leve "tp-magic-config --dataprefix" command would have told us when we installed our plugin and its data.) */ - snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory, + snprintf(filename, sizeof(filename), "%ssounds/magic/%s", api->data_directory, sound_filenames[i]); printf("Trying to load %s sound file\n", filename); @@ -209,7 +209,7 @@ SDL_Surface *example_get_icon(magic_api * api, int which) We use "which" (which of our tools Tux Paint is asking about) as an index into the array. */ - snprintf(filename, sizeof(filename), "%s/images/magic/%s", + snprintf(filename, sizeof(filename), "%simages/magic/%s", api->data_directory, icon_filenames[which]); printf("Trying to load %s icon\n", filename); diff --git a/docs/ja_JP.UTF-8/tp_magic_example.c b/docs/ja_JP.UTF-8/tp_magic_example.c index 1de571826..34025e43a 100644 --- a/docs/ja_JP.UTF-8/tp_magic_example.c +++ b/docs/ja_JP.UTF-8/tp_magic_example.c @@ -1,7 +1,7 @@ /* tp_magic_example.c An example of a "Magic" tool plugin for Tux Paint - 12月 29, 2023 + 1月 15, 2024 */ @@ -159,7 +159,7 @@ int example_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_leve "tp-magic-config --dataprefix" command would have told us when we installed our plugin and its data.) */ - snprintf(filename, sizeof(filename), "%s/sounds/magic/%s", api->data_directory, + snprintf(filename, sizeof(filename), "%ssounds/magic/%s", api->data_directory, sound_filenames[i]); printf("Trying to load %s sound file\n", filename); @@ -209,7 +209,7 @@ SDL_Surface *example_get_icon(magic_api * api, int which) We use "which" (which of our tools Tux Paint is asking about) as an index into the array. */ - snprintf(filename, sizeof(filename), "%s/images/magic/%s", + snprintf(filename, sizeof(filename), "%simages/magic/%s", api->data_directory, icon_filenames[which]); printf("Trying to load %s icon\n", filename);