[gnome-games/wip/exalm/runner-refactor: 11/58] retro-runner: Move get_unsupported_system_message() next to where it's used
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/runner-refactor: 11/58] retro-runner: Move get_unsupported_system_message() next to where it's used
- Date: Sun, 8 Mar 2020 13:41:42 +0000 (UTC)
commit d9c9f6f3d8e67df645a5375a0d84fc9d6850fa09
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Mar 6 15:26:18 2020 +0500
retro-runner: Move get_unsupported_system_message() next to where it's used
src/retro/retro-runner.vala | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index fbecd5eb..9e531026 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -106,6 +106,14 @@ public class Games.RetroRunner : Object, Runner {
deinit ();
}
+ private string get_unsupported_system_message () {
+ var platform_name = game.platform.get_name ();
+ if (platform_name != null)
+ return _("The system “%s” isn’t supported yet, but full support is planned.").printf
(platform_name);
+
+ return _("The system isn’t supported yet, but full support is planned.");
+ }
+
public void try_init_phase_one () throws RunnerError {
try {
init_phase_one ();
@@ -581,14 +589,6 @@ public class Games.RetroRunner : Object, Runner {
null);
}
- private string get_unsupported_system_message () {
- var platform_name = game.platform.get_name ();
- if (platform_name != null)
- return _("The system “%s” isn’t supported yet, but full support is planned.").printf
(platform_name);
-
- return _("The system isn’t supported yet, but full support is planned.");
- }
-
public Retro.Core get_core () {
return core;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]