|
@@ -3,7 +3,9 @@ package hxd.res;
|
|
class Model extends Resource {
|
|
class Model extends Resource {
|
|
|
|
|
|
public function toHmd() : hxd.fmt.hmd.Library {
|
|
public function toHmd() : hxd.fmt.hmd.Library {
|
|
- var hmd = new hxd.fmt.hmd.Reader(new hxd.fs.FileInput(entry)).readHeader();
|
|
|
|
|
|
+ var fs = new hxd.fs.FileInput(entry);
|
|
|
|
+ var hmd = new hxd.fmt.hmd.Reader(fs).readHeader();
|
|
|
|
+ fs.close();
|
|
return new hxd.fmt.hmd.Library(this, hmd);
|
|
return new hxd.fmt.hmd.Library(this, hmd);
|
|
}
|
|
}
|
|
|
|
|