Mednafen Members Members   Search Search   Help Help   Register Register   Login Login   Home Home
Home » Mednafen » Development » Error when change the mednafen home base dir
Show: Today's Messages  :: Show Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Error when change the mednafen home base dir [message #5568] Thu, 21 June 2018 15:35 Go to next message
mckaygerhard  [PM]
i changed the mednafen base directory from ~/.mednafen to ~/.mednafen12, but when i save the state of any game it's stored at the normal ~/.mednafen directory saves ..

so then i browse the code and set hardcoded the variable in main.cpp of the "drivers" directory and happened same problem...

also creates both directories..

so it's clear there's a bug here!
Re: Error when change the mednafen home base dir [message #5570 is a reply to message #5568 ] Thu, 21 June 2018 17:06 Go to previous messageGo to next message
Administrator  [PM]
What do you mean by you changed the base directory? If you're modifying code to change Mednafen's behavior, and it's not doing what you want it to do, isn't that your bug?

[Updated on: Thu, 21 June 2018 17:21]

Re: Error when change the mednafen home base dir [message #5577 is a reply to message #5570 ] Fri, 22 June 2018 07:17 Go to previous messageGo to next message
mckaygerhard  [PM]
seems that do you not know your own product, there's MEDNAFEN_HOME but either setting that variable or hardcoded, everything works until try to save a snapshot state on any slot, (0-9), it's create also a default directory (or segfault if not exits)

i mean in both cases:

CASE1: compiled or use a distribution (any distro) mednafen, set MEDNAFEN_HOME and then try to made save and not used the setting new directory

CASE2: i compile my own with hardcoded "~/.mednafen12" and happened the same problem

IMPORTANT NOTE: this does not happened with mednafen 0.9 codebase
Re: Error when change the mednafen home base dir [message #5582 is a reply to message #5577 ] Fri, 22 June 2018 09:04 Go to previous messageGo to next message
Administrator  [PM]
I am unable to reproduce the issue you seem to be reporting.

During the test whose log follows, I saved a state, saved a movie, and saved a screen snapshot, and they all went to the expected directories:
psx@xxx:/tmp/testcomp/mednafen/src$ ls -la ~/.mednafen
ls: cannot access /home/psx/.mednafen: No such file or directory
psx@xxx:/tmp/testcomp/mednafen/src$ ls -la /tmp/mednafen-home-test
ls: cannot access /tmp/mednafen-home-test: No such file or directory
psx@xxx:/tmp/testcomp/mednafen/src$ MEDNAFEN_HOME=/tmp/mednafen-home-test ./mednafen /tmp/smb.nes 
Starting Mednafen 1.21.3
 Build information:
   Compiled with gcc 4.9.2
   Compiled against zlib 1.2.8, running with zlib 1.2.8(flags=0x000000a9)
   Compiled against SDL 2.0.7(hg-11645:2088cd828335), running with SDL 2.0.7(hg-11645:2088cd828335)
   Running with libsndfile-1.0.25
 Base directory: /tmp/mednafen-home-test
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: nouveau
 Emulation modules: nes snes gb gba pce lynx md pcfx ngp psx ss ssfplay vb wswan sms gg snes_faust pce_fast demo cdplay
 Opening lockfile...
 Loading settings from "/tmp/mednafen-home-test/mednafen-09x.cfg"...
  Failed: Error opening file "/tmp/mednafen-home-test/mednafen-09x.cfg": No such file or directory
 Initializing joysticks...
 Loading /tmp/smb.nes...
  Applying IPS file "/tmp/smb.nes.ips"...
   Failed: Error opening file "/tmp/smb.nes.ips": No such file or directory
  Using module: nes(Nintendo Entertainment System/Famicom)
   Loading override settings from "/tmp/mednafen-home-test/nes.cfg"...
    Failed: Error opening file "/tmp/mednafen-home-test/nes.cfg": No such file or directory
   Loading override settings from "/tmp/mednafen-home-test/pgconfig/smb.nes.cfg"...
    Failed: Error opening file "/tmp/mednafen-home-test/pgconfig/smb.nes.cfg": No such file or directory

   PRG ROM:    2 x 16KiB
   CHR ROM:    1 x  8KiB
   ROM CRC32:  0xd445f698
   ROM MD5:  0x8e3630186e35d477231bf8fd50e54cdd
   Mapper:  0
   Mirroring: Vertical

  Loading custom palette from "/tmp/mednafen-home-test/palettes/nes.pal"...
   Error: Error opening file "/tmp/mednafen-home-test/palettes/nes.pal": No such file or directory

  Loading cheats from /tmp/mednafen-home-test/cheats/nes.cht...
   Error opening file "/tmp/mednafen-home-test/cheats/nes.cht": No such file or directory

 Initializing sound...
  Using "ALSA" audio driver with SexyAL's default device selection.
   Format: 16 bits(signed, 2 bytes, little-endian)
   Rate: 48000
   Channels: 2
   Buffer size: 1560 sample frames(32.500000 ms)
   Latency: 1560 sample frames(32.500000 ms)
   Period size: 60 sample frames(1.250000 ms)
 Initializing video...
  Driver: OpenGL
  Display Mode: 1920 x 1200 x 24 bpp @ 60Hz  (Window: 1024 x 896)
  Shader: none
  Fullscreen: No
  Special Scaler: None
  Scanlines: Off
  Destination Rectangle: X=0, Y=0, W=1024, H=896
  OpenGL Implementation: VMware, Inc. Gallium 0.4 on llvmpipe (LLVM 3.5, 256 bits) 3.0 Mesa 10.3.2
  Checking extensions:
   GL_ARB_texture_non_power_of_two found.
   GL_ARB_sync found.
  Using non-power-of-2 sized textures.
  Checking maximum texture size...
   Apparently it is at least: 8192 x 8192
  Using GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV for texture source data.
 filter.cpp debug info:
  SIMD: SSE2
  0.010284
  Phases: 7, Output rate: 48001.567398, 261 7
  Desired rate error: 0.0000400000, Actual rate error: 0.0000326541
  Cutoff: 0.002362, 0.010284
  FIR table memory usage: 5184 bytes
  Phase 0: min=-1020 max=8676, neg_sum=-72632, pos_sum=596869, sum=524237, sum_absv=669501, wcru=0.7043
  Phase 1: min=-1020 max=8676, neg_sum=-72623, pos_sum=596866, sum=524243, sum_absv=669489, wcru=0.6996
  Phase 2: min=-1020 max=8676, neg_sum=-72623, pos_sum=596866, sum=524243, sum_absv=669489, wcru=0.6996
  Phase 3: min=-1020 max=8676, neg_sum=-72632, pos_sum=596869, sum=524237, sum_absv=669501, wcru=0.7043
  Phase 4: min=-1020 max=8676, neg_sum=-72634, pos_sum=596874, sum=524240, sum_absv=669508, wcru=0.7020
  Phase 5: min=-1020 max=8675, neg_sum=-72620, pos_sum=596842, sum=524222, sum_absv=669462, wcru=0.6972
  Phase 6: min=-1020 max=8676, neg_sum=-72634, pos_sum=596874, sum=524240, sum_absv=669508, wcru=0.7020
psx@xxx:/tmp/testcomp/mednafen/src$ ls -la ~/.mednafen
ls: cannot access /home/psx/.mednafen: No such file or directory
psx@xxx:/tmp/testcomp/mednafen/src$ ls -la /tmp/mednafen-home-test/*
-rw-r--r-- 1 psx psx 611808 Jun 22 06:53 /tmp/mednafen-home-test/mednafen.cfg
-rw-r--r-- 1 psx psx      0 Jun 22 06:53 /tmp/mednafen-home-test/mednafen.lck

/tmp/mednafen-home-test/cheats:
total 8
drwx------  2 psx psx 4096 Jun 22 06:53 .
drwx------ 10 psx psx 4096 Jun 22 06:53 ..

/tmp/mednafen-home-test/firmware:
total 8
drwx------  2 psx psx 4096 Jun 22 06:53 .
drwx------ 10 psx psx 4096 Jun 22 06:53 ..

/tmp/mednafen-home-test/mcm:
total 192
drwx------  2 psx psx   4096 Jun 22 06:53 .
drwx------ 10 psx psx   4096 Jun 22 06:53 ..
-rw-r--r--  1 psx psx 184322 Jun 22 06:53 smb.8e3630186e35d477231bf8fd50e54cdd.0.mcm

/tmp/mednafen-home-test/mcs:
total 16
drwx------  2 psx psx 4096 Jun 22 06:53 .
drwx------ 10 psx psx 4096 Jun 22 06:53 ..
-rw-r--r--  1 psx psx 4618 Jun 22 06:53 smb.8e3630186e35d477231bf8fd50e54cdd.mc0

/tmp/mednafen-home-test/palettes:
total 8
drwx------  2 psx psx 4096 Jun 22 06:53 .
drwx------ 10 psx psx 4096 Jun 22 06:53 ..

/tmp/mednafen-home-test/pgconfig:
total 8
drwx------  2 psx psx 4096 Jun 22 06:53 .
drwx------ 10 psx psx 4096 Jun 22 06:53 ..

/tmp/mednafen-home-test/sav:
total 8
drwx------  2 psx psx 4096 Jun 22 06:53 .
drwx------ 10 psx psx 4096 Jun 22 06:53 ..

/tmp/mednafen-home-test/snaps:
total 16
drwx------  2 psx psx 4096 Jun 22 06:53 .
drwx------ 10 psx psx 4096 Jun 22 06:53 ..
-rw-r--r--  1 psx psx 3210 Jun 22 06:53 smb-0000.png
-rw-r--r--  1 psx psx    2 Jun 22 06:53 smb-counter.txt
psx@xxx:/tmp/testcomp/mednafen/src$ 
Re: Error when change the mednafen home base dir [message #5584 is a reply to message #5568 ] Fri, 22 June 2018 10:04 Go to previous message
mckaygerhard  [PM]
umm do you run a nes game, when i try i run a gba game hacked..

o only test gba, well respect this specific bug i will continue the monday due i not have network connection 24/7 neither in the weekends..

but please help: what i can do to trace with prints or debug the trace of the save states etc etc of the place directory!?

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:source code repo?
Next Topic:Mednafen x Improve graphics of Saturn
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ ]

Current Time: Sun May 5 01:01:03 CDT 2024
.:: Contact :: Home ::.

Powered by FUDforum.
Copyright © FUDforum Bulletin Board Software