forked from zombieb/undead-universal-patch-il2cpp
Move Galvanic support to different namespace
This commit is contained in:
@@ -79,11 +79,11 @@ namespace undead_universal_patch_il2cpp.Patches
|
||||
{
|
||||
// refresh the token if it expired
|
||||
// this is somewhat inefficient, but we don't hook into many requests (see below) so it should be fine
|
||||
GalvanicWebAuth.TokenExpiry();
|
||||
Galvanic.GalvanicWebAuth.TokenExpiry();
|
||||
|
||||
Type httpRequestType = request.GetType();
|
||||
MethodInfo addHeaderMethod = httpRequestType.GetMethod("AddHeader");
|
||||
addHeaderMethod.Invoke(request, ["GalvanicAuth", GalvanicWebAuth.Token]);
|
||||
addHeaderMethod.Invoke(request, ["GalvanicAuth", Galvanic.GalvanicWebAuth.Token]);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user