Skip to content

Commit

Permalink
WIP: refactor, add markup parse and rendering, use cxx crate
Browse files Browse the repository at this point in the history
  • Loading branch information
vizv committed Sep 1, 2024
1 parent a3e8d87 commit bbc9194
Show file tree
Hide file tree
Showing 29 changed files with 1,290 additions and 580 deletions.
17 changes: 9 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ device_query = "2.1.0"
sdl2 = "0.37.0"
fontdue = "0.9.2"
bitflags = "2.6.0"
cxx = "1.0.126"

[target.'cfg(target_os = "windows")'.dependencies]
exe = "0.5.6"
Expand Down
9 changes: 6 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,19 @@ pub struct OffsetsMetadata {
#[derive(Deserialize)]
pub struct OffsetsValues {
pub enabler: Option<usize>,
pub enabler_offset_curses_glyph_texture: Option<usize>,
pub game: Option<usize>,
pub gps: Option<usize>,
pub gps_offset_dimension: Option<usize>,
pub renderer_offset_screen_info: Option<usize>,
pub addst: Option<usize>,
pub addst_top: Option<usize>,
pub addst_flag: Option<usize>,
pub addchar_flag: Option<usize>,
pub gps_allocate: Option<usize>,
pub update_all: Option<usize>,
pub update_tile: Option<usize>,
pub get_key_display: Option<usize>,
pub mtb_process_string_to_lines: Option<usize>,
pub mtb_set_width: Option<usize>,
pub render_help_dialog: Option<usize>,
}

#[allow(dead_code)]
Expand All @@ -81,6 +83,7 @@ pub struct SymbolsValues {
pub gps_allocate: Option<Vec<String>>,
pub update_all: Option<Vec<String>>,
pub update_tile: Option<Vec<String>>,
pub get_key_display: Option<Vec<String>>,
}

impl Config {
Expand Down
293 changes: 0 additions & 293 deletions src/cxxstring.rs

This file was deleted.

Loading

0 comments on commit bbc9194

Please sign in to comment.