forked from mia/Aegisub
Return full paths from aegisub.dialog.open rather than just filenames
This commit is contained in:
parent
5ebc2032d4
commit
13d31d17ef
1 changed files with 2 additions and 2 deletions
|
@ -211,7 +211,7 @@ namespace Automation4 {
|
|||
|
||||
if (multiple) {
|
||||
wxArrayString files;
|
||||
diag.GetFilenames(files);
|
||||
diag.GetPaths(files);
|
||||
|
||||
lua_newtable(L);
|
||||
for (size_t i = 0; i < files.size(); ++i) {
|
||||
|
@ -222,7 +222,7 @@ namespace Automation4 {
|
|||
return 1;
|
||||
}
|
||||
|
||||
lua_pushstring(L, diag.GetFilename().utf8_str());
|
||||
lua_pushstring(L, diag.GetPath().utf8_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue