Previous Thread
Next Thread
Print Thread
Page 6 of 8 1 2 3 4 5 6 7 8
Joined: Mar 2001
Posts: 16,919
Likes: 57
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,919
Likes: 57
Please compile it yourself - without a backtrace there's nothing I can do for your crashing, and the packager may have altered how settings are saved.

Joined: Feb 2004
Posts: 55
E
Member
Offline
Member
E
Joined: Feb 2004
Posts: 55
Originally Posted By Voop
When I start a game the config window seems to turn dead. That is it doesn't redraw itself anymore so after a while it's usually just a gray rectangle. Is this normal behavior?

I'm using this patch to hide that window when emulation is running:
Code:
diff -ur nst-orig/source/linux/main.cpp nst/source/linux/main.cpp
--- nst-orig/source/linux/main.cpp	2008-06-26 01:10:03.000000000 -0300
+++ nst/source/linux/main.cpp	2008-06-26 21:30:26.000000000 -0300
@@ -76,6 +76,7 @@
 static SDL_Joystick *joy[10];
 
 extern int lnxdrv_apimode;
+extern GtkWidget *mainwindow;
 
 static char savename[512], capname[512], gamebasename[512];
 static char caption[128];
@@ -511,6 +512,9 @@
 		SDL_Quit();
 	}
 
+	// show main window
+	gtk_widget_show(mainwindow);
+
 	playing = 0;
 }
 
@@ -572,6 +576,15 @@
 // start playing
 void NstPlayGame(void)
 {
+	// hide main window
+	gtk_widget_hide(mainwindow);
+
+	// process pending gtk events
+	while (gtk_events_pending())
+	{
+		gtk_main_iteration();
+	}
+
 	// initialization
 	SetupVideo();
 	SetupSound();

Joined: Feb 2004
Posts: 55
E
Member
Offline
Member
E
Joined: Feb 2004
Posts: 55
I'm using Gnome (Metacity + Gnome-panel) and, when emulation is running, the SDL window shows Nestopia release version and the ROM name at title, but the task bar shows "nst" only. I solve the problem using this patch:
Code:
diff -ur nst-orig/source/linux/main.cpp nst/source/linux/main.cpp
--- nst-orig/source/linux/main.cpp	2008-06-26 01:10:03.000000000 -0300
+++ nst/source/linux/main.cpp	2008-06-26 21:41:15.000000000 -0300
@@ -589,7 +589,7 @@
 	cNstSound->samples[1] = NULL;
 	cNstSound->length[1] = 0;
 
-	SDL_WM_SetCaption(caption, "nst");
+	SDL_WM_SetCaption(caption, caption);
 
 	m1sdr_SetSamplesPerTick(cNstSound->length[0]);
 
@@ -670,7 +670,7 @@
 	}
 
 
-	SDL_WM_SetCaption(caption, "nst");
+	SDL_WM_SetCaption(caption, caption);
 }
 
 


This tutorial says:

Quote:

The Window Title is the title that is on the top of the window in the titlebar. The Icon Title is the name it is given when refering to it in the system. {Check?}
(In linux, at least in GNOME, the Icon Title shows up in the task bar while the window title shows up in the title bar [yay, I checked something ^_^]) (on OS X, at least in Tiger ;->, the Icon Title shows up when you hover over the app's dock icon [yay, I checked something, too!])

Joined: Mar 2001
Posts: 16,919
Likes: 57
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,919
Likes: 57
Release G has been posted. This includes both of enik's patches plus a crash fix for the Cheat Manager and the Cheat Manager now shows the descriptions for imported cheat XML files. Now you can use Mighty Mo's cheats with confidence on Linux (the file for 3D World Runner had literally 30+ cheats so the descriptions were a must!).

I hear Bannister's port can't import XML cheat files. Shame ;-)

Last edited by R. Belmont; 06/27/08 03:39 AM.
Joined: May 2007
Posts: 95
M
Member
Offline
Member
M
Joined: May 2007
Posts: 95
Would it be possible to keep the cheat descriptions after you've closed the Cheat Manager window (for example, after playing the game, and deciding to add/remove some active cheats)?

Joined: Mar 2001
Posts: 16,919
Likes: 57
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,919
Likes: 57
That's a bug. I'll reup G in a moment with it fixed. Meantime note that the Cheat Manager is modeless - you can leave it open while you play with no harm. (You can't actually fiddle with it while the game's running though).

ETA: G has that fix slipstreamed now. I had accidentally put up a version that won't compile for a minute or two, get it again if you managed to bump into that ;-)

Last edited by R. Belmont; 06/27/08 04:50 AM.
Joined: May 2007
Posts: 95
M
Member
Offline
Member
M
Joined: May 2007
Posts: 95
Thanks... the "OK" button instead of a "Close" button lead me to think it wasn't modeless, so I didn't try it. Anyhow, it's all good now, thanks.

Joined: Feb 2007
Posts: 267
Senior Member
Offline
Senior Member
Joined: Feb 2007
Posts: 267
Originally Posted By R. Belmont
Please compile it yourself - without a backtrace there's nothing I can do for your crashing, and the packager may have altered how settings are saved.

i figured you'd say that. i'll try it tomorrow assuming i don't get 1.40 release G from the repo by then.

Joined: May 2007
Posts: 95
M
Member
Offline
Member
M
Joined: May 2007
Posts: 95
I have a feature request...

Would it be feasible to have save files go into ~/.nestopia instead of the same directory as the ROM?

Joined: Mar 2001
Posts: 16,919
Likes: 57
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,919
Likes: 57
Sure.

Page 6 of 8 1 2 3 4 5 6 7 8

Moderated by  Marty, R. Belmont 

Link Copied to Clipboard
Who's Online Now
2 members (Pernod, Reznor007), 23 guests, and 7 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,100
Posts119,235
Members5,019
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com