Add Sys_OpenFolderInFileManager

This commit is contained in:
Tim Angus committed 2025-10-11 13:57:29 +01:00
1 parent 5c242be241
commit 411f5a6924
5 files changed
+49 -1

No files matched your search

+10
View File
@@ -915,3 +915,13 @@ Check if filename should be allowed to be loaded as a DLL.
qboolean Sys_DllExtension( const char *name ) {
return COM_CompareExtension( name, DLL_EXT );
}
/*
==============
Sys_OpenFolderInPlatformFileManager
==============
*/
qboolean Sys_OpenFolderInPlatformFileManager( const char *path )
{
return ShellExecute( NULL, "explore", path, NULL, NULL, SW_SHOWDEFAULT ) > (HINSTANCE)32;
}