minor improvements to auth
This commit is contained in:
@@ -67,6 +67,7 @@ public:
|
||||
virtual CUtlString BuildPackage( AppleManifest_t manifest, CUtlString szManifestDir ) override;
|
||||
virtual CUtlString SignPackage( const char *szIpa, const char *szPassword ) override;
|
||||
};
|
||||
|
||||
CUtlString CAppleTool::BuildPackage( AppleManifest_t manifest, CUtlString szManifestDir )
|
||||
{
|
||||
CUtlVector<CUtlString> args = {};
|
||||
@@ -86,9 +87,13 @@ CUtlString CAppleTool::SignPackage( const char *szIpa, const char *szPassword )
|
||||
CreateInterfaceFn fnFactory = Sys_GetFactory("appleauth");
|
||||
if (fnFactory == NULL)
|
||||
Plat_FatalErrorFunc("Couldn't get xtool\n");
|
||||
|
||||
g_pAppleAuth = (IAppleAuth*)fnFactory(APPLE_AUTH_INTERFACE_VERSION, NULL);
|
||||
g_pAppleAuth->Init();
|
||||
g_pAppleAuth->SubmitLoginData("bratelllo@icloud.com", "");
|
||||
char *szGSAEmail = CommandLine()->ParamValue("-apple-login");
|
||||
char *szGSAPassword = CommandLine()->ParamValue("-apple-password");
|
||||
if (szGSAEmail && szGSAPassword)
|
||||
g_pAppleAuth->SubmitLoginData(szGSAEmail, szGSAPassword);
|
||||
return szIpa;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user