Skip to content

Commit

Permalink
Update for Transformice 1.812
Browse files Browse the repository at this point in the history
  • Loading branch information
friedkeenan committed Apr 27, 2024
1 parent 4a851d6 commit 85969ee
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/leakers/TransformiceLeaker.as
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,20 @@ package leakers {
var document: * = this.document();

for each (var method: * in description.elements("method")) {
if (method.elements("parameter").length() != 0) {
if (method.attribute("returnType") != "flash.net::Socket") {
continue;
}

if (method.attribute("returnType") != "*") {
var parameters: * = method.elements("parameter");
if (parameters.length() != 1) {
continue;
}

try {
return document[method.attribute("name")](key);
} catch (error: Error) {
/* ... */
if (parameters[0].attribute("type") != "Number") {
continue;
}

return document[method.attribute("name")](key);
}

return null;
Expand Down

0 comments on commit 85969ee

Please sign in to comment.