Skip to content

Commit f90a66b

Browse files
committed
feat: Implement core application UI with GGPK loading, DAT viewer, and export window.
1 parent 451bb9e commit f90a66b

File tree

4 files changed

+4
-91
lines changed

4 files changed

+4
-91
lines changed

check.log

Lines changed: 0 additions & 86 deletions
This file was deleted.

src/ui/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ impl eframe::App for ExplorerApp {
494494
DataFormat::Original => {
495495
let _ = std::fs::write(&full_path, file_data);
496496
}
497-
_ => {let _ = std::fs::write(&full_path, file_data);}
497+
498498
}
499499
}
500500
else {

src/ui/dat_viewer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ impl DatViewer {
318318
}
319319
}
320320

321+
#[allow(dead_code)]
321322
pub fn convert_to_json(&self, data: &[u8], filename: &str) -> Option<String> {
322323
let path = std::path::Path::new(filename);
323324
let stem = path.file_stem().map(|s| s.to_string_lossy().to_string()).unwrap_or_default();

src/ui/export_window.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub enum AudioFormat {
1717
pub enum DataFormat {
1818
Original,
1919
Json,
20-
Csv, // Potential future addition
20+
2121
}
2222

2323
#[derive(Clone)]
@@ -80,9 +80,7 @@ impl ExportWindow {
8080
}
8181
}
8282

83-
pub fn close(&mut self) {
84-
self.open = false;
85-
}
83+
8684

8785
pub fn show(&mut self, ctx: &egui::Context) -> bool {
8886
let mut open = self.open;

0 commit comments

Comments
 (0)