参数自动切割

This commit is contained in:
gfdgd xi 2023-01-16 11:44:22 +08:00
parent 6eeb7909ad
commit e8cd543777
3 changed files with 30 additions and 8 deletions

@ -1,4 +1,4 @@
{
"advapi32.dll": "描述: advapi32.dll是一个高级API应用程序接口服务库的一部分用于支持非常多的API应用程序接口包括安全和注册的调用。\n属于 Windows NT 4.0 \n系统 DLL文件 是 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary",
"advpack.dll": "描述: advpack.dll用于帮助硬件和软件读取和验证.INF文件。\n属于 Windows \n系统 DLL文件 是 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary",
"asycfilt.dll": "描述: asycfilt.dll是Microsoft OLE (对象链接和嵌入)特性相关DLL文件。\n属于 OLE \n系统 DLL文件 是 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary",
@ -95,5 +95,4 @@
"wnaspi32.dll": "描述: wnaspi32.dll是高级Advanced SCSI程序接口( ASPI )管理相关文件。\n属于 Windows \n系统 DLL文件 是 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary",
"ws2_32.dll": "描述: ws2_32.dll是Windows Sockets应用程序接口用于支持Internet和网络应用程序。\n属于 Windows Sockets \n系统 DLL文件 是 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary",
"ws2help.dll": "描述: ws2help.dll是Windows Sockets应用程序接口用于支持Internet和网络应用程序。\n属于 Windows Sockets \n系统 DLL文件 是 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary",
"wsock32.dll": "描述: wsock32.dll是Windows Sockets应用程序接口用于支持很多Internet和网络应用程序。\n属于 Windows Sockets \n系统 DLL文件 是 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary"
}
"wsock32.dll": "描述: wsock32.dll是Windows Sockets应用程序接口用于支持很多Internet和网络应用程序。\n属于 Windows Sockets \n系统 DLL文件 是 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary",

@ -1,4 +1,4 @@
{
"ac1st15.dll": "描述: ac1st15.dll是AutoCAD、AutoCAD LT、KeyPLANTING和KeySCAPE等软件动态链接库该文件是Autodesk公司出品。\n属于 AutoCAD \n系统 DLL文件 否 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary",
"binkw32.dll": "描述: binkw32.dll是BINK视频解码器相关进程用于压缩视频回放例如游戏中的视频。\n属于 Bink Video Player \n系统 DLL文件 否 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary",
"bwcc.dll": "描述: bwcc.dll是Borland Windows控件相关动态链接库文件。\n属于 Borland C++ \n系统 DLL文件 否 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary",
@ -123,4 +123,3 @@
"ygxa_2.dll": "描述: ygxa_2.dll是Yahoo!雅虎通即时通讯软件图形用户界面相关文件。\n属于 Yahoo Messenger \n系统 DLL文件 否 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary",
"yml.dll": "描述: yml.dll是Yahoo!雅虎通应用程序相关库文件。\n属于 Yahoo Messenger \n系统 DLL文件 否 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary",
"zlib.dll": "描述: zlib.dll是ZLIB压缩库相关文件用于Windows应用程序压缩和解压缩。\n属于 ZLIB \n系统 DLL文件 否 \n常见错误 File Not Found, Missing File, Exception \n\n资料来源https://www.2cto.com/shouce/system/dlllibrary"
}

@ -281,6 +281,30 @@ class Runexebutton_threading(QtCore.QThread):
else:
option += "WINEDEBUG=FIXME,ERR,WARN,TRACE,Message "
wineUsingOption = ""
exePath = e2.currentText()
if True:
fileName = [".exe"]
changePath = False
for i in fileName:
if i in exePath:
print(i)
print(exePath)
l = exePath.index(i)
exePath = f"{exePath[:l+4]}' {exePath[l+4:]} '"
print(l)
print(exePath)
changePath = True
break
#if not changePath and not os.path.exists(changePath):
if not changePath and not os.path.exists(exePath):
# 删除前后无用空格以防止出现问题
print(exePath)
exePath = exePath.strip()
l = exePath.index(" ")
exePath = f"{exePath[:l]}' {exePath[l:]} '"
print(l)
#print(i)
print(exePath)
if o1.currentText() == "基于 UOS exagear 的 deepin-wine6-stable" or o1.currentText() == "基于 UOS box86 的 deepin-wine6-stable":
wineUsingOption = ""
if o1.currentText() == "基于 UOS box86 的 deepin-wine6-stable" or o1.currentText() == "基于 UOS exagear 的 deepin-wine6-stable":
@ -296,7 +320,7 @@ class Runexebutton_threading(QtCore.QThread):
elif e2.currentText()[-4:] == ".bat" and os.path.exists(e2.currentText()):
OpenTerminal("env WINEPREFIX='" + wineBottonPath + "' " + option + wine[o1.currentText()] + " wineconsole '" + e2.currentText() + "' " + setting["WineOption"])
else:
OpenTerminal("env WINEPREFIX='" + wineBottonPath + "' " + option + wine[o1.currentText()] + " '" + e2.currentText() + "' " + setting["WineOption"])
OpenTerminal("env WINEPREFIX='" + wineBottonPath + "' " + option + wine[o1.currentText()] + " '" + exePath + "' " + setting["WineOption"])
#res = subprocess.Popen([f"'{programPath}/launch.sh' deepin-terminal -C \"WINEPREFIX='" + wineBottonPath + "' " + option + wine[o1.currentText()] + " '" + e2.currentText() + "' " + setting["WineOption"] + "\" --keep-open" + wineUsingOption], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
else:
if e2.currentText()[-4:] == ".msi" and os.path.exists(e2.currentText()):
@ -304,8 +328,8 @@ class Runexebutton_threading(QtCore.QThread):
elif e2.currentText()[-4:] == ".bat" and os.path.exists(e2.currentText()):
res = subprocess.Popen(["WINEPREFIX='" + wineBottonPath + "' " + option + wine[o1.currentText()] + " wineconsole '" + e2.currentText() + "' " + setting["WineOption"]], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
else:
print(["WINEPREFIX='" + wineBottonPath + "' " + option + wine[o1.currentText()] + " '" + e2.currentText() + "' " + setting["WineOption"]])
res = subprocess.Popen(["WINEPREFIX='" + wineBottonPath + "' " + option + wine[o1.currentText()] + " '" + e2.currentText() + "' " + setting["WineOption"]], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
print(["WINEPREFIX='" + wineBottonPath + "' " + option + wine[o1.currentText()] + " '" + exePath + "' " + setting["WineOption"]])
res = subprocess.Popen(["WINEPREFIX='" + wineBottonPath + "' " + option + wine[o1.currentText()] + " '" + exePath + "' " + setting["WineOption"]], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
# 实时读取程序返回
#
if not setting["TerminalOpen"]: