Add switch support (BROKEN) and TessesFrameworkFeatures.h and CertificateChain.hpp will be installed properly

This commit is contained in:
2025-04-14 06:30:45 -05:00
parent e8ff8d5bc1
commit 6bc9d0e76c
14 changed files with 385 additions and 44 deletions

View File

@ -30,9 +30,24 @@
namespace Tesses::Framework
{
void TF_Init();
void TF_InitWithConsole();
void TF_ConnectToSelf(uint16_t port);
void TF_RunEventLoop();
void TF_RunEventLoopItteration();
bool TF_IsRunning();
void TF_Quit();
bool TF_GetConsoleEventsEnabled();
void TF_SetConsoleEventsEnabled(bool flag);
void TF_InitConsole();
#define TESSESFRAMEWORK_LOGTOFILE
#if defined(TESSESFRAMEWORK_LOGTOFILE)
void TF_Log(std::string dataToLog);
#endif
#if defined(TESSESFRAMEWORK_LOGTOFILE)
#define TF_LOG(log) Tesses::Framework::TF_Log(log)
#else
#define TF_LOG(log)
#endif
}

View File

@ -15,6 +15,7 @@ namespace Tesses::Framework::Streams
TcpServer(std::string ip, uint16_t port, int32_t backlog);
NetworkStream* GetStream(std::string& ip, uint16_t& port);
~TcpServer();
bool IsValid();
void Close();
};
class NetworkStream : public Stream {

View File

@ -4,6 +4,7 @@
#include <windows.h>
#elif defined(GEKKO)
#include <ogc/lwp.h>
#elif defined(__SWITCH__)
#else
#include <pthread.h>
#endif