$NetBSD: patch-ab,v 1.1.1.1 2001/10/25 04:42:52 jlam Exp $ --- book.c.orig Mon Jul 16 08:04:48 2001 +++ book.c @@ -64,26 +64,31 @@ if (Variant == Normal) { if ((f_book = fopen ("normal.opn", "r")) == NULL) + if ((f_book = fopen (BOOKDIR "normal.opn", "r")) == NULL) return FALSE; } else if (Variant == Crazyhouse) { if ((f_book = fopen ("zh.opn", "r")) == NULL) + if ((f_book = fopen (BOOKDIR "zh.opn", "r")) == NULL) return FALSE; } else if (Variant == Suicide) { if ((f_book = fopen ("suicide.opn", "r")) == NULL) + if ((f_book = fopen (BOOKDIR "suicide.opn", "r")) == NULL) return FALSE; } else if (Variant == Losers) { if ((f_book = fopen ("losers.opn", "r")) == NULL) + if ((f_book = fopen (BOOKDIR "losers.opn", "r")) == NULL) return FALSE; } else { if ((f_book = fopen ("bug.opn", "r")) == NULL) + if ((f_book = fopen (BOOKDIR "bug.opn", "r")) == NULL) return FALSE; }