📄 main.cpp
字号:
/*************************************************************************** main.cpp - description ------------------- begin : Die Feb 29 13:27:43 MET 2000 copyright : (C) 2000 by Michael Speck email : ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifdef HAVE_CONFIG_H#include "../config.h"#endif#include <stdlib.h>#include "game.h"#include "sndsrv.h"char *src_dir = SRC_DIR;char *home_dir;int fast_quit = 0;int main(int argc, char *argv[]){ // version // printf("LBreakout %s\nCopyright 2000 Michael Speck\n", VERSION); printf("Level Charts by Jean-Philippe Martin\n"); printf("Enjoy the game!\n-----\n");// home_dir = getenv("HOME"); home_dir = "/root";#ifdef SOUND SndSrv_Init(16);#endif Game *game = new Game(); game->Run(); printf( "before delete game\n" ); delete game; printf( "after delete game\n" ); #ifdef SOUND SndSrv_Quit();#endif printf( "END\n" ); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -