mirror of https://github.com/encounter/SDL.git
Vita: Allow completely skipping pvr init to override apphint from app
This commit is contained in:
parent
4a9947336c
commit
ce177049f7
|
@ -39,9 +39,12 @@ VITA_GL_LoadLibrary(_THIS, const char *path)
|
||||||
{
|
{
|
||||||
PVRSRV_PSP2_APPHINT hint;
|
PVRSRV_PSP2_APPHINT hint;
|
||||||
char* override = SDL_getenv("VITA_MODULE_PATH");
|
char* override = SDL_getenv("VITA_MODULE_PATH");
|
||||||
|
char* skip_init = SDL_getenv("VITA_PVR_SKIP_INIT");
|
||||||
char* default_path = "app0:module";
|
char* default_path = "app0:module";
|
||||||
char target_path[MAX_PATH];
|
char target_path[MAX_PATH];
|
||||||
|
|
||||||
|
if (skip_init == NULL) // we don't care about actual value
|
||||||
|
{
|
||||||
if (override != NULL)
|
if (override != NULL)
|
||||||
{
|
{
|
||||||
default_path = override;
|
default_path = override;
|
||||||
|
@ -63,6 +66,7 @@ VITA_GL_LoadLibrary(_THIS, const char *path)
|
||||||
SDL_snprintf(hint.szWindowSystem, MAX_PATH, "%s/%s", default_path, "libpvrPSP2_WSEGL.suprx");
|
SDL_snprintf(hint.szWindowSystem, MAX_PATH, "%s/%s", default_path, "libpvrPSP2_WSEGL.suprx");
|
||||||
|
|
||||||
PVRSRVCreateVirtualAppHint(&hint);
|
PVRSRVCreateVirtualAppHint(&hint);
|
||||||
|
}
|
||||||
|
|
||||||
return SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType) 0, 0);
|
return SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType) 0, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue