Fixed addon loading

This commit is contained in:
KiritoDv 2021-05-10 20:12:54 +00:00
parent f242833526
commit a4458e3acb
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ namespace Moon {
void loadAddon(string addonPath){
StrawFile file(addonPath);
file.open();
cout << "Loading addon: " << addonPath << endl;

View File

@ -69,6 +69,7 @@ namespace MoonInternal {
if(fileEntry->data != NULL) data = fileEntry;
else if(!fileEntry->path.empty()){
StrawFile file(addon->path);
file.open();
TextureFileEntry *newData = new TextureFileEntry();
file.read(fileEntry->path, newData);
data = newData;