Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Debugger/LuaPanda.lua
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,10 @@ function this.formatOpath(opath)
if autoExt == nil or autoExt == '' then
-- 在虚拟机返回路径没有后缀的情况下,用户必须自设后缀
-- 确定filePath中最后一个.xxx 不等于用户配置的后缀, 则把所有的. 转为 /
if not opath:find(luaFileExtension , (-1) * luaFileExtension:len(), true) then
if luaFileExtension == "" then
local tempPath = opath:match("(.-)%.") or opath;
opath = string.gsub(tempPath, "%.", "/");
elseif not opath:find(luaFileExtension , (-1) * luaFileExtension:len(), true) then
-- getinfo 路径没有后缀,把 . 全部替换成 / ,我们不允许用户在文件(或文件夹)名称中出现"." , 因为无法区分
opath = string.gsub(opath, "%.", "/");
else
Expand Down Expand Up @@ -1746,7 +1749,10 @@ function this.getPath( info )
if autoExt == nil or autoExt == '' then
-- 在虚拟机返回路径没有后缀的情况下,用户必须自设后缀
-- 确定filePath中最后一个.xxx 不等于用户配置的后缀, 则把所有的. 转为 /
if not filePath:find(luaFileExtension , (-1) * luaFileExtension:len(), true) then
if luaFileExtension == "" then
local tempPath = filePath:match("(.-)%.") or filePath;
filePath = string.gsub(tempPath, "%.", "/");
elseif not filePath:find(luaFileExtension , (-1) * luaFileExtension:len(), true) then
-- getinfo 路径没有后缀,把 . 全部替换成 / ,我们不允许用户在文件(或文件夹)名称中出现"." , 因为无法区分
filePath = string.gsub(filePath, "%.", "/");
else
Expand Down