mirror of
https://github.com/encounter/aurora.git
synced 2026-07-09 18:19:33 -07:00
0d05404564
* 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
21 lines
522 B
C++
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;
|
|
};
|
|
|
|
}
|