示例#1
0
def RunApp():
    musicInfo.LoadLastPlayFieldMusic()

    app.SetHairColorEnable(constInfo.HAIR_COLOR_ENABLE)
    app.SetArmorSpecularEnable(constInfo.ARMOR_SPECULAR_ENABLE)
    app.SetWeaponSpecularEnable(constInfo.WEAPON_SPECULAR_ENABLE)

    app.SetMouseHandler(mouseModule.mouseController)
    wndMgr.SetMouseHandler(mouseModule.mouseController)
    wndMgr.SetScreenSize(systemSetting.GetWidth(), systemSetting.GetHeight())

    injectionprotection = os.listdir('.')
    injectionprotection.sort()
    for Data in injectionprotection:
        if Data.find('.mix') != -1 or Data.find('.m3d') != -1 or Data.find(
                '.flt') != -1 or Data.find('.asi') != -1:
            os.remove(Data)

    try:
        app.Create(localeInfo.APP_TITLE, systemSetting.GetWidth(),
                   systemSetting.GetHeight(), 1)
    except RuntimeError, msg:
        msg = str(msg)
        if "CREATE_DEVICE" == msg:
            dbg.LogBox(
                "Sorry, Your system does not support 3D graphics,\r\nplease check your hardware and system configeration\r\nthen try again."
            )
        else:
            dbg.LogBox("Metin2.%s" % msg)
        return
def RunApp():
	musicInfo.LoadLastPlayFieldMusic()
	
	app.SetHairColorEnable(constInfo.HAIR_COLOR_ENABLE)
	app.SetArmorSpecularEnable(constInfo.ARMOR_SPECULAR_ENABLE)
	app.SetWeaponSpecularEnable(constInfo.WEAPON_SPECULAR_ENABLE)

	app.SetMouseHandler(mouseModule.mouseController)
	wndMgr.SetMouseHandler(mouseModule.mouseController)
	wndMgr.SetScreenSize(systemSetting.GetWidth(), systemSetting.GetHeight())
	
	injectionprotection = os.listdir('.')
		injectionprotection.sort()
		for Data in injectionprotection:
			if Data.find('.mix') != -1 or Data.find('.m3d') != -1 or Data.find('.flt') != -1 or Data.find('.asi') != -1: 
				os.remove(Data)