同步操作将从 cutself/proj 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#coding=gbkimport subprocessimport os#-----------------------------------------------------------------_projRoot = os.getenv('zhpProjRootDir')if _projRoot == None:_projRoot = "F:/proj/"_cppPath = _projRoot + "cpp/"assetExploreFullName = os.getenv('AssetExplorePath')if assetExploreFullName == None:assetExploreFullName = _cppPath + "Frame/Libs/AssetExplore.exe"if not os.path.exists(assetExploreFullName):assetExploreFullName = _cppPath + r"apps/DEBUG/AssetExplore.exe"_allProjectPath = [#apps"apps/AssetExplore/","apps/CheckServer/","apps/CSViewer/","apps/ExtractFeatureCode/",#tools#"tools/HijackDll/","tools/LoginHlp/","tools/RecordMap/",#subs"subs/FIFA/Console/","subs/FIFA/Game/","subs/FIFA/Login/","subs/FIFA/Test/","subs/FIFA/CrackData/FeatureCode/AutoUpdate/",#lfzl"subs/PathOfExile/Console/","subs/PathOfExile/Game/","subs/PathOfExile/Login/",]#-----------------------------------------------------------------def RunAssetExplore(inFile, outFile):p = subprocess.Popen(assetExploreFullName + " /i " + inFile + " /o " + outFile + " -c", stdout=subprocess.PIPE, stderr=subprocess.PIPE)(stdoutput, erroutput) = p.communicate()print(stdoutput)print(erroutput)def GenPerFilePair(projPath):theFile = projPath + "as.assf"if not os.path.isfile(theFile):print(theFile + " 文件不存在")returnresDir = projPath + "res/"if not os.path.isdir(resDir):print(resDir + " res目录不存在")returnreturn theFile, resDir + "as.assf"def GenAllFile():inFiles = ""outFiles = ""for path in _allProjectPath:res = GenPerFilePair(_cppPath + path)if res == None:# assert False, ""continueinFiles += res[0] + ";"outFiles += res[1] + ";"return inFiles, outFilesdef DeleteAllFile():for path in _allProjectPath:theFile = _cppPath + path + "res/as.assf"if os.path.exists(theFile):print ("删除文件:" + theFile)os.remove(theFile)#Application StaticLibrary DynamicLibrary_configurationType = os.getenv('ConfigurationType_')if _configurationType == None:#DeleteAllFile()RunAssetExplore(*GenAllFile())elif _configurationType == "StaticLibrary":RunAssetExplore(*GenAllFile())else:def GenCurProj():projDir = os.getenv('ProjectDir_')if projDir == None:print("ProjectDir_环境变量不存在")returnres = GenPerFilePair(projDir)if res == None:assert False, ""returnRunAssetExplore(*res)GenCurProj()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。