mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-04 19:14:08 +02:00
texture info handling
This commit is contained in:
parent
c459a8308b
commit
e132a34a00
6 changed files with 69 additions and 7 deletions
|
|
@ -43,10 +43,10 @@ impl<'a> BspFile<'a> {
|
|||
|
||||
pub fn lump_reader(&self, lump: LumpType) -> BspResult<LumpReader<Cursor<Cow<[u8]>>>> {
|
||||
let data = self.get_lump(lump)?;
|
||||
Ok(LumpReader::new(data))
|
||||
Ok(LumpReader::new(data, lump))
|
||||
}
|
||||
|
||||
fn get_lump(&self, lump: LumpType) -> BspResult<Cow<[u8]>> {
|
||||
pub fn get_lump(&self, lump: LumpType) -> BspResult<Cow<[u8]>> {
|
||||
let lump = &self.directories[lump];
|
||||
let raw_data = self
|
||||
.data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue