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,12 +1,14 @@
import java.util.Scanner;
public class OflagHandler {
public static void handleOflag(Scanner UserInput) {
System.out.println("Okay, next up please define your oflag. If you have the block-size default, you can choose default here aswell");
System.out.println("Available flags: direct (default), dsync, sync, nocache");
public static String oflagHandleString = "";
static String handleOflag(Scanner UserInput) {
System.out.println("Okay, next up please define your oflag (Default: direct)");
System.out.println("Available flags: direct (1), dsync (2), sync (3), nocache (4)");
String oflagHandleInput = UserInput.nextLine();
String oflagHandleString;
switch (oflagHandleInput) {
case "1":
oflagHandleString = "direct";
@@ -24,5 +26,7 @@ public class OflagHandler {
oflagHandleString = "direct";
break;
}
System.out.println("Using oflag: " + oflagHandleString);
return oflagHandleString;
}
}