mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Disable "open level folder" in Steam Big Picture mode
The environment variable SteamTenfoot corresponds with the game running in Steam Big Picture mode or SteamOS if it is defined. There's a certification process for both full controller support and Big Picture mode, and being able to launch a file window in Big Picture mode is an instant cert failure.
This commit is contained in:
parent
bc9013c228
commit
ca0e9ec963
2 changed files with 3 additions and 2 deletions
|
@ -484,7 +484,7 @@ bool FILESYSTEM_openDirectory(const char *dname)
|
|||
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__HAIKU__)
|
||||
bool FILESYSTEM_openDirectoryEnabled()
|
||||
{
|
||||
return true;
|
||||
return std::getenv("SteamTenfoot") == NULL;
|
||||
}
|
||||
#ifdef __linux__
|
||||
const char* open_cmd = "xdg-open";
|
||||
|
|
|
@ -287,7 +287,8 @@ void menuactionpress()
|
|||
#endif
|
||||
case OFFSET+2:
|
||||
//"OPENFOLDERHOOK"
|
||||
if (FILESYSTEM_openDirectory(FILESYSTEM_getUserLevelDirectory()))
|
||||
if (FILESYSTEM_openDirectoryEnabled()
|
||||
&& FILESYSTEM_openDirectory(FILESYSTEM_getUserLevelDirectory()))
|
||||
{
|
||||
music.playef(11);
|
||||
SDL_MinimizeWindow(graphics.screenbuffer->m_window);
|
||||
|
|
Loading…
Reference in a new issue