Skip to content

Commit

Permalink
fix getarraymatchingstructs syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitalita committed Sep 11, 2023
1 parent 2881df1 commit 24a96b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Decompiler/PscCoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,9 +589,6 @@ void Decompiler::PscCoder::writeFunction(int i, const Pex::Function &function, c
write(stream.str());
writeDocString(i, function);
} else {
if (functionName == "TaskmasterPossibleRestore"){
int i = 0; // TODO: REMOVE THIS HACK
}
auto decomp = PscDecompiler(function, object, m_CommentAsm, m_TraceDecompilation, m_DumpTree,
m_OutputDir);
if (decomp.isDebugFunction()) {
Expand Down
4 changes: 2 additions & 2 deletions Decompiler/PscDecompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Decompiler::PscDecompiler::PscDecompiler( const Pex::Function &function,
m_TempTable.push_back("removelast");
m_TempTable.push_back("remove");
m_TempTable.push_back("clear");
m_TempTable.push_back("getallmatchingstructs");
m_TempTable.push_back("ArrayGetMatchingStructs");
m_TempTable.push_back("Lock");
m_TempTable.push_back("Unlock");
m_TempTable.push_back("TryLock");
Expand Down Expand Up @@ -690,7 +690,7 @@ void Decompiler::PscDecompiler::createNodesForBlocks(size_t block)
}
case Pex::OpCode::ARRAY_GETALLMATCHINGSTRUCTS:
{
auto callNode = std::make_shared<Node::CallMethod>(ip, args[1].getId(), fromValue(ip, args[0]), m_TempTable.findIdentifier("getallmatchingstructs"));
auto callNode = std::make_shared<Node::CallMethod>(ip, args[1].getId(), fromValue(ip, args[0]), m_TempTable.findIdentifier("ArrayGetMatchingStructs"));
auto argNode = callNode->getParameters();
*argNode << fromValue(ip, args[2]);
*argNode << fromValue(ip, args[3]);
Expand Down

0 comments on commit 24a96b9

Please sign in to comment.