pkgsrc/emulators/x48/patches/patch-ac
agc aac9d2d5b6 Initial import of x48-0.4.1 into the packages collection.
Provided in PR 12134 by Jens A Nilsson <jens@subzero.campus.luth.se>

This emulator is capable of providing a faithful replication of the
HP48. In order to do so, it requires a copy of the ROM software
from YOUR calculator. In order to avoid breaking copyright laws,
and upsetting HP, you MUST BE THE PROUD OWNER OF AN HP48 before
running this program. Of course you can run this program without a
copy of the ROM software in order to write trivial machine code
programs but you will not be able to access any of the calculator
functionality.

WWW: http://home.earthlink.net/~rmmlgetz/
2001-04-27 14:56:27 +00:00

56 lines
1.3 KiB
Text

$NetBSD: patch-ac,v 1.1.1.1 2001/04/27 14:56:27 agc Exp $
--- src/init.c.orig Sun Feb 4 18:32:22 2001
+++ src/init.c
@@ -1204,13 +1204,15 @@
struct stat st;
FILE *fp;
- fprintf(stderr, "testing: Getting home dir\n");
+ if (!quiet)
+ fprintf(stderr, "testing: Getting home dir\n");
get_home_directory(path);
strcat(path, "/");
saturn.rom = (word_4 *)NULL;
- fprintf(stderr, "testing: Reading ROM files\n");
+ if (!quiet)
+ fprintf(stderr, "testing: Reading ROM files\n");
strcpy(fnam, path);
strcat(fnam, "rom");
if (!read_rom_file(fnam, &saturn.rom, &rom_size))
@@ -1367,7 +1369,8 @@
exit (1);
}
- fprintf(stderr, "testing: Reading RAM file\n");
+ if (!quiet)
+ fprintf(stderr, "testing: Reading RAM file\n");
strcpy(fnam, path);
strcat(fnam, "ram");
@@ -1466,11 +1469,13 @@
saturn.card_status |= port2_is_ram ? 8 : 0;
}
+#ifdef notyet
fprintf(stderr, "testing: Reading Enteries file\n");
strcpy(fnam, path);
strcat(fnam, "entries.o");
if (!read_entries_file(fnam, &saturn.entries))
return 0;
+#endif
return 1;
@@ -1841,7 +1846,8 @@
{
if (!initialize)
{
- fprintf(stderr, "testing: Read Files\n");
+ if (!quiet)
+ fprintf(stderr, "testing: Read Files\n");
if (read_files())
{
if (resetOnStartup)