Added Execute function

This commit is contained in:
Rabia Alhaffar 2020-06-12 20:56:01 +03:00 committed by GitHub
parent c9616a63cf
commit 37ce63878e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -1207,6 +1207,15 @@ const char *GetOS(void)
#endif #endif
} }
void Execute(const char *command)
{
#ifdef __ANDROID__ || TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR || TARGET_OS_EMBEDDED
return NULL;
#else
system(command);
#endif
}
// Show mouse cursor // Show mouse cursor
void ShowCursor(void) void ShowCursor(void)
{ {

View File

@ -899,6 +899,7 @@ RLAPI const char *GetMonitorName(int monitor); // Get the hum
RLAPI const char *GetClipboardText(void); // Get clipboard text content RLAPI const char *GetClipboardText(void); // Get clipboard text content
RLAPI void SetClipboardText(const char *text); // Set clipboard text content RLAPI void SetClipboardText(const char *text); // Set clipboard text content
RLAPI const char *GetOS(void); // Get current operating system RLAPI const char *GetOS(void); // Get current operating system
RLAPI void Execute(const char *command); // Executes a command from batch or shell
// Cursor-related functions // Cursor-related functions
RLAPI void ShowCursor(void); // Shows cursor RLAPI void ShowCursor(void); // Shows cursor