--- BasiliskII/src/BeOS/xpram_beos.cpp 2000/04/10 18:52:59 1.3 +++ BasiliskII/src/BeOS/xpram_beos.cpp 2005/01/30 21:42:13 1.8 @@ -1,7 +1,7 @@ /* * xpram_beos.cpp - XPRAM handling, BeOS specific stuff * - * Basilisk II (C) 1997-2000 Christian Bauer + * Basilisk II (C) 1997-2005 Christian Bauer * * 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 @@ -26,7 +26,11 @@ // XPRAM file name and path +#if POWERPC_ROM +const char XPRAM_FILE_NAME[] = "SheepShaver_NVRAM"; +#else const char XPRAM_FILE_NAME[] = "BasiliskII_XPRAM"; +#endif static BPath xpram_path; @@ -43,7 +47,7 @@ void LoadXPRAM(void) // Load XPRAM from settings file int fd; if ((fd = open(xpram_path.Path(), O_RDONLY)) >= 0) { - read(fd, XPRAM, 256); + read(fd, XPRAM, XPRAM_SIZE); close(fd); } } @@ -59,7 +63,7 @@ void SaveXPRAM(void) return; int fd; if ((fd = open(xpram_path.Path(), O_WRONLY | O_CREAT, 0666)) >= 0) { - write(fd, XPRAM, 256); + write(fd, XPRAM, XPRAM_SIZE); close(fd); } }