/* Pcsx2 - Pc Ps2 Emulator * Copyright (C) 2002-2003 Pcsx2 Team * * 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 __MISC_H__ #define __MISC_H__ #undef s_addr u32 BiosVersion; char CdromId[12]; int LoadCdrom(); int CheckCdrom(); int GetPS2ElfName(char*); extern char *LabelAuthors; extern char *LabelGreets; int SaveState(char *file); int LoadState(char *file); int CheckState(char *file); char *ParseLang(char *id); void ListPatches (HWND hW); int ReadPatch (HWND hW, char fileName[1024]); char * lTrim (char *s); BOOL Save_Patch_Proc( char * filename ); #define DIRENTRY_SIZE 16 #if defined(__WIN32__) #pragma pack(1) #endif struct romdir{ char fileName[10]; unsigned short extInfoSize; unsigned long fileSize; #if defined(__WIN32__) }; //+22 #else } __attribute__((packed)); #endif u32 GetBiosVersion(); int IsBIOS(char *filename, char *description); #ifdef __WIN32__ #pragma pack() #endif void injectIRX(char *filename); #endif /* __MISC_H__ */