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:
Niels Martin Hansen 2007-04-29 00:59:19 +00:00
parent 2940fa93d1
commit b1be9b3483
3 changed files with 14 additions and 1 deletions

View File

@ -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()

View File

@ -302,6 +302,9 @@ namespace Automation4 {
name = GetPrettyFilename();
description = e;
}
catch (Script *s) {
throw;
}
catch (...) {
Destroy();
loaded = false;

View File

@ -846,7 +846,8 @@ namespace Automation4 {
brackets_open = false;
}
break;}
break;
}
}