public class GameUtils {
public static void autodetectGames(GOIMGameList gameList) {
try {
List<GameExtensionProxy> gameExtensions = GameExtensionPoint.getGameExtensions();
for(GameExtensionProxy gameExtension : gameExtensions) {
IGame iGame = gameExtension.getDelegate();
if(iGame instanceof IGameWithRegistryAutoDetection) {
((IGameWithRegistryAutoDetection)iGame).autoDetect(gameExtension,gameList);
// if(item != null) {
// System.out.println("Auto detected game: " + item.toString());
// gameList.add(item);