libgm 0.5.0

A tool for modding, unpacking and decompiling GameMaker games
Documentation
1
2
3
4
5
6
7
8
9
10
//! Any Undertale or NXTALE version
//! 2015-09-15 to eternity

use crate::gml::instruction::InstanceType;
use crate::prelude::*;

pub fn toggle(data: &mut GMData, enable: bool) -> Result<()> {
    let code_ref = data.scripts.code_ref_by_name("SCR_GAMESTART")?;
    super::replace_debug(data, code_ref, enable, InstanceType::Global)
}