/*DreamBurn; This Program makes it easy to make auto booting Dreamcast Disks. Copyright (C) 2005 Andrew White This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ //You can find this program's home page at: http://andynuke70.tripod.com/dreamburn.html //Windows Version #include #include #include using namespace std; char a[80]; char a2[80]; char a3[80]; char a4[80]; char a5[80]; char a6[80]; char a7[80]; char a8[80]; int main(int argc, char *argv[]) { /*name variables*/ /*audiofile*/ string audiofile; /*drive*/ string devdrive; /*multisession info*/ string msinfo; string xy; /*end of naming variables*/ string program; /*audiofile conversion*/ cout <<"Created by Andrew White and Dan White!!! \n"; cout <<"We know more about shell programing and that is what this program mostly uses!!!"; cout << "Please type in the audio file name (wave format or another supported audio file type of cdrecord): "; getline(cin, audiofile); //device scan string scan= "cdrecord --scanbus"; ofstream outf8("temp8.txt"); outf8 << scan; outf8.close(); FILE *fp8; fp8 = fopen("temp8.txt", "r"); fgets(a8, 81, fp8); cout<> onebin; string audio4; if (onebin==1) { audio4 = "mkisofs.exe -l -D -R -C "; audio4+=xy; audio4+=" -o tmp.iso 1ST_READ.BIN "; } else { audio4 = "mkisofs.exe -l -D -R -C "; audio4+=xy; audio4+=" -o tmp.iso "; } //clear stream string endl; getline(cin, endl); //cleared cout << "Please type in your Program's Directory (Make Sure that it is in Linux form "<<"/n"<<" or to make it easy copy this folder and remove specian characters like spaces and !@#$%^&*(){} etc.): "; getline(cin, program); audio4+=program; ofstream outf4("temp4.txt"); outf4 << audio4; outf4.close(); FILE *fp4; fp4 = fopen("temp4.txt", "r"); fgets(a4, 81, fp4); cout<