From 5b1e50428eab9ea1d141b84e4579d77ac7b8f2d9 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 3 May 2004 12:55:04 +0000 Subject: Still, various fixes, changes, improvements, new bug added, etc... --- includes/cdutils.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/cdutils.h b/includes/cdutils.h index d21c9cf..c81c093 100644 --- a/includes/cdutils.h +++ b/includes/cdutils.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: cdutils.h,v 1.15 2003-12-14 22:04:34 pixel Exp $ */ +/* $Id: cdutils.h,v 1.16 2004-05-03 12:55:04 pixel Exp $ */ #ifndef __CDUTILS_H__ #define __CDUTILS_H__ @@ -83,9 +83,10 @@ class cdutils : public Base { long read_sector(Byte * buffer, int type = GUESS, int number = -1); void read_datas(Byte * buffer, long size, int type = GUESS, int number = -1); void read_file(Handle * Handle, long size, int type = GUESS, int number = -1); - void write_sector(Byte * buffer, int type = GUESS, int number = -1); + void write_sector(Byte * buffer, int type = GUESS, int number = -1) throw (GeneralException); void write_datas(Byte * buffer, long size, int type = GUESS, int number = -1); void write_file(Handle * Handle, long size = -1, int type = GUESS, int number = -1); + void create_sector(int type, int number, bool eof = false) throw (GeneralException); int get_iso_infos(); int show_iso_infos(); int get_pt_infos(); @@ -104,6 +105,8 @@ class cdutils : public Base { static bool is_valid_BCD(unsigned char x); static unsigned long from_MSF(unsigned long msf, unsigned long start = 150); static unsigned long from_MSF(unsigned char m, unsigned char s, unsigned char f, unsigned long start = 150); + static unsigned long to_MSF(int sect, unsigned long start = 150); + static void to_MSF(int sect, unsigned char & m, unsigned char & s, unsigned char & f, unsigned long start = 150); private: void write_ppf(Byte * old_sec, Byte * new_sec, int sec_num); String format_date(String input); -- cgit v1.2.3