1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-25 05:47:45 +00:00

Read boot version

This commit is contained in:
Joshua Goins 2022-08-09 23:17:19 -04:00
parent e094742690
commit 59913434e6

View file

@ -37,7 +37,7 @@ impl BootData {
match is_valid(directory) {
true => Some(BootData {
path: directory.parse().unwrap(),
version: String::new()
version: fs::read_to_string(format!("{directory}/ffxivboot.ver")).unwrap()
}),
false => {
println!("Boot data is not valid!");