forked from Kolyah35/minecraft-pe-0.6.1
server compilable
This commit is contained in:
14
src/IPlatform.cpp
Normal file
14
src/IPlatform.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <IPlatform.h>
|
||||
#include <App.h>
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user