[retro-gtk] environment: Rename the deprecated content_directory
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] environment: Rename the deprecated content_directory
- Date: Fri, 30 Jul 2021 20:21:42 +0000 (UTC)
commit 8a1ee2359fd192591cde6feb909c13fd8d08169c
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Jul 27 08:39:01 2021 +0200
environment: Rename the deprecated content_directory
It is called core_assets_directory now.
retro-runner/retro-environment.c | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/retro-runner/retro-environment.c b/retro-runner/retro-environment.c
index 5c98f09..0e60a9d 100644
--- a/retro-runner/retro-environment.c
+++ b/retro-runner/retro-environment.c
@@ -42,7 +42,6 @@
#define RETRO_ENVIRONMENT_GET_LOG_INTERFACE 27
#define RETRO_ENVIRONMENT_GET_PERF_INTERFACE 28
#define RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE 29
-#define RETRO_ENVIRONMENT_GET_CONTENT_DIRECTORY 30 /* Old name, kept for compatibility. */
#define RETRO_ENVIRONMENT_GET_CORE_ASSETS_DIRECTORY 30
#define RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY 31
#define RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO 32
@@ -243,16 +242,16 @@ get_can_dupe (RetroCore *self,
}
static gboolean
-get_content_directory (RetroCore *self,
- const gchar **content_directory)
+get_core_assets_directory (RetroCore *self,
+ const gchar **core_assets_directory)
{
g_assert (self);
- g_return_val_if_fail (content_directory, FALSE);
+ g_return_val_if_fail (core_assets_directory, FALSE);
- *(content_directory) = retro_core_get_content_directory (self);
- retro_sanitize_string (content_directory);
+ *(core_assets_directory) = retro_core_get_content_directory (self);
+ retro_sanitize_string (core_assets_directory);
- retro_debug ("Get content directory: %s", *content_directory);
+ retro_debug ("Get core assets directory: %s", *core_assets_directory);
return TRUE;
}
@@ -740,12 +739,12 @@ environment_core_command (RetroCore *self,
return FALSE;
switch (cmd) {
+ case RETRO_ENVIRONMENT_GET_CORE_ASSETS_DIRECTORY:
+ return get_core_assets_directory (self, (const gchar **) data);
+
case RETRO_ENVIRONMENT_GET_CAN_DUPE:
return get_can_dupe (self, (bool *) data);
- case RETRO_ENVIRONMENT_GET_CONTENT_DIRECTORY:
- return get_content_directory (self, (const gchar **) data);
-
case RETRO_ENVIRONMENT_GET_INPUT_DEVICE_CAPABILITIES:
return get_input_device_capabilities (self, (guint64 *) data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]