fixes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "appletool.h"
|
||||
#include "helper.h"
|
||||
#include "runner.h"
|
||||
#include "appleauth/iauth.h"
|
||||
|
||||
void AppleManifest_t::SetPackageID( CUtlString szPackageID )
|
||||
{
|
||||
@@ -79,14 +80,14 @@ CUtlString CAppleTool::BuildPackage( AppleManifest_t manifest, CUtlString szMani
|
||||
return CUtlString("../%s.ipa", manifest.m_szPackageName.GetString());
|
||||
}
|
||||
|
||||
static IAppleDaemon *appledaemon;
|
||||
static IAppleAuth *g_pAppleAuth;
|
||||
CUtlString CAppleTool::SignPackage( const char *szIpa, const char *szPassword )
|
||||
{
|
||||
CreateInterfaceFn fnFactory = Sys_GetFactory("xtool");
|
||||
CreateInterfaceFn fnFactory = Sys_GetFactory("appleauth");
|
||||
if (fnFactory == NULL)
|
||||
Plat_FatalErrorFunc("Couldn't get xtool\n");
|
||||
appledaemon = (IAppleDaemon*)fnFactory(APPLE_DAEMON_INTERFACE_VERSION, NULL);
|
||||
appledaemon->SignPackage(szIpa);
|
||||
g_pAppleAuth = (IAppleAuth*)fnFactory(APPLE_AUTH_INTERFACE_VERSION, NULL);
|
||||
g_pAppleAuth->Init();
|
||||
return szIpa;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user