srcconsole

Crates.iosrcconsole
lib.rssrcconsole
version0.2.0
sourcesrc
created_at2021-08-02 21:11:58.723034
updated_at2021-08-19 20:02:49.088528
descriptioninteract with the source engine console
homepage
repository
max_upload_size
id430701
size23,642
Matthew Wozniak (wozniak)

documentation

README

srcconsole

A rust crate for manipulating the developer console for Source Engine games.

Features

  • log to console (warning, msg)
  • run commands (only in 32 bit source engine games, which is most of them)

Example

use srcconsole::SourceConsole;

fn main() {
    let console = SourceConsole::new("hl2.exe"); // initialize fn pointers
    console.msg("Rust!"); // print to the console
    console.warning("Warning!");
    console.exec("load quick\n"); // run a command
}
Commit count: 0

cargo fmt