2 unstable releases

0.2.0 Aug 19, 2021
0.1.0 Aug 2, 2021

#1253 in Game dev

BSD-2-Clause

24KB
471 lines

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
}

Dependencies

~225KB