1 	// GUI IN PAUSE
2 	    #define DEFHSZ 16
3 	    #define DEFWSZ 64
4 
5 	    //joystick options
6 	    static int joy1on = nk_false;
7     	    static int joy2on = nk_false;
8     	    static int joyswap = nk_false;
9 
10 	     //misc options
11 	     static int showled = nk_false;
12 
13 	    //floppy option
14 	     static char DF8NAME[512]="Choose Content\0";
15 	     static char DF9NAME[512]="Choose Content\0";
16 
17 	    // button toggle GUI/EMU
18             nk_layout_row_static(ctx, DEFHSZ, DEFWSZ, 2);
19             if (nk_button_label(ctx, "Resume")){
20                 fprintf(stdout, "quit GUI\n");
21 		pauseg=0;
22 	    }
23             if (nk_button_label(ctx, "Reset")){
24                 fprintf(stdout, "quit GUI & reset\n");
25 		pauseg=0;
26 		emu_reset();
27 	    }
28 
29 	    //joystick options
30             nk_layout_row_dynamic(ctx, DEFHSZ, 3);
31             nk_checkbox_label(ctx, "Joy1 on", &joy1on);
32             nk_checkbox_label(ctx, "Joy2 on", &joy2on);
33             nk_checkbox_label(ctx, "Swap Joy", &joyswap);
34 
35 	    //misc options
36             nk_layout_row_dynamic(ctx, DEFHSZ, 1);
37             nk_checkbox_label(ctx, "Show LEDs", &showled);
38 
39 	    //floppy option
40 
41 	        int i;
42 
43 		for(i=0;i<2;i++)
44 			if(LOADCONTENT==2 && LDRIVE==(i+8));
45 			else if( (i==0? DISKA_NAME: DISKB_NAME)!=NULL){
46 			 	sprintf((i==0?DF8NAME:DF9NAME),"%s\0",(i==0? DISKA_NAME: DISKB_NAME));
47 			}
48 			//else sprintf(LCONTENT,"Choose Content\0");
49 
50             nk_layout_row_dynamic(ctx, DEFHSZ, 1);
51             nk_label(ctx, "DISKA:", NK_TEXT_LEFT);
52             nk_layout_row_dynamic(ctx, DEFHSZ, 1);
53 
54             if (nk_button_label(ctx, DF8NAME)){
55                 fprintf(stdout, "LOAD DISKA\n");
56 		LOADCONTENT=1;
57 		LDRIVE=8;
58 		//pauseg=0;
59 	    }
60 
61             nk_layout_row_dynamic(ctx, DEFHSZ, 1);
62             nk_label(ctx, "DF9:", NK_TEXT_LEFT);
63             nk_layout_row_dynamic(ctx, DEFHSZ, 1);
64 
65             if (nk_button_label(ctx, DF9NAME)){
66                 fprintf(stdout, "LOAD DISKA\n");
67 		LOADCONTENT=1;
68 		LDRIVE=9;
69 		//pauseg=0;
70 	    }
71 	    if(LOADCONTENT==2 && strlen(LCONTENT) > 0){
72 
73 		fprintf(stdout, "LOAD CONTENT DF%d (%s)\n",LDRIVE,LCONTENT);
74 //		sprintf(prefs->DrivePath[LDRIVE-8],"%s\0",LCONTENT);
75 		sprintf((LDRIVE==8? DISKA_NAME: DISKB_NAME),"%s\0",LCONTENT);
76 		LOADCONTENT=-1;
77 		loadadsk((char *)(LDRIVE==8? DISKA_NAME: DISKB_NAME),LDRIVE-8);
78 	    }
79 	    else if(LOADCONTENT==2)LOADCONTENT=-1;
80 
81