RE: [AD] Manipulating 'emulate_three' flag

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Title: RE: [AD] Manipulating 'emulate_three' flag

Lo'oRiS il Kabukimono writes:
> and i made a *very* simple set_emulate_three function.

There's no need for such code, because the config functions
already provide a generic way for code to override any
config variable. You never need to make specific functions
to do that. Just write:

        static char data[] = "emulate_three = 0\n";
        override_config_data(data, sizeof(data));


--
Shawn Hargreaves



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/