fix PSO PC encryption

This commit is contained in:
Martin Michelsen
2022-04-01 21:24:42 -07:00
parent 3f5f2fc61d
commit 46add5fb74
2 changed files with 13 additions and 7 deletions
+2 -4
View File
@@ -30,8 +30,7 @@ void PSOPCEncryption::update_stream() {
eax = edi;
while (edx > 0) {
esi = this->stream[eax + 0x1F];
ebp = this->stream[eax];
ebp = ebp - esi;
ebp = this->stream[eax] - esi;
this->stream[eax] = ebp;
eax++;
edx--;
@@ -41,8 +40,7 @@ void PSOPCEncryption::update_stream() {
eax = edi;
while (edx > 0) {
esi = this->stream[eax - 0x18];
ebp = this->stream[eax];
ebp = ebp - esi;
ebp = this->stream[eax] - esi;
this->stream[eax] = ebp;
eax++;
edx--;