Example #1
0
        private void btChangeKernel_Click(object sender, EventArgs e)
        {
            cBinLoader Loader = new cBinLoader();

            if (Loader.LoadBin(cbEndian.SelectedIndex, FileType.Kernel))
            {
                FileSystem.FAT.ReplaceKernel(Loader.GetFile(FileType.Kernel));
                UpdateDiskUsage();
            }
        }
        private void btAddKernel_Click(object sender, EventArgs e)
        {
            cBinLoader Loader = new cBinLoader();

            if (Loader.LoadBin(Master.cbEndian.SelectedIndex, FileType.Kernel))
            {
                Kernel = Loader.GetFile(FileType.Kernel);
                lbKernelStatus.Text = "kernel status: kernel loaded";
                KernelAvaiable      = true;
                if (BooloaderAvaiable && KernelAvaiable)
                {
                    btCreateFloppy.Visible = true;
                }
            }
        }
        private void btAddBootloader_Click(object sender, EventArgs e)
        {
            cBinLoader Loader = new cBinLoader();

            if (Loader.LoadBin(Master.cbEndian.SelectedIndex, FileType.Bootloader))
            {
                Bootloader = Loader.GetFile(FileType.Bootloader);
                lbBootloaderStatus.Text = "bootloader status: bootloader loaded";
                BooloaderAvaiable       = true;
                if (BooloaderAvaiable && KernelAvaiable)
                {
                    btCreateFloppy.Visible = true;
                }
            }
        }