Made flasher show user configuration
This commit is contained in:
20
Flasher.java
20
Flasher.java
@@ -1,11 +1,21 @@
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class Flasher {
|
||||
publicstatic voic flasher(Scanner UserInput) {
|
||||
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: " + device);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user