Closed Yarukon closed 3 weeks ago
I believe the offset should be 0 on linux and 2 on windows, this is because the first 3 functions in IEntityResourceManifest are all overloads of AddResource:
class IEntityResourceManifest
{
public:
virtual void AddResource(const char*) = 0;
virtual void AddResource(const char*, void*) = 0;
virtual void AddResource(const char*, void*, void*, void*) = 0;
virtual void unk_04() = 0;
virtual void unk_05() = 0;
virtual void unk_06() = 0;
virtual void unk_07() = 0;
virtual void unk_08() = 0;
virtual void unk_09() = 0;
virtual void unk_10() = 0;
};
So what you want to use is the first one, or offset 0. But MSVC flips overload ordering so it becomes the third function, or offset 2.
I believe the offset should be 0 on linux and 2 on windows, this is because the first 3 functions in IEntityResourceManifest are all overloads of AddResource:
class IEntityResourceManifest { public: virtual void AddResource(const char*) = 0; virtual void AddResource(const char*, void*) = 0; virtual void AddResource(const char*, void*, void*, void*) = 0; virtual void unk_04() = 0; virtual void unk_05() = 0; virtual void unk_06() = 0; virtual void unk_07() = 0; virtual void unk_08() = 0; virtual void unk_09() = 0; virtual void unk_10() = 0; };
So what you want to use is the first one, or offset 0. But MSVC flips overload ordering so it becomes the third function, or offset 2.
changed to 0
Tested. This can be merged.
@roflmuffin
need those who use linux to test this to see if the crash still occur (i dont have linux enviroment to test this rn) how to test: try precache something and then change map