anisette is done, how to sign?

This commit is contained in:
2026-01-07 18:23:30 +02:00
parent 2b91057589
commit defb60ac53
32 changed files with 455 additions and 61 deletions

View File

@@ -7,6 +7,7 @@
enum EAppleAuthStatus
{
APPLE_AUTH_FAILURE,
APPLE_AUTH_SUCCESS,
APPLE_AUTH_NEED_2FA,
APPLE_AUTH_NEED_SMS_2FA,

View File

@@ -0,0 +1,30 @@
//================= Copyright kotofyt, All rights reserved ==================//
// Purpose: Command line handler for argc and argv. It also allows to find
// parameters and push your own.
//===========================================================================//
#ifndef TIER0_COMMANDLINE_H
#define TIER0_COMMANDLINE_H
#include "tier0/platform.h"
abstract_class ICommandLine
{
public:
virtual void CreateCommandLine( int argc, char **argv ) = 0;
virtual bool CheckParam( const char *psz ) = 0;
virtual char *ParamValue( const char* psz, const char *szDefaultValue = 0 ) = 0;
virtual void AddParam( char *psz ) = 0;
virtual void RemoveParam( char *psz ) = 0;
virtual int ParamCount() = 0;
virtual int FindParam( const char *psz ) = 0;
virtual const char *GetParam(int nIndex) = 0;
};
ICommandLine *CommandLine();
#endif

10
public/tier0/rand.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef TIER0_RAND_H
#define TIER0_RAND_H
#include "tier0/platform.h"
PLATFORM_INTERFACE void Plat_InitRandom();
PLATFORM_INTERFACE void Plat_ShutdownRandom();
PLATFORM_INTERFACE void Plat_URandom( size_t uBufferSize, uint8_t *szBuffer );
#endif

View File

@@ -26,6 +26,7 @@ public:
void RemoveAt( size_t nPosition, size_t nCount );
CUtlString GetFileName();
CUtlString GetFileExtension();
CUtlString GetDirectory();
CUtlString RemoveHeadFile();
@@ -126,13 +127,35 @@ inline CUtlString CUtlString::GetFileName()
while (pLast != m_data.GetData())
{
if (*pLast=='/')
{
pLast++;
break;
}
pLast--;
}
return pLast;
}
inline CUtlString CUtlString::GetFileExtension()
{
CUtlString szFileName = GetString();
char *pLast = &m_data[GetLenght()-1];
while (pLast != m_data.GetData())
{
if (*pLast=='.')
break;
if (*pLast=='/')
return NULL;
pLast--;
}
return pLast+1;
}
inline CUtlString CUtlString::GetDirectory()
{
if (GetLenght() == 0)