Merge pull request #6158 from reswitched/master

[NSW] libtransistor updates
This commit is contained in:
Twinaphex 2018-01-23 05:41:08 +01:00 committed by GitHub
commit 9ba42837d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,9 +69,7 @@ static void *switch_init(const video_info_t *video,
RARCH_LOG("loading switch gfx driver, width: %d, height: %d\n", video->width, video->height);
if (libtransistor_context.magic != LIBTRANSISTOR_CONTEXT_MAGIC)
RARCH_LOG("running under CTU, skipping graphics init...\n");
else if(has_initialized)
if(has_initialized)
RARCH_LOG("global graphics were already initialized; skipping...\n");
else
{
@ -219,12 +217,6 @@ static bool switch_frame(void *data, const void *frame,
}
#endif
if (libtransistor_context.magic != LIBTRANSISTOR_CONTEXT_MAGIC)
{
RARCH_LOG("running under CTU; skipping frame\n");
return true;
}
if (msg != NULL && strlen(msg) > 0)
RARCH_LOG("message: %s\n", msg);