From ea9a92d9edb20e36451788fbea1714cd1f946821 Mon Sep 17 00:00:00 2001 From: n00b87 Date: Mon, 4 Aug 2025 16:50:40 -0500 Subject: [PATCH] Changed some error messages --- rcbasic_build/rcbasic_build.layout | 56 ++-- rcbasic_runtime/rc_gfx.h | 2 +- rcbasic_runtime/rc_media.h | 2 +- rcbasic_runtime/rc_os_defines.h | 6 + rcbasic_runtime/rc_steam_lib.h | 4 +- rcbasic_runtime/rcbasic_runtime.layout | 391 ++++++++++++------------- 6 files changed, 231 insertions(+), 230 deletions(-) diff --git a/rcbasic_build/rcbasic_build.layout b/rcbasic_build/rcbasic_build.layout index fae03e0..f98b87b 100755 --- a/rcbasic_build/rcbasic_build.layout +++ b/rcbasic_build/rcbasic_build.layout @@ -1,35 +1,12 @@ - - - - - - - - - - - - - - - - - - - + - - - - - @@ -40,19 +17,24 @@ + + + + + - + - + - + - + @@ -60,4 +42,22 @@ + + + + + + + + + + + + + + + + + + diff --git a/rcbasic_runtime/rc_gfx.h b/rcbasic_runtime/rc_gfx.h index ecf670b..ea182ef 100644 --- a/rcbasic_runtime/rc_gfx.h +++ b/rcbasic_runtime/rc_gfx.h @@ -330,7 +330,7 @@ bool rc_windowOpenEx(std::string title, int x, int y, int w, int h, uint32_t win if (!device) { - std::cout << "WindowOpen Error: Failed to Create Renderer" << std::endl; + std::cout << "OpenWindow Error: Failed to Create Renderer" << std::endl; return false; } diff --git a/rcbasic_runtime/rc_media.h b/rcbasic_runtime/rc_media.h index 61f125e..8f7610e 100755 --- a/rcbasic_runtime/rc_media.h +++ b/rcbasic_runtime/rc_media.h @@ -1484,7 +1484,7 @@ void rc_media_setWindowFullscreen(int win_num, int flag) } else if(SDL_GetWindowDisplayMode(rc_win[win_num], &rc_displayMode[win_num])<0) { - cout << "Something happend: " << SDL_GetError() << endl; + cout << "SetWindowFullscreen Error: " << SDL_GetError() << endl; #ifndef RC_MOBILE rc_fullscreen_mouse_scale_x[win_num] = 1; rc_fullscreen_mouse_scale_y[win_num] = 1; diff --git a/rcbasic_runtime/rc_os_defines.h b/rcbasic_runtime/rc_os_defines.h index 50e40c0..eae86e7 100755 --- a/rcbasic_runtime/rc_os_defines.h +++ b/rcbasic_runtime/rc_os_defines.h @@ -38,6 +38,12 @@ #define RC_DRIVER_GLES2 #endif +#ifndef RC_WEB +#if defined(RC_WINDOWS) || defined(RC_LINUX) || defined(RC_MAC) +#define RC_DESKTOP +#endif // defined +#endif // RC_WEB + //FOR TESTING PURPOSES #ifdef RC_TESTING #define RC_DRIVER_GLES2 diff --git a/rcbasic_runtime/rc_steam_lib.h b/rcbasic_runtime/rc_steam_lib.h index 9263da8..570c332 100755 --- a/rcbasic_runtime/rc_steam_lib.h +++ b/rcbasic_runtime/rc_steam_lib.h @@ -1,7 +1,7 @@ #ifndef RC_STEAM_LIB_H_INCLUDED #define RC_STEAM_LIB_H_INCLUDED -#if defined(RC_WINDOWS) || defined(RC_LINUX) || defined(RC_MAC) +#if defined(RC_DESKTOP) #include #include @@ -90,7 +90,7 @@ bool rc_steam_TriggerAchievement(std::string ach_name) return false; } -std::string rc_steam_getID() +std::string rc_steam_GetID() { return ""; } diff --git a/rcbasic_runtime/rcbasic_runtime.layout b/rcbasic_runtime/rcbasic_runtime.layout index f170079..64a8d88 100755 --- a/rcbasic_runtime/rcbasic_runtime.layout +++ b/rcbasic_runtime/rcbasic_runtime.layout @@ -2,24 +2,29 @@ - + - + - + - + - + - + - + - + + + + + + @@ -27,84 +32,14 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - + @@ -112,19 +47,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + + + + + + + + + + + @@ -132,14 +162,89 @@ + + + + + + + + + + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -150,119 +255,9 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +