22 lines
844 B
Java
22 lines
844 B
Java
import java.util.Scanner;
|
|
|
|
public class Flasher {
|
|
public static void flasher(Scanner UserInput) {
|
|
|
|
String input = "";
|
|
|
|
System.out.println("The programm wil use the following configuration, do you want to flash with this? (y/n)");
|
|
System.out.println(" - To be flashed device: " + StorageDeviceLister.fullPath);
|
|
System.out.println(" - To be used path: " + FilePathAdd.ImagePath);
|
|
System.out.println(" - To bed used blocksize: " + BlockSize.blockSizeString);
|
|
System.out.println(" - To be used oflag: " + OflagHandler.oflagHandleString);
|
|
input = UserInput.nextLine();
|
|
if (YesNo.check(input)) {
|
|
System.out.println("Flashing...");
|
|
} else {
|
|
System.out.println("Canceling...");
|
|
System.exit(0);
|
|
}
|
|
}
|
|
}
|