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

View file

@ -211,7 +211,7 @@ namespace Automation4 {
if (multiple) { if (multiple) {
wxArrayString files; wxArrayString files;
diag.GetFilenames(files); diag.GetPaths(files);
lua_newtable(L); lua_newtable(L);
for (size_t i = 0; i < files.size(); ++i) { for (size_t i = 0; i < files.size(); ++i) {
@ -222,7 +222,7 @@ namespace Automation4 {
return 1; return 1;
} }
lua_pushstring(L, diag.GetFilename().utf8_str()); lua_pushstring(L, diag.GetPath().utf8_str());
return 1; return 1;
} }