mirror of https://github.com/odrling/Aegisub
parent
5108f81cc1
commit
6636b56a52
|
@ -391,12 +391,12 @@ namespace Automation4 {
|
|||
// absolute path, do nothing
|
||||
}
|
||||
if (!fname.IsOk() || !fname.FileExists()) {
|
||||
lua_pushfstring(L, "Could not find Lua script for inclusion: %s", fnames.mb_str(wxConvUTF8));
|
||||
lua_pushfstring(L, "Could not find Lua script for inclusion: %s", fnames.mb_str(wxConvUTF8).data());
|
||||
lua_error(L);
|
||||
}
|
||||
|
||||
if (luaL_loadfile(L, fname.GetFullPath().mb_str(wxConvUTF8))) {
|
||||
lua_pushfstring(L, "An error occurred loading the Lua script file \"%s\":\n\n%s", fname.GetFullPath().mb_str(wxConvUTF8), lua_tostring(L, -1));
|
||||
lua_pushfstring(L, "An error occurred loading the Lua script file \"%s\":\n\n%s", fname.GetFullPath().mb_str(wxConvUTF8).data(), lua_tostring(L, -1));
|
||||
lua_error(L);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -400,7 +400,7 @@ namespace Automation4 {
|
|||
result = dia;
|
||||
|
||||
} else {
|
||||
lua_pushfstring(L, "Found line with unknown class: %s", lclass.mb_str(wxConvUTF8));
|
||||
lua_pushfstring(L, "Found line with unknown class: %s", lclass.mb_str(wxConvUTF8).data());
|
||||
lua_error(L);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue