Flash bytecode to Lua

This commit is contained in:
Robert Beckebans 2015-06-06 16:28:43 +02:00
parent 71e339a83b
commit 21de748801
7 changed files with 391 additions and 119 deletions

View file

@ -292,7 +292,11 @@ idStr idSWFScriptVar::ToString() const
return idStrId( value.i ).GetLocalizedString();
case SWF_VAR_STRING:
return *value.string;
// RB begin
case SWF_VAR_RESULT:
return *value.string;
// RB end
case SWF_VAR_FLOAT:
return va( "%g", value.f );
case SWF_VAR_BOOL:
@ -521,7 +525,11 @@ const char* idSWFScriptVar::TypeOf() const
return "stringid";
case SWF_VAR_STRING:
return "string";
// RB begin
case SWF_VAR_RESULT:
return "result";
// RB end
case SWF_VAR_FLOAT:
return "number";
case SWF_VAR_BOOL: