From 9a85ba7b8279802f4c4fcec6b15ffa34fff1cae9 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Fri, 17 Aug 2007 02:16:41 +0000 Subject: [PATCH] No longer allow loading Auto3 scripts with .lua extension. Originally committed to SVN as r1501. --- aegisub/auto4_lua.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/aegisub/auto4_lua.cpp b/aegisub/auto4_lua.cpp index d1bc5985d..ebcd18b07 100644 --- a/aegisub/auto4_lua.cpp +++ b/aegisub/auto4_lua.cpp @@ -201,11 +201,7 @@ namespace Automation4 { lua_pop(L, 1); // just to avoid tripping the stackcheck in debug // So this is an auto3 script... // Throw it as an exception, the script factory manager will catch this and use the auto3 script instead of this script object -#if WITH_AUTO3 == 1 - throw new Auto3Script(GetFilename()); -#else - throw _T("Attempted loading an Automation 3 script, but Automation 3 support is not available"); -#endif + throw _T("Attempted to load an Automation 3 script as an Automation 4 Lua script. Automation 3 is no longer supported."); } } lua_getglobal(L, "script_name");