1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-24 13:38:29 +02: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:
Misa 2020-04-18 08:06:06 -07:00 committed by Ethan Lee
parent bc9013c228
commit ca0e9ec963
2 changed files with 3 additions and 2 deletions

View File

@ -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";

View File

@ -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);