Add API for saving driver prefs. Save fullscreen state in D3D11 driver.

This commit is contained in:
elasota
2020-07-03 02:46:43 -04:00
parent ed9e0fec97
commit 05604e5604
23 changed files with 542 additions and 51 deletions

View File

@@ -1,24 +1,24 @@
#include "PLApplication.h"
#include "PLApplication.h"
#include "PLCore.h"
#include "HostSystemServices.h"
#include <string.h>
#include <assert.h>
namespace PortabilityLayer
{
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)
#include "HostSystemServices.h"
#include <string.h>
#include <assert.h>
namespace PortabilityLayer
{
PortabilityLayer::HostSystemServices::GetInstance()->Beep();
}
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)
{
PortabilityLayer::HostSystemServices::GetInstance()->Beep();
}