mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 18:18:00 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
26
BeefySysLib/HeadlessApp.cpp
Normal file
26
BeefySysLib/HeadlessApp.cpp
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue