$NetBSD: patch-ab,v 1.3 2018/04/09 15:03:22 ryoon Exp $

--- src/unix/main.c.orig	2004-01-04 05:10:54.000000000 +0000
+++ src/unix/main.c
@@ -145,7 +145,7 @@ int main(int argc, char *argv[])
 
 	init_main(argc, argv);
 	
-	GenericInterface_Finish();
+//	GenericInterface_Finish();
 
 //	DirStuff_Finish();
 
@@ -207,7 +207,7 @@ void init_main(int argc, char *argv[]) {
 	do {
 		int this_option_optind = optind ? optind : 1;
 		int option_index = 0;
-		c = getopt_long_only (argc, argv, "",
+		c = getopt_long (argc, argv, "",
 			long_options, &option_index);
 		printf("c: %i %c\n", c, c);
 		switch(c) {
@@ -281,7 +281,7 @@ void init_main(int argc, char *argv[]) {
 	/* fprintf(stderr,"%s\n",LocalDirectory); */
 
 
-	GenericInterface_Initialise();
+	//GenericInterface_Initialise();
 
   /* initialise cpc hardware */
 	CPC_Initialise();
@@ -297,7 +297,7 @@ void init_main(int argc, char *argv[]) {
 		ConfigCPC6128();
 
 		if (tape) {
-			if (!TapeImage_InsertFromFile(tape)) {
+			if (!GenericInterface_InsertTape(tape)) {
 				printf(Messages[73], tape);
 			}
 		}
@@ -381,7 +381,7 @@ void init_main(int argc, char *argv[]) {
 		}
 
 		if (snapshot) {
-			if (!Snapshot_Load(snapshot)) {
+			if (!GenericInterface_LoadSnapshot(snapshot)) {
 				printf(Messages[78],
 					snapshot);
 			}
