Files
aurora/lib/rmlui/FileInterface_SDL.h
CraftyBoss 0d05404564 Switch RmlUi FileInterface to custom SDL version (#152)
* add file interface that uses SDL file io to access filesystem

this fixes android not properly accessing asset system through SDL, as the default file interface uses the standard C api, which on android is directed to the apps data directory.

* remove debug logs, run clang format
2026-05-03 18:46:34 -06:00

21 lines
522 B
C++

#pragma once
#include <RmlUi/Core/FileInterface.h>
namespace aurora::rmlui {
class FileInterface_SDL : public Rml::FileInterface {
public:
FileInterface_SDL() = default;
Rml::FileHandle Open(const Rml::String& path) override;
void Close(Rml::FileHandle file) override;
size_t Read(void* buffer, size_t size, Rml::FileHandle file) override;
bool Seek(Rml::FileHandle file, long offset, int origin) override;
size_t Tell(Rml::FileHandle file) override;
size_t Length(Rml::FileHandle file) override;
};
}