From a422d1dcda810b2f129a9a5213f3f4b440be4bbc Mon Sep 17 00:00:00 2001 From: pixel Date: Sat, 3 Jan 2004 15:04:46 +0000 Subject: Highly started work on mips disassembler + various little fixes. --- lib/isobuilder.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lib/isobuilder.cpp') diff --git a/lib/isobuilder.cpp b/lib/isobuilder.cpp index 7928737..586e6f4 100644 --- a/lib/isobuilder.cpp +++ b/lib/isobuilder.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: isobuilder.cpp,v 1.10 2003-12-26 19:58:13 pixel Exp $ */ +/* $Id: isobuilder.cpp,v 1.11 2004-01-03 15:04:47 pixel Exp $ */ #include "isobuilder.h" @@ -780,11 +780,14 @@ isobuilder::PVD isobuilder::createpvd(Byte * buffer) { return r; } -void isobuilder::close(Handle * cue, int mode) throw (GeneralException) { +void isobuilder::close(Handle * cue, int mode, int nsects) throw (GeneralException) { Byte datas[2048]; Byte * pdatas; char * cdatas = (char *) datas; int psize; + + if (nsects < 0) + nsects = nsectors; memset(datas, 0, 2048); @@ -808,8 +811,8 @@ void isobuilder::close(Handle * cue, int mode) throw (GeneralException) { sprintf(cdatas + 8, "%-32s", pvd.sysid.to_charp()); sprintf(cdatas + 40, "%-32s", pvd.volid.to_charp()); - *((Uint32 *) (datas + 80)) = nsectors; - *((Uint32 *) (datas + 84)) = cdutils::swap_dword(nsectors); + *((Uint32 *) (datas + 80)) = nsects; + *((Uint32 *) (datas + 84)) = cdutils::swap_dword(nsects); datas[120] = 1; datas[121] = 0; -- cgit v1.2.3