public static final void main(String[] strings) {
	try {
	    try {
		if (strings.length != 7)
		    Class55.method518("Argument count", (byte) 44);
		Class135_Sub2.worldConnectionNode = new ConnectionMode();
		((ConnectionMode) Class135_Sub2.worldConnectionNode).portOffset
		    = Integer.parseInt(strings[0]);
		ItemLoader.lobbyConnectionNode = new ConnectionMode();
		((ConnectionMode) ItemLoader.lobbyConnectionNode).portOffset
		    = Integer.parseInt(strings[1]);
		Class348_Sub40_Sub35.demoConnectionNode = new ConnectionMode();
		((ConnectionMode) Class348_Sub40_Sub35.demoConnectionNode).portOffset
		    = Integer.parseInt(strings[2]);
		Class8.modeWhere = Class76.aClass364_1279;
		if (strings[3].equals("live"))
		    Class11.modeWhat = Class68.aClass231_1189;
		else if (!strings[3].equals("rc")) {
		    if (strings[3].equals("wip"))
			Class11.modeWhat = Class288.aClass231_4953;
		    else
			Class55.method518("modewhat", (byte) 41);
		} else
		    Class11.modeWhat
			= Class348_Sub40_Sub20.aClass231_9263;
		Class348_Sub33.gameLanguage
		    = Class27.method315((byte) 103, strings[4]);
		if ((Class348_Sub33.gameLanguage ^ 0xffffffff) == 0) {
		    if (!strings[4].equals("english")) {
			if (strings[4].equals("german"))
			    Class348_Sub33.gameLanguage = 1;
			else
			    Class55.method518("language", (byte) -128);
		    } else
			Class348_Sub33.gameLanguage = 0;
		}
		Class348_Sub37.aBoolean6997 = false;
		Class289.aBoolean3697 = false;
		if (!strings[5].equals("game0")) {
		    if (!strings[5].equals("game1")) {
			if (!strings[5].equals("game2")) {
			    if (!strings[5].equals("game3"))
				Class55.method518("game", (byte) -124);
			    else
				Class348_Sub42_Sub8_Sub2.gameType
				    = Class239_Sub9.aClass230_5932;
			} else
			    Class348_Sub42_Sub8_Sub2.gameType
				= Class286_Sub6.aClass230_6262;
		    } else
			Class348_Sub42_Sub8_Sub2.gameType
			    = Class14_Sub4.aClass230_8638;
		} else
		    Class348_Sub42_Sub8_Sub2.gameType
			= Class10.aClass230_186;
                skipUpdate = Boolean.parseBoolean(strings[6]);
		ConnectionMode.aBoolean2151 = false;
		Class239_Sub12.clientSettings = "";
		TextureLoader.aLong4615 = 0L;
		Class348_Sub23_Sub3.sskeyStr = null;
		SocketWorker.affiliateId = 0;
		Class206.aBoolean4888 = Class155.aBoolean2110 = true;
		Class375.aBoolean4540 = false;
		Class251.anInt3234 = 0;
		Class222.anInt2884
		    = (((GameMode) Class348_Sub42_Sub8_Sub2.gameType)
		       .id);
		AbstractToolkit.anInt4583 = 0;
		Class14_Sub1.aString8605 = null;
		Client var_client = new Client();
		NpcDefinition.aClient1367 = var_client;
		var_client.initializeFrame(Class11.modeWhat.method1640(0) + 32,
				    1024, false, 634, 37,
				    (((GameMode)
				      Class348_Sub42_Sub8_Sub2.gameType)
				     .name),
				    23499, 768);
		ColorNode.aFrame4904.setLocation(40, 40);
	    } catch (Exception exception) {
		Class156.method1242(null, exception, 15004);
	    }
	    anInt5178++;
	} catch (RuntimeException runtimeexception) {
	    throw Class348_Sub17.method2929(runtimeexception,
					    "client.main(" + (strings != null
							      ? "{...}"
							      : "null") + ')');
	}
    }