Improved Vertex Shader Decompiler

- Fixed condition register selection
- Implemented LIT
- Fixed RCP
This commit is contained in:
DH 2014-06-08 17:52:35 +03:00
parent 7bb966ba82
commit 3c8815cc06
9 changed files with 369 additions and 223 deletions

View file

@ -116,7 +116,7 @@ namespace fmt{
if (src.substr(pos, comp_length) == list[i].first)
{
src = (pos ? src.substr(0, pos) + list[i].second : list[i].second) + std::string(src.c_str() + pos + comp_length);
pos += list[i].second.length();
pos += list[i].second.length() - 1;
break;
}
}
@ -140,7 +140,7 @@ namespace fmt{
if (src.substr(pos, comp_length) == list[i].first)
{
src = (pos ? src.substr(0, pos) + list[i].second() : list[i].second()) + std::string(src.c_str() + pos + comp_length);
pos += list[i].second().length();
pos += list[i].second().length() - 1;
break;
}
}