mirror of https://github.com/odrling/Aegisub
Intentionally break loading of Auto3 scripts to make people ask less. Auto3 scripts will for now always fail loading, displaying a message that they are not supported.
Originally committed to SVN as r1152.
This commit is contained in:
parent
2940fa93d1
commit
b1be9b3483
|
@ -1320,6 +1320,14 @@ continue_invalid_option:
|
|||
{
|
||||
Destroy();
|
||||
|
||||
#if 1
|
||||
// HACK: Prevent auto3 scripts from ever loading
|
||||
// This should be removed when things have been fixed
|
||||
loaded = false;
|
||||
name = GetFilename();
|
||||
description = _T("Automation 3 scripts do currently not work in this version of Aegisub. Please use version 1.10 if you need to run this script.");
|
||||
#else
|
||||
|
||||
loaded = true;
|
||||
|
||||
try {
|
||||
|
@ -1415,6 +1423,7 @@ continue_invalid_option:
|
|||
loaded = false;
|
||||
throw;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void Auto3Script::Destroy()
|
||||
|
|
|
@ -302,6 +302,9 @@ namespace Automation4 {
|
|||
name = GetPrettyFilename();
|
||||
description = e;
|
||||
}
|
||||
catch (Script *s) {
|
||||
throw;
|
||||
}
|
||||
catch (...) {
|
||||
Destroy();
|
||||
loaded = false;
|
||||
|
|
|
@ -846,7 +846,8 @@ namespace Automation4 {
|
|||
brackets_open = false;
|
||||
}
|
||||
|
||||
break;}
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue