fix bugs.

This commit is contained in:
Bruce
2026-04-04 19:49:45 +08:00
parent bf54d5a531
commit b562d5b5ba
2 changed files with 7 additions and 2 deletions

View File

@@ -380,4 +380,7 @@ namespace DataUtils
JsUtils.Call (cb, progress);
}
}
[ComVisible (true)]
[ClassInterface (ClassInterfaceType.AutoDual)]
public class _I_Exception: IExcep
}

View File

@@ -39,7 +39,7 @@ enum class CMDPARAM: DWORD
{
NONE = 0b000,
SILENT = 0b001,
VERYSILENT = 0b011,
VERYSILENT = 0b010,
MULTIPLE = 0b100
};
@@ -1810,6 +1810,8 @@ std::vector <std::wstring> LoadFileListW (const std::wstring &filePath)
{
if (!line.empty () && line.back () == L'\r') line.pop_back ();
if (!line.empty () && !std::wnstring::empty (line) && IsFileExists (line)) result.push_back (line);
auto fullFile = CombinePath (GetFileDirectoryW (filePath), line);
if (!line.empty () && !std::wnstring::empty (fullFile) && IsFileExists (fullFile)) result.push_back (fullFile);
}
return result;
}
@@ -1844,7 +1846,7 @@ DWORD CmdMapsToFlags (std::map <cmdkey, cmdvalue> cmdpairs, std::vector <std::wn
auto &key = it.first;
auto &value = it.second;
if (key.key.equals (L"silent")) dwret |= (DWORD)CMDPARAM::SILENT;
else if (key.key.equals (L"verysilent")) dwret |= (DWORD)CMDPARAM::SILENT;
else if (key.key.equals (L"verysilent")) dwret |= (DWORD)CMDPARAM::VERYSILENT;
else if (key.key.equals (L"multiple"))
{
if (value.type == paramtype::file)