diff --git a/src/Components/Modules/Zones.cpp b/src/Components/Modules/Zones.cpp index d5188da4..7afeecb4 100644 --- a/src/Components/Modules/Zones.cpp +++ b/src/Components/Modules/Zones.cpp @@ -2908,23 +2908,14 @@ namespace Components // check if file should be skipped auto skipFile = false; - if (!strncmp(&file[strlen(file) - 4], ".iwi", 4)) - { - if (readSize > 3 && !memcmp(&fileBuffer[0], "IWi", 3)) - { - skipFile = true; - } - } - else if (strstr(file, "weapons")) + + if (strlen(file) > 5 && ((strncmp(&file[strlen(file) - 4], ".iwi", 4) != 0))) { skipFile = true; } - else + else if (readSize >= 3 && (!memcmp(&fileBuffer[0], "IWi", 3))) { - if (readSize > 8 && *reinterpret_cast(&fileBuffer[4]) == 0xe9c9c447) - { - skipFile = true; - } + skipFile = true; } // if the header seems encrypted... @@ -3511,4 +3502,4 @@ namespace Components } } -#pragma optimize( "", on ) +#pragma optimize( "", on ) \ No newline at end of file diff --git a/src/Steam/Proxy.cpp b/src/Steam/Proxy.cpp index 8ab6a4fb..499bfb25 100644 --- a/src/Steam/Proxy.cpp +++ b/src/Steam/Proxy.cpp @@ -175,11 +175,11 @@ namespace Steam size_t expectedParams = Proxy::ClientUser.paramSize("SpawnProcess"); if (expectedParams == 40) // Release { - Proxy::ClientUser.invoke("SpawnProcess", ourPath, cmdline.data(), 0, ourDirectory, gameID.bits, mod.data(), Proxy::AppId, 0, 0); + Proxy::ClientUser.invoke("SpawnProcess", ourPath, cmdline.data(), ourDirectory, gameID.bits, mod.data(), Proxy::AppId, 0, 0); } else if (expectedParams == 36) // Beta { - Proxy::ClientUser.invoke("SpawnProcess", ourPath, cmdline.data(), 0, ourDirectory, gameID.bits, mod.data(), 0, 0); + Proxy::ClientUser.invoke("SpawnProcess", ourPath, cmdline.data(), ourDirectory, gameID.bits, mod.data(), Proxy::AppId, 0, 0); } else if (expectedParams == 48) // Legacy, expects VAC blob {