mirror of
https://github.com/raysan5/raylib.git
synced 2025-11-17 15:51:19 +00:00
Minor tweaks
This commit is contained in:
@@ -1611,7 +1611,7 @@ int GetCodepointsCount(const char *text)
|
|||||||
// Total number of bytes processed are returned as a parameter
|
// Total number of bytes processed are returned as a parameter
|
||||||
// NOTE: the standard says U+FFFD should be returned in case of errors
|
// NOTE: the standard says U+FFFD should be returned in case of errors
|
||||||
// but that character is not supported by the default font in raylib
|
// but that character is not supported by the default font in raylib
|
||||||
// TODO: optimize this code for speed!!
|
// TODO: Optimize this code for speed!!
|
||||||
int GetNextCodepoint(const char *text, int *bytesProcessed)
|
int GetNextCodepoint(const char *text, int *bytesProcessed)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -372,11 +372,11 @@ void InitAssetManager(AAssetManager *manager, const char *dataPath)
|
|||||||
internalDataPath = dataPath;
|
internalDataPath = dataPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Replacement for fopen
|
// Replacement for fopen()
|
||||||
// Ref: https://developer.android.com/ndk/reference/group/asset
|
// Ref: https://developer.android.com/ndk/reference/group/asset
|
||||||
FILE *android_fopen(const char *fileName, const char *mode)
|
FILE *android_fopen(const char *fileName, const char *mode)
|
||||||
{
|
{
|
||||||
if (mode[0] == 'w') // TODO: Test!
|
if (mode[0] == 'w')
|
||||||
{
|
{
|
||||||
// TODO: fopen() is mapped to android_fopen() that only grants read access
|
// TODO: fopen() is mapped to android_fopen() that only grants read access
|
||||||
// to assets directory through AAssetManager but we want to also be able to
|
// to assets directory through AAssetManager but we want to also be able to
|
||||||
|
|||||||
Reference in New Issue
Block a user