[retro-gtk] retro-gobject: Sort unsorted commands
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-gobject: Sort unsorted commands
- Date: Fri, 20 Jan 2017 09:44:52 +0000 (UTC)
commit a3ede2c0832de2dc6cad5dae6a8ef76c243345b2
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Jan 19 09:55:13 2017 +0100
retro-gobject: Sort unsorted commands
Sort unused commands in environment_core_command() as they were the only
unsorted ones.
This makes the code cleaner and more maintainable in the long run.
https://bugzilla.gnome.org/show_bug.cgi?id=777482
retro-gobject/retro-environment.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/retro-gobject/retro-environment.c b/retro-gobject/retro-environment.c
index 02b635d..ca1153a 100644
--- a/retro-gobject/retro-environment.c
+++ b/retro-gobject/retro-environment.c
@@ -599,13 +599,13 @@ static gboolean environment_core_command (RetroCore *self, unsigned cmd, gpointe
case RETRO_ENVIRONMENT_SHUTDOWN:
return shutdown (self);
- case RETRO_ENVIRONMENT_SET_PROC_ADDRESS_CALLBACK:
- case RETRO_ENVIRONMENT_SET_SUBSYSTEM_INFO:
+ case RETRO_ENVIRONMENT_GET_LANGUAGE:
+ case RETRO_ENVIRONMENT_GET_USERNAME:
case RETRO_ENVIRONMENT_SET_CONTROLLER_INFO:
- case RETRO_ENVIRONMENT_SET_MEMORY_MAPS:
case RETRO_ENVIRONMENT_SET_GEOMETRY:
- case RETRO_ENVIRONMENT_GET_USERNAME:
- case RETRO_ENVIRONMENT_GET_LANGUAGE:
+ case RETRO_ENVIRONMENT_SET_MEMORY_MAPS:
+ case RETRO_ENVIRONMENT_SET_PROC_ADDRESS_CALLBACK:
+ case RETRO_ENVIRONMENT_SET_SUBSYSTEM_INFO:
default:
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]