Преглед на файлове

LoadText(): Added comment

pull/1113/head
Ray преди 5 години
родител
ревизия
245ba2a152
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. +3
    -0
      src/rlgl.h

+ 3
- 0
src/rlgl.h Целия файл

@ -2996,6 +2996,9 @@ char *LoadText(const char *fileName)
if (textFile != NULL)
{
// WARNING: When reading a file as 'text' file,
// text mode causes carriage return-linefeed translation...
// ...but using fseek() should return correct byte-offset
fseek(textFile, 0, SEEK_END);
int size = ftell(textFile);
fseek(textFile, 0, SEEK_SET);

Зареждане…
Отказ
Запис