1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 18:18:00 +02:00

Initial checkin

This commit is contained in:
Brian Fiete 2019-08-23 11:56:54 -07:00
parent c74712dad9
commit 078564ac9e
3242 changed files with 1616395 additions and 0 deletions

View file

@ -0,0 +1,26 @@
#include "HeadlessApp.h"
#include "platform/PlatformHelper.h"
USING_NS_BF;
void HeadlessApp::Init()
{
mRunning = true;
Beefy::String exePath;
BfpGetStrHelper(exePath, [](char* outStr, int* inOutStrSize, BfpResult* result)
{
BfpSystem_GetExecutablePath(outStr, inOutStrSize, (BfpSystemResult*)result);
});
mInstallDir = GetFileDir(exePath) + "/";
}
void HeadlessApp::Run()
{
while (mRunning)
{
BfpThread_Sleep((uint32)(1000 / mRefreshRate));
Process();
}
}