[gnome-games] retro: Rename RetroRunner.with_mime_types() into RetroRunner()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] retro: Rename RetroRunner.with_mime_types() into RetroRunner()
- Date: Tue, 30 Aug 2016 13:30:27 +0000 (UTC)
commit bcccff60a6571c65b86e0a965a99c9f6b2f2f7ac
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Aug 30 14:39:35 2016 +0200
retro: Rename RetroRunner.with_mime_types() into RetroRunner()
This better reflects the fact that it is the default constructor of
RetroRunner.
plugins/amiga/src/amiga-plugin.vala | 2 +-
plugins/atari-2600/src/atari-2600-plugin.vala | 2 +-
plugins/atari-7800/src/atari-7800-plugin.vala | 2 +-
plugins/doom/src/doom-plugin.vala | 2 +-
plugins/dreamcast/src/dreamcast-plugin.vala | 2 +-
.../src/game-boy-advance-plugin.vala | 2 +-
plugins/game-boy/src/game-boy-plugin.vala | 2 +-
plugins/game-cube/src/game-cube-plugin.vala | 2 +-
plugins/mame/src/mame-game-uri-adapter.vala | 2 +-
.../master-system/src/master-system-plugin.vala | 4 ++--
plugins/mega-drive/src/mega-drive-plugin.vala | 4 ++--
.../neo-geo-pocket/src/neo-geo-pocket-plugin.vala | 2 +-
plugins/nes/src/nes-plugin.vala | 2 +-
plugins/nintendo-64/src/nintendo-64-plugin.vala | 2 +-
plugins/nintendo-ds/src/nintendo-ds-plugin.vala | 2 +-
plugins/pc-engine/src/pc-engine-plugin.vala | 4 ++--
plugins/sega-saturn/src/sega-saturn-plugin.vala | 2 +-
plugins/snes/src/snes-plugin.vala | 2 +-
plugins/wii-ware/src/wii-ware-plugin.vala | 2 +-
plugins/wii/src/wii-plugin.vala | 2 +-
src/retro/retro-runner.vala | 2 +-
21 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/plugins/amiga/src/amiga-plugin.vala b/plugins/amiga/src/amiga-plugin.vala
index c58d76a..6bd80a1 100644
--- a/plugins/amiga/src/amiga-plugin.vala
+++ b/plugins/amiga/src/amiga-plugin.vala
@@ -25,7 +25,7 @@ private class Games.AmigaPlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/atari-2600/src/atari-2600-plugin.vala b/plugins/atari-2600/src/atari-2600-plugin.vala
index b0f2da5..7760fd5 100644
--- a/plugins/atari-2600/src/atari-2600-plugin.vala
+++ b/plugins/atari-2600/src/atari-2600-plugin.vala
@@ -25,7 +25,7 @@ private class Games.Atari2600 : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/atari-7800/src/atari-7800-plugin.vala b/plugins/atari-7800/src/atari-7800-plugin.vala
index b5d7387..afc8581 100644
--- a/plugins/atari-7800/src/atari-7800-plugin.vala
+++ b/plugins/atari-7800/src/atari-7800-plugin.vala
@@ -25,7 +25,7 @@ private class Games.Atari7800 : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/doom/src/doom-plugin.vala b/plugins/doom/src/doom-plugin.vala
index 917e13e..3c45e66 100644
--- a/plugins/doom/src/doom-plugin.vala
+++ b/plugins/doom/src/doom-plugin.vala
@@ -22,7 +22,7 @@ private class Games.DoomPlugin : Object, Plugin {
var title = new FilenameTitle (uri);
var icon = new DummyIcon ();
var cover = new LocalCover (uri);
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/dreamcast/src/dreamcast-plugin.vala b/plugins/dreamcast/src/dreamcast-plugin.vala
index 283c929..7b466e3 100644
--- a/plugins/dreamcast/src/dreamcast-plugin.vala
+++ b/plugins/dreamcast/src/dreamcast-plugin.vala
@@ -28,7 +28,7 @@ private class Games.DreamcastPlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/game-boy-advance/src/game-boy-advance-plugin.vala
b/plugins/game-boy-advance/src/game-boy-advance-plugin.vala
index c567936..b64c2a8 100644
--- a/plugins/game-boy-advance/src/game-boy-advance-plugin.vala
+++ b/plugins/game-boy-advance/src/game-boy-advance-plugin.vala
@@ -25,7 +25,7 @@ private class Games.GameBoyAdvancePlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/game-boy/src/game-boy-plugin.vala b/plugins/game-boy/src/game-boy-plugin.vala
index 74aa577..8780d3f 100644
--- a/plugins/game-boy/src/game-boy-plugin.vala
+++ b/plugins/game-boy/src/game-boy-plugin.vala
@@ -50,7 +50,7 @@ private class Games.GameBoyPlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { mime_type }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { mime_type }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/game-cube/src/game-cube-plugin.vala b/plugins/game-cube/src/game-cube-plugin.vala
index a22232c..a945ca7 100644
--- a/plugins/game-cube/src/game-cube-plugin.vala
+++ b/plugins/game-cube/src/game-cube-plugin.vala
@@ -28,7 +28,7 @@ private class Games.GameCubePlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/mame/src/mame-game-uri-adapter.vala b/plugins/mame/src/mame-game-uri-adapter.vala
index 36fb9d8..b4d0484 100644
--- a/plugins/mame/src/mame-game-uri-adapter.vala
+++ b/plugins/mame/src/mame-game-uri-adapter.vala
@@ -27,7 +27,7 @@ private class Games.MameGameUriAdapter : GameUriAdapter, Object {
var icon = new DummyIcon ();
var cover = new LocalCover (uri);
- var runner = new RetroRunner.with_mime_types (uri, uid, { SEARCHED_MIME_TYPE,
SPECIFIC_MIME_TYPE }, MODULE_BASENAME, SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { SEARCHED_MIME_TYPE, SPECIFIC_MIME_TYPE },
MODULE_BASENAME, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/master-system/src/master-system-plugin.vala
b/plugins/master-system/src/master-system-plugin.vala
index 03c7168..55bc154 100644
--- a/plugins/master-system/src/master-system-plugin.vala
+++ b/plugins/master-system/src/master-system-plugin.vala
@@ -58,7 +58,7 @@ private class Games.MasterSystemPlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { mime_type }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { mime_type }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
@@ -71,7 +71,7 @@ private class Games.MasterSystemPlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { SG_1000_MIME_TYPE },
MODULE_BASENAME, SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { SG_1000_MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/mega-drive/src/mega-drive-plugin.vala b/plugins/mega-drive/src/mega-drive-plugin.vala
index 5dd2378..8d38e30 100644
--- a/plugins/mega-drive/src/mega-drive-plugin.vala
+++ b/plugins/mega-drive/src/mega-drive-plugin.vala
@@ -66,7 +66,7 @@ private class Games.MegaDrivePlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { mime_type }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { mime_type }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
@@ -94,7 +94,7 @@ private class Games.MegaDrivePlugin : Object, Plugin {
var icon = new DummyIcon ();
var media = new GriloMedia (title, MEGA_CD_MIME_TYPE);
var cover = new GriloCover (media, uid);
- var runner = new RetroRunner.with_mime_types (uri, uid, mime_types, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, mime_types, MODULE_BASENAME, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/neo-geo-pocket/src/neo-geo-pocket-plugin.vala
b/plugins/neo-geo-pocket/src/neo-geo-pocket-plugin.vala
index 3d4e14b..0c3a611 100644
--- a/plugins/neo-geo-pocket/src/neo-geo-pocket-plugin.vala
+++ b/plugins/neo-geo-pocket/src/neo-geo-pocket-plugin.vala
@@ -25,7 +25,7 @@ private class Games.NeoGeoPocketPlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/nes/src/nes-plugin.vala b/plugins/nes/src/nes-plugin.vala
index 72fbc45..4b650fc 100644
--- a/plugins/nes/src/nes-plugin.vala
+++ b/plugins/nes/src/nes-plugin.vala
@@ -25,7 +25,7 @@ private class Games.NesPlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/nintendo-64/src/nintendo-64-plugin.vala b/plugins/nintendo-64/src/nintendo-64-plugin.vala
index d071fba..44e5fba 100644
--- a/plugins/nintendo-64/src/nintendo-64-plugin.vala
+++ b/plugins/nintendo-64/src/nintendo-64-plugin.vala
@@ -25,7 +25,7 @@ private class Games.Nintendo64Plugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
index b9d6284..cf49419 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
@@ -25,7 +25,7 @@ private class Games.NintendoDsPlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/pc-engine/src/pc-engine-plugin.vala b/plugins/pc-engine/src/pc-engine-plugin.vala
index 0429846..3aeddc5 100644
--- a/plugins/pc-engine/src/pc-engine-plugin.vala
+++ b/plugins/pc-engine/src/pc-engine-plugin.vala
@@ -34,7 +34,7 @@ private class Games.PcEnginePlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
@@ -48,7 +48,7 @@ private class Games.PcEnginePlugin : Object, Plugin {
var icon = new DummyIcon ();
var media = new GriloMedia (title, MIME_TYPE);
var cover = new GriloCover (media, uid);
- var runner = new RetroRunner.with_mime_types (uri, uid, { CUE_MIME_TYPE, MIME_TYPE },
MODULE_BASENAME, SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { CUE_MIME_TYPE, MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/sega-saturn/src/sega-saturn-plugin.vala b/plugins/sega-saturn/src/sega-saturn-plugin.vala
index a09943a..8dc111f 100644
--- a/plugins/sega-saturn/src/sega-saturn-plugin.vala
+++ b/plugins/sega-saturn/src/sega-saturn-plugin.vala
@@ -32,7 +32,7 @@ private class Games.SegaSaturnPlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { SEARCHED_MIME_TYPE,
SPECIFIC_MIME_TYPE }, MODULE_BASENAME, SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { SEARCHED_MIME_TYPE, SPECIFIC_MIME_TYPE },
MODULE_BASENAME, SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/snes/src/snes-plugin.vala b/plugins/snes/src/snes-plugin.vala
index 7b399a2..7d5eab7 100644
--- a/plugins/snes/src/snes-plugin.vala
+++ b/plugins/snes/src/snes-plugin.vala
@@ -25,7 +25,7 @@ private class Games.SnesPlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/wii-ware/src/wii-ware-plugin.vala b/plugins/wii-ware/src/wii-ware-plugin.vala
index a1c24e2..c402292 100644
--- a/plugins/wii-ware/src/wii-ware-plugin.vala
+++ b/plugins/wii-ware/src/wii-ware-plugin.vala
@@ -25,7 +25,7 @@ private class Games.WiiWarePlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/plugins/wii/src/wii-plugin.vala b/plugins/wii/src/wii-plugin.vala
index 1b73bea..a568720 100644
--- a/plugins/wii/src/wii-plugin.vala
+++ b/plugins/wii/src/wii-plugin.vala
@@ -28,7 +28,7 @@ private class Games.WiiPlugin : Object, Plugin {
var cover = new CompositeCover ({
new LocalCover (uri),
new GriloCover (media, uid)});
- var runner = new RetroRunner.with_mime_types (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
+ var runner = new RetroRunner (uri, uid, { MIME_TYPE }, MODULE_BASENAME,
SUPPORTS_SNAPSHOTTING);
return new GenericGame (title, icon, cover, runner);
}
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index e775de8..8d2319d 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -69,7 +69,7 @@ public class Games.RetroRunner : Object, Runner {
private bool is_ready;
private bool should_save;
- public RetroRunner.with_mime_types (string uri, Uid uid, string[] mime_types, string module_basename,
bool core_supports_snapshotting) {
+ public RetroRunner (string uri, Uid uid, string[] mime_types, string module_basename, bool
core_supports_snapshotting) {
is_initialized = false;
is_ready = false;
should_save = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]