From 8b5e08b64cd35602b9010590d1c591ff50674bd4 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 4 Dec 2003 03:35:31 +0000 Subject: Added custom rootsector --- lib/isobuilder.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/isobuilder.cpp b/lib/isobuilder.cpp index 362151d..e0433e0 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.2 2003-12-04 01:47:37 pixel Exp $ */ +/* $Id: isobuilder.cpp,v 1.3 2003-12-04 03:35:31 pixel Exp $ */ #include "isobuilder.h" @@ -521,7 +521,7 @@ void isobuilder::clearEOF() { sub_EOF = sub_EOR = 0; } -isobuilder::DirTree * isobuilder::setbasics(PVD _pvd, int _rootsize, int _ptsize, int _nvd) throw (GeneralException) { +isobuilder::DirTree * isobuilder::setbasics(PVD _pvd, int _rootsize, int _ptsize, int _nvd, int _rootsect) throw (GeneralException) { if (basics) { throw GeneralException("Basic ISO structures already set"); } @@ -534,6 +534,8 @@ isobuilder::DirTree * isobuilder::setbasics(PVD _pvd, int _rootsize, int _ptsize ptsect = 17 + nvd; rootsect = ptsect + ptsize * 4; + if (_rootsect >= 0) + rootsect = _rootsect; lastdispsect = rootsect + rootsize; root = new DirTree(0); -- cgit v1.2.3