/* * gameresource.h Game Resource (*.gr) file * * Copyright (C) 1997-1998 Masaki Chikama (Wren) * 1998- * * 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. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #ifndef __GAMERESOURCE_H__ #define __GAMERESOURCE_H__ #include #include "portab.h" #include "ald_manager.h" #include "savedata.h" typedef struct { const char *gr_fname; const char *game_fname[DRIFILETYPEMAX][DRIFILEMAX]; int cnt[DRIFILETYPEMAX]; const char *save_path; const char *save_fname[SAVE_MAXNUMBER]; const char *ain; const char *wai; const char *bgi; const char *sact01; const char *init; const char *alk[10]; const char *msgskip; } GameResource; boolean initGameResource(GameResource *gr, const char *gr_fname, const char *savedir); boolean initGameResourceFromDir(GameResource *gr, DIR *dir, const char *savedir, struct dirent *(*p_readdir)(DIR *)); #endif /* !__GAMERESOURCE_H__ */