Skip to content

Commit

Permalink
set game information bgcol on load
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfloogle committed Aug 3, 2024
1 parent fd98574 commit 1f66b2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,10 @@ unsafe fn load_game_information(path: &mut PathBuf) -> Result<()> {
path.push("game_information.txt");
read_txt(&path, |k, v| {
match k {
"color" => editor.colour = v.parse()?,
"color" => {
// TControl.SetColor
let _: u32 = delphi_call!(0x4ee858, editor, v.parse::<u32>()?);
},
"new_window" => NEW_WINDOW.write(v.parse::<u8>()? != 0),
"caption" => CAPTION.asg(v),
"left" => LEFT.write(v.parse()?),
Expand Down

0 comments on commit 1f66b2f

Please sign in to comment.