final void method80(int i) {
	if (Class184.aBoolean2469)
	    Class318_Sub1_Sub2.writeScriptSettings(i + -110);
	anInt5170++;
	Class59_Sub1_Sub1.method556(false);
	if (Class348_Sub8.currentToolkit != null)
	    Class348_Sub8.currentToolkit.destroy();
	if (Class34.aFrame476 != null) {
	    LoadingStage.method527(Class34.aFrame476,
			      Class348_Sub23_Sub1.signlink, false);
	    Class34.aFrame476 = null;
	}
	if (Class348_Sub40_Sub8.gameConnection != null) {
	    Class348_Sub40_Sub8.gameConnection.method1700((byte) 36);
	    Class348_Sub40_Sub8.gameConnection = null;
	}
	ModelPolygon.method1265(16);
	Class348_Sub4.ondemandWorker.resetSocket(i ^ ~0x44);
	Class39.aClass112_520.method1051(true);
	if (Class76.aClass169_1286 != null) {
	    Class76.aClass169_1286.method1303((byte) 16);
	    Class76.aClass169_1286 = null;
	}
	try {
	    Class299_Sub2.mainIndexBufferedFile.method790((byte) -62);
	    for (int i_6_ = i; i_6_ < 37; i_6_++)
		Class100.bufferedCacheFiles[i_6_].method790((byte) 118);
	    Class235.tableIndexBufferedFile.method790((byte) -84);
	    Class374.randomDatBufferedFile.method790((byte) 80);
	    Class348_Sub46.method3317((byte) -53);
	} catch (Exception exception) {
	    /* empty */
	}
    }