mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +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
|
||||
/* 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"))
|
||||
fullscreen = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
#include "exception.h"
|
||||
#include "sharedstate.h"
|
||||
#include "graphics.h"
|
||||
#include "meow.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
|
|
@ -65,7 +66,7 @@ public:
|
|||
protected:
|
||||
void guardDisposed() const{
|
||||
if (isDisposed())
|
||||
throw Exception(Exception::RGSSError, "disposed %s", klassName());
|
||||
crash(Exception::RGSSError, "disposed %s", klassName());
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Reference in a new issue