Return full paths from aegisub.dialog.open rather than just filenames

This commit is contained in:
Thomas Goyne 2013-07-21 16:38:32 -07:00
parent 5ebc2032d4
commit 13d31d17ef
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}