Skip to content

Commit f615e24

Browse files
author
Chris Warren-Smith
committed
RAYLIB: rename UI detection to sblib_has_window_ui()
1 parent 8c4a66f commit f615e24

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int sblib_init(const char *sourceFile);
3232
*
3333
* @return non-zero on success
3434
*/
35-
int sblib_is_ide_compatible(void);
35+
int sblib_has_window_ui(void);
3636

3737
/**
3838
* @ingroup modstd

raylib/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,7 +2097,7 @@ SBLIB_API void sblib_close(void) {
20972097
}
20982098
}
20992099

2100-
SBLIB_API int sblib_is_ide_compatible(void) {
2101-
// when using the SQL build, programs must be run via a separate thread
2102-
return 0;
2100+
SBLIB_API int sblib_has_window_ui(void) {
2101+
// raylib module creates a UI in a new window
2102+
return 1;
21032103
}

0 commit comments

Comments
 (0)