Files
Aerofoil/PortabilityLayer/PLApplication.cpp

27 lines
435 B
C++
Raw Normal View History

#include "IGpSystemServices.h"
#include "PLApplication.h"
2020-01-04 01:19:01 -05:00
#include "PLCore.h"
#include "PLDrivers.h"
#include <string.h>
#include <assert.h>
namespace PortabilityLayer
2020-01-04 01:19:01 -05:00
{
namespace Utils
{
void MakePStr(unsigned char *dest, size_t sz, const char *src)
{
assert(sz <= 255);
dest[0] = static_cast<uint8_t>(sz);
memcpy(dest + 1, src, sz);
}
}
}
void SysBeep(int duration)
{
PLDrivers::GetSystemServices()->Beep();
}