fix ubuntu build

This commit is contained in:
Martin Michelsen
2019-10-16 17:49:57 -07:00
parent 9dbe44b5b6
commit 15fb00f7df
16 changed files with 52 additions and 26 deletions
+2 -6
View File
@@ -299,11 +299,9 @@ void PSOBBEncryption::decrypt(void* vdata, size_t size) {
size >>= 3;
uint32_t* data = reinterpret_cast<uint32_t*>(vdata);
uint32_t eax, ecx, edx, ebx, ebp, esi, edi;
uint32_t edx, ebx, ebp, esi, edi;
edx = 0;
ecx = 0;
eax = 0;
while (edx < size) {
ebx = data[edx];
ebx = ebx ^ this->stream[5];
@@ -337,11 +335,9 @@ void PSOBBEncryption::encrypt(void* vdata, size_t size) {
size >>= 3;
uint8_t* data = reinterpret_cast<uint8_t*>(vdata);
uint32_t eax, ecx, edx, ebx, ebp, esi, edi;
uint32_t edx, ebx, ebp, esi, edi;
edx = 0;
ecx = 0;
eax = 0;
while (edx < size) {
ebx = data[edx];
ebx = ebx ^ this->stream[0];