forked from Kolyah35/minecraft-pe-0.6.1
14 lines
412 B
C++
14 lines
412 B
C++
#include <IPlatform.hpp>
|
|
#include <App.hpp>
|
|
#include <fstream>
|
|
|
|
void IPlatform::runMainLoop(App& app) {
|
|
while(!app.wantToQuit()) app.update();
|
|
}
|
|
|
|
ByteVector IPlatform::readAssetFile(const std::string& path) {
|
|
std::ifstream instream(path, std::ios::in | std::ios::binary);
|
|
std::vector<uint8_t> data((std::istreambuf_iterator<char>(instream)), std::istreambuf_iterator<char>());
|
|
|
|
return data;
|
|
} |