mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 23:06:18 +00:00
disposable.h
This commit is contained in:
parent
f217315d34
commit
860b9b25e5
2 changed files with 3 additions and 2 deletions
|
|
@ -184,7 +184,7 @@ void Config::read(int argc, char *argv[]){
|
||||||
|
|
||||||
#ifdef STEAM
|
#ifdef STEAM
|
||||||
/* Override fullscreen config if Big Picture */
|
/* Override fullscreen config if Big Picture */
|
||||||
if (const char *env = std::getenv("SteamTenfoot")){
|
if (const char *env = SDL_getenv("SteamTenfoot")){
|
||||||
if (!SDL_strcmp(env, "1"))
|
if (!SDL_strcmp(env, "1"))
|
||||||
fullscreen = true;
|
fullscreen = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
#include "exception.h"
|
#include "exception.h"
|
||||||
#include "sharedstate.h"
|
#include "sharedstate.h"
|
||||||
#include "graphics.h"
|
#include "graphics.h"
|
||||||
|
#include "meow.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
@ -65,7 +66,7 @@ public:
|
||||||
protected:
|
protected:
|
||||||
void guardDisposed() const{
|
void guardDisposed() const{
|
||||||
if (isDisposed())
|
if (isDisposed())
|
||||||
throw Exception(Exception::RGSSError, "disposed %s", klassName());
|
crash(Exception::RGSSError, "disposed %s", klassName());
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue