Esempio n. 1
0
        }/* z_piracy */

        /*
         * main
         *
         * Prepare and run the game.
         *
         */

        public static int MainFunc(string[] args)
        {
            if (os_.process_arguments(args))
            {
                Buffer.init_buffer();

                Err.init_err();

                FastMem.init_memory();

                Process.init_process();

                Sound.init_sound();

                Text.init_text();

                os_.init_screen();

                FastMem.init_undo();

                FastMem.z_restart();

                os_.game_started(); // New function; Called to allow the screen to know info about the game

                Process.interpret();

                FastMem.reset_memory();

                os_.reset_screen();
            }
            return(0);
        }/* main */