Report S3TC non-support with an in-game GUI message box.

Fixes #313.

This was SVN commit r7390.
This commit is contained in:
Ykkrosh
2010-03-23 22:45:07 +00:00
parent 600ab80a79
commit 00e18e4ea8
8 changed files with 86 additions and 19 deletions
@@ -447,6 +447,14 @@ bool ScriptInterface::Eval_(const char* code, jsval& rval)
return ok ? true : false;
}
bool ScriptInterface::Eval_(const wchar_t* code, jsval& rval)
{
utf16string codeUtf16(code, code+wcslen(code));
JSBool ok = JS_EvaluateUCScript(m->m_cx, m->m_glob, (const jschar*)codeUtf16.c_str(), (uintN)codeUtf16.length(), "(eval)", 1, &rval);
return ok ? true : false;
}
void ScriptInterface::ReportError(const char* msg)
{
// JS_ReportError by itself doesn't seem to set a JS-style exception, and so