Made flasher show user configuration

This commit is contained in:
Cametendo
2026-04-03 15:12:45 +02:00
parent 2c076c4c95
commit c086bcc2e6
6 changed files with 44 additions and 16 deletions

View File

@@ -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);
}
}
}