Function.pm 421 B

12345678910111213141516171819
  1. package Logos::Generator::MobileSubstrate::Function;
  2. use strict;
  3. use parent qw(Logos::Generator::Base::Function);
  4. sub initializers {
  5. my $self = shift;
  6. my $function = shift;
  7. my $return = "";
  8. $return .= " MSHookFunction((void *)".$function->name;
  9. $return .= ", (void *)&".$self->newFunctionName($function);
  10. $return .= ", (void **)&".$self->originalFunctionName($function);
  11. $return .= ");";
  12. return $return;
  13. }
  14. 1;