font.cpp and other p[gkfsdhg';[sdfg

This commit is contained in:
ZakatTeamI2P 2026-03-30 19:20:48 +04:00
parent ce6fe42cd9
commit eb19b3fdc4
2 changed files with 4 additions and 4 deletions

View file

@ -22,7 +22,7 @@
#ifndef FILESYSTEM_H #ifndef FILESYSTEM_H
#define FILESYSTEM_H #define FILESYSTEM_H
#include <SDL_rwops.h> #include <SDL_IOStream.h>
struct FileSystemPrivate; struct FileSystemPrivate;
class SharedFontState; class SharedFontState;
@ -52,14 +52,14 @@ public:
* After this function returns, ops becomes invalid, so don't take * After this function returns, ops becomes invalid, so don't take
* references to it. Instead, copy the structure without closing * references to it. Instead, copy the structure without closing
* if you need to further read from it later. */ * if you need to further read from it later. */
virtual bool tryRead(SDL_RWops &ops, const char *ext) = 0; virtual bool tryRead(SDL_IOStream &ops, const char *ext) = 0;
}; };
void openRead(OpenHandler &handler, void openRead(OpenHandler &handler,
const char *filename); const char *filename);
/* Circumvents extension supplementing */ /* Circumvents extension supplementing */
void openReadRaw(SDL_RWops &ops, void openReadRaw(SDL_IOStream &ops,
const char *filename, const char *filename,
bool freeOnClose = false); bool freeOnClose = false);

View file

@ -31,7 +31,7 @@
#include <string> #include <string>
#include <utility> #include <utility>
#include <SDL_ttf.h> #include <SDL3_ttf/SDL_ttf.h>
typedef std::pair<std::string, int> FontKey; typedef std::pair<std::string, int> FontKey;