1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09: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:
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__) #elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__HAIKU__)
bool FILESYSTEM_openDirectoryEnabled() bool FILESYSTEM_openDirectoryEnabled()
{ {
return true; return std::getenv("SteamTenfoot") == NULL;
} }
#ifdef __linux__ #ifdef __linux__
const char* open_cmd = "xdg-open"; const char* open_cmd = "xdg-open";

View file

@ -287,7 +287,8 @@ void menuactionpress()
#endif #endif
case OFFSET+2: case OFFSET+2:
//"OPENFOLDERHOOK" //"OPENFOLDERHOOK"
if (FILESYSTEM_openDirectory(FILESYSTEM_getUserLevelDirectory())) if (FILESYSTEM_openDirectoryEnabled()
&& FILESYSTEM_openDirectory(FILESYSTEM_getUserLevelDirectory()))
{ {
music.playef(11); music.playef(11);
SDL_MinimizeWindow(graphics.screenbuffer->m_window); SDL_MinimizeWindow(graphics.screenbuffer->m_window);