Ray
0c33c603f4
REVIEWED: `EXTERNAL_CONFIG_FLAGS` usage, check moved to `config.h`
Due to `utils` module removal, `EXTERNAL_CONFIG_FLAGS` was not working, so the system was redesigned.
This change is independent of #4411
pirms 3 nedēļām
Ray
dd7a1948f1
WARNING: REDESIGN: REMOVED: `utils` module, functionality moved to `rcore` module: logging and file-system #4551
[utils] was created long time ago, when [rcore] contained all the platforms code, the purpose of the file was exposing basic filesystem functionality across modules and also logging mechanism but many things have changed since then and there is no need to keep using this module.
- Logging system has been move to [rcore] module and macros are exposed through `config.h` to other modules
- File system functionality has also been centralized in [rcore] module that along the years it was already adding more and more file-system functions, now they are all in the same module
- Android specific code has been moved to `rcore_android.c`, it had no sense to have specific platform code in `utils`, [rcore] is responsible of all platform code.
pirms 3 nedēļām
Ray
3678c2d157
REMOVE: `TRACELOGD()`, hardly ever used
pirms 3 nedēļām
Ray
416af51a93
Update year to 2026
pirms 1 mēnesi
Ray
c07d075a63
REVIEWED: Security checks formatting and comments
pirms 1 mēnesi
GlitchLens
5a3391fdce
[rtext] Fix multiple security vulnerabilities in font loading ( #5433 , #5434 , #5436 ) ( #5450 )
pirms 1 mēnesi
Ray
909f040dc5
Remove trailing spaces
pirms 1 mēnesi
Ray
95f72b162b
REVIEWED: `TextReplace()`, revert breaking change, needs to be reviewed again... -WIP-
pirms 1 mēnesi
Ray
20dd4641c8
REVIEWED: Potential security concerns while copying unbounded text data between strings
Note that issue has been reported by CodeQL static analysis system
pirms 1 mēnesi
Kivi
ddb827fb6f
Fixed LoadCodepoints declaring a new local variable shadowing `codpoints` ( #5430 )
pirms 1 mēnesi
Ray
e4baf682ab
Update rtext.c
pirms 1 mēnesi
Ray
5025009860
REVIEWED: Make sure all variables are initialized on definition, prioritize one line per variable definitions
pirms 1 mēnesi
Ray
c96669e123
REVIEWED: Webpage reference comments starting with `REF:`, more consistent with `TODO:` and `NOTE:` comments
pirms 1 mēnesi
Ray
b465b4e2ea
RENAMED: Variable names for consistency, `textLength` (length in bytes) vs `textSize` (measure in pixels)
pirms 1 mēnesi
Ray
2853b28d6d
REVIEWED: Avoid program crash if GPU data is tried to be loaded before `InitWindow()` #4751
Following raylib design, a warning log message is shown and program can continue execution.
Some early return checks have been added on most critical functions.
[rtext] Previous implementation checking `isGpuReady` cross-module variable is not needed any more, resulting in a more decoupled code, load failure is managed at rlgl level
pirms 1 mēnesi
Ray
2a566544d4
ADDED: Multiply security checks to avoid crashes on wrongly provided string data #4751
- REVIEWED: Checking `NULL` input on functions getting `const char *text`, to avoid crashes
- REVIEWED: `strcpy()` usage, prioritize `strncpy()` with limited copy to buffer size
- REPLACED: `strlen()` by `TextLength()` on [rtext] module
- REVIEWED: Replaced some early returns (but keeping others, for easier code following)
pirms 1 mēnesi
Connor O'Connor
944567651c
replace sprintf with snprintf ( #5382 )
pirms 2 mēnešiem
Connor O'Connor
1bbc8682f4
Fixed some typos and mispellings ( #5381 )
Specifically "occured" -> "occurred"
pirms 2 mēnešiem
Ray
e1b9857b14
Some TODOs and format reviews
pirms 2 mēnešiem
Ray
265fa7833c
Update rtext.c
pirms 2 mēnešiem
Ray
f21c1cc6ae
Update rtext.c
pirms 2 mēnešiem
Ray
ec828071ef
Update rtext.c
pirms 2 mēnešiem
Ray
57e22d5fa0
Update rtext.c
pirms 2 mēnešiem
Ray
8ae2c9cf5f
FIX: `LoadFontDataBDF()` #5346
pirms 2 mēnešiem
Ray
ec06f9be37
Removed trailing spaces
pirms 3 mēnešiem
Saksham Goyal
adfe2c1704
C++ compiler support v2 ( #5252 )
* Get C++ compilers working
* Fix Formatting
pirms 3 mēnešiem
Ray
5dd97ecf2f
REVIEWED: `TextToPascal()`, fix https://github.com/raylibtech/rtools/issues/57
pirms 3 mēnešiem
Ray
37149082e8
Avoid warnings
pirms 4 mēnešiem
Ray
23e0898c65
Ouch!
pirms 4 mēnešiem
Ray
c264c86ee0
ADDED: Some useful functions for Files and Text management
// File management functions
- int FileRename(const char *fileName, const char *fileRename); // Rename file (if exists)
- iint FileRemove(const char *fileName); // Remove file (if exists)
- iint FileCopy(const char *srcPath, const char *dstPath); // Copy file from one path to another, dstPath created if it doesn't exist
- iint FileMove(const char *srcPath, const char *dstPath); // Move file from one directory to another, dstPath created if it doesn't exist
- int FileTextReplace(const char *fileName, const char *search, const char *replacement); // Replace text in an existing file
- iint FileTextFindIndex(const char *fileName, const char *search); // Find text in existing file
// Text management functions
- const char *TextRemoveSpaces(const char *text); // Remove text spaces, concat words
- char *GetTextBetween(const char *text, const char *begin, const char *end); // Get text between two strings
- char *TextReplace(const char *text, const char *search, const char *replacement); // Replace text string (WARNING: memory must be freed!)
- char *TextReplaceBetween(const char *text, const char *begin, const char *end, const char *replacement); // Replace text between two specific strings (WARNING: memory must be freed!)
pirms 4 mēnešiem
Ray
ed8f1a22d1
Remove trailing spaces
pirms 4 mēnešiem
Ray
8e52aee853
Update rtext.c
pirms 5 mēnešiem
Ray
51aa8776bb
Update rtext.c
pirms 5 mēnešiem
Ray
0203a47bf9
REDESIGNED: `LoadTextLines()`/`UnloadTextLines()`
pirms 5 mēnešiem
Ray
2cb387b50a
REVIEWED: Font atlas image generation, added some comments #5141
pirms 5 mēnešiem
Ray
1fa3c15942
Revert "add const qualifier to the first arg of TextJoin ( #5166 )"
This reverts commit 4e8d08523f .
pirms 5 mēnešiem
JohnnyCena123
4e8d08523f
add const qualifier to the first arg of TextJoin ( #5166 )
* add const qualifier to the first arg of TextJoin
* Update raylib_api.* by CI
* Update raylib.h
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ray <raysan5@gmail.com>
pirms 5 mēnešiem
Ray
29ce5d8aa9
WARNING: BREAKING: `LoadFontData()` redesigned, added parameter
This redesign is a big improvement on font loading time and memory requirements. It only loads glyphs available on font from requested codepoints and only processes those glyphs for packaging. When processing +10K codepoints (CJK), the loading time improves considerably.
pirms 5 mēnešiem
Ray
8f32c502a7
REVIEWED: Code sections definition
pirms 5 mēnešiem
Ray
1777da9056
REVIEWED: Avoid realloc() calls, small security improvement
pirms 5 mēnešiem
Ray
0a92c863c4
Reverted const codepoints to avoid warnings
pirms 5 mēnešiem
Ray
edce3d41b2
REVERT: Making codepoints const, variable is used to generate list in case it was NULL
pirms 5 mēnešiem
Ray
ecedf40da6
REVIEW: `const` for codepoints arrays passed to function #5159
pirms 5 mēnešiem
Ray
d2f6c4924c
ADDED: [rtext] `LoadTextLines()`/`UnloadTextLines()`
pirms 5 mēnešiem
Ray
52980c947d
REVIEWED: [rtext] Provide more detailed info on glyphs failing to pack #5141
pirms 5 mēnešiem
Siltnamis
3c9c66e72b
use RL_MALLOC in stb_truetype
pirms 5 mēnešiem
Ray
570082deba
`WARNING`: **NEW** raylib code CONVENTION: Comments do not end with '.'
pirms 5 mēnešiem
Ray
7b017b60d9
Move global variable to right code section
pirms 6 mēnešiem
Catania
3d93b30262
Update font load message
pirms 6 mēnešiem
Ray
59bcf680aa
Code gardening...
pirms 7 mēnešiem