Linux port

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

saphire

Post by saphire »

Nach wrote:
anomie wrote:
Nach wrote:
CyberBotX wrote:I believe this is because the getenv() function in FreeBSD returns a memory address outside the ZSNES program memory store, so trying to free is means that it's trying to free memory it didn't create.
Um... No.
The problem is getenv() is simply not failing for you.
Um... Not really.
The problem is that the string returned by getenv() should probably not be free()ed. It returns "a pointer to the value in the environment".
That's what I just said.
The problem is it not failing thus freeing something not malloc'd.

It's also been fixed for a while now.

Code: Select all

  if ((homedir = (char *)getenv("HOME")) == 0)
  {
    getcwd(zcfgdir, ZCFG_DIR_LEN);
  }
  else
  {
    strcpy(zcfgdir, homedir);
  }
  strcat(zcfgdir, ZCFG_DIR);
Does this fix fix the problem with zsnes quitting with a coredump on FreeBSD or the opengl problem. I have the opengl problem, and it sucks because I'm only offered 3 non opengl modes. I'm running a p3 800mhz machine with a Vodoo3 3000. The machine I have at home is having the same problem and it's got a Hercules nomad 3000, and an Duron 1.2ghz. If you have any ideas it would be much appreciated.
CyberBotX
Lurker
Posts: 109
Joined: Sun Jan 30, 2005 10:06 pm
Location: Wouldn't you like to know?
Contact:

Post by CyberBotX »

That only fixed the coredump problem on starting ZSNES under FreeBSD. There was no OpenGL problem with ZSNES, it was a problem on my system because I didn't install the drivers for my video card.
[url=http://www.cyberbotx.com/]SNES Sprite Animations[/url], made by an Insane Killer Robot.
I'm a computer programmer (in C++) and a future game designer.
Bahamut_ZERO_Clue

Post by Bahamut_ZERO_Clue »

I've actually made a full change over to Linux myself. Many applications I use are compatible with Wine and/or have SDL ports with GUIs that are equally functional.

Windows XP still exists on my hard drive but I rarily use it anymore except for a few applications that aren't fully compatible with Wine and it's low-level DirectX layer.

Hey Pagefault what exact distribution are you using anyway? I myself use Slackware 10.1 w/ Kernel 2.6.10 and some extra software packages I burned over to a disk like MPlayer, Wine, and several others.
Aerdan
Winter Knight
Posts: 467
Joined: Mon Aug 16, 2004 10:16 pm
Contact:

Post by Aerdan »

He uses Ubuntu.

However, for Slackware packages, you could try www.linuxpackages.com
MrBlowtatoes

Post by MrBlowtatoes »

OK, I figured this woudl best be for this thread...seenc eit is Linux

Well, i downloaded zsnes yesterday from Zophar.net and everythign runs fine....exept the sound...the sound is sorta a high pitches tune all the time...for instance..when playing super metroid...the blaster shots sound like you dropped a iron marble onto a frying pan...i don't know anyhtign about configureing sound...so it might not be jsut a clitch at all

if this can be fixed by checking a few boxes moveing a bar...etc...it woudl be great to know....other wise..i would ahve to say it is a bug

i am running Knoppix 2.4.27 #2 i686 GNU/Linux

Zsnes version 1.42

and i got the latest SDL yesterday

[hey i jsut moved to linux too :)]
Post Reply