mirror of https://github.com/stenzek/duckstation
parent
ea65c0970c
commit
31a17cd3c6
@ -1,21 +0,0 @@
|
|||||||
#include "sdl_initializer.h"
|
|
||||||
#include "common/assert.h"
|
|
||||||
#include <SDL.h>
|
|
||||||
|
|
||||||
namespace FrontendCommon {
|
|
||||||
static bool s_sdl_initialized = false;
|
|
||||||
|
|
||||||
void EnsureSDLInitialized()
|
|
||||||
{
|
|
||||||
if (s_sdl_initialized)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (SDL_Init(0) < 0)
|
|
||||||
{
|
|
||||||
Panic("SDL_Init(0) failed");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
s_sdl_initialized = true;
|
|
||||||
}
|
|
||||||
} // namespace FrontendCommon
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
namespace FrontendCommon {
|
|
||||||
void EnsureSDLInitialized();
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue