diff options
| author | Ray <[email protected]> | 2021-12-06 12:02:57 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-12-06 12:02:57 +0100 |
| commit | c4a62ca1e400a8660e6f779dac151dbe9bfd5fdc (patch) | |
| tree | 42279b1936f5186ac7d5826190f26eb34bfda987 | |
| parent | 895f5ddd98ee3bc413099891c079c230eb1f9c8a (diff) | |
| download | raylib-c4a62ca1e400a8660e6f779dac151dbe9bfd5fdc.tar.gz raylib-c4a62ca1e400a8660e6f779dac151dbe9bfd5fdc.zip | |
ADDED: Modules info at initialization
| -rw-r--r-- | src/rcore.c | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c index 946ed0c0..ba64d1db 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -701,6 +701,35 @@ struct android_app *GetAndroidApp(void) void InitWindow(int width, int height, const char *title) { TRACELOG(LOG_INFO, "Initializing raylib %s", RAYLIB_VERSION); + + TRACELOG(LOG_INFO, "Supported raylib modules:"); + TRACELOG(LOG_INFO, " > rcore:..... loaded (mandatory)"); + TRACELOG(LOG_INFO, " > rlgl:...... loaded (mandatory)"); +#if defined(SUPPORT_MODULE_RSHAPES) + TRACELOG(LOG_INFO, " > rshapes:... loaded (optional)"); +#else + TRACELOG(LOG_INFO, " > rshapes:... not loaded (optional)"); +#endif +#if defined(SUPPORT_MODULE_RTEXTURES) + TRACELOG(LOG_INFO, " > rtextures:. loaded (optional)"); +#else + TRACELOG(LOG_INFO, " > rtextures:. not loaded (optional)"); +#endif +#if defined(SUPPORT_MODULE_RTEXT) + TRACELOG(LOG_INFO, " > rtext:..... loaded (optional)"); +#else + TRACELOG(LOG_INFO, " > rtext:..... not loaded (optional)"); +#endif +#if defined(SUPPORT_MODULE_RMODELS) + TRACELOG(LOG_INFO, " > rmodels:... loaded (optional)"); +#else + TRACELOG(LOG_INFO, " > rmodels:... not loaded (optional)"); +#endif +#if defined(SUPPORT_MODULE_RAUDIO) + TRACELOG(LOG_INFO, " > raudio:.... loaded (optional)"); +#else + TRACELOG(LOG_INFO, " > raudio:.... not loaded (optional)"); +#endif if ((title != NULL) && (title[0] != 0)) CORE.Window.title = title; @@ -3285,7 +3314,8 @@ void OpenURL(const char *url) #if defined(__APPLE__) sprintf(cmd, "open '%s'", url); #endif - system(cmd); + int result = system(cmd); + if (result == -1) TRACELOG(LOG_WARNING, "OpenURL() child process could bot be created"); RL_FREE(cmd); #endif #if defined(PLATFORM_WEB) |
