mirror of https://github.com/sm64pc/sm64pc.git
Fixed addon loading
This commit is contained in:
parent
f242833526
commit
a4458e3acb
|
@ -26,6 +26,7 @@ namespace Moon {
|
|||
|
||||
void loadAddon(string addonPath){
|
||||
StrawFile file(addonPath);
|
||||
file.open();
|
||||
|
||||
cout << "Loading addon: " << addonPath << endl;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue