Author Topic: Issues when renaming folders  (Read 5529 times)

0 Members and 1 Guest are viewing this topic.

Offline Tormento

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Issues when renaming folders
« on: April 20, 2014, 09:13 PM »
Nothing too much annoying, but i have a little problem :

I have my games in different directories, and when i change a folder name (on the SD card from the PC), and put the SD back in the SD2SNES, the directorires don't "update", and keep the same names as before... which prevents my games from lauching, since the directory SD2SNES shows does not exist anymore... any ideas? Thanks!

(just to be clear, i'm not talking about the SD2SNES folders, but the folders that contain the roms)
« Last Edit: April 21, 2014, 12:41 AM by Tormento »

Offline kmksoulja

  • Sr. Member
  • ****
  • Posts: 261
  • Karma: +12/-0
    • View Profile
Re: Issues when renaming folders
« Reply #1 on: April 21, 2014, 03:57 AM »
you have to add or delete a rom on your sd card and reinsert and power on to make it write the database listing again.

Offline Tormento

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Issues when renaming folders
« Reply #2 on: April 21, 2014, 10:22 AM »
you have to add or delete a rom on your sd card and reinsert and power on to make it write the database listing again.

Alright, thanks a lot mate!

Offline lee4

  • codetype specialist
  • Hero Member
  • *****
  • Posts: 781
  • Karma: +45/-0
    • View Profile
    • gamehacking.org
Re: Issues when renaming folders
« Reply #3 on: April 22, 2014, 08:04 AM »
or
just delete
sd2snes.db and sd2snes.dir files
inside sd2snes folder
ED64 v2.0, 3.0 & X7 | EDMD v3 | MEGAED X7 M15 v2.01 | TED v2.4 | EDN8 v1.2N | SED v2.1 | SD2SNES rev E1 & PRO rev.B | EDGB v1.1 & X7 M17 rev B | EDGBA X5 M16 rev A
Super NT | Mega SG | Super Retro Advance | SGB v1 | PCE+SSD3

Offline ikari_01

  • Sr. Member
  • ****
  • Posts: 325
  • Karma: +80/-0
    • View Profile
Re: Issues when renaming folders
« Reply #4 on: April 22, 2014, 06:04 PM »
Good find, thanks. It’s a bug indeed. I’m generating a footprint (CRC of all file names concatenated) to determine whether a database rebuild is necessary but don’t take into account the directory names.

As has already been pointed out, if you change (add/remove/rename) any ROM file (not directory) on the card it should detect the change and rebuild the database. Deleting the database files works as well.

I'm thinking of scrapping the whole database generation altogether because I find it sort of annoying :) Whenever you change the contents you have to go through all the database generation stuff. Also with many files on the card even the simple scan ("Loading ...") takes quite long.
So removing database generation would speed up bootup but it would also slightly slow down browsing (which is zero delay at the moment) because the directories would have to be read and sorted on the fly. A folder with a couple thousand files can take some seconds to scan.

What would you prefer?

Offline KalessinDB

  • Full Member
  • ***
  • Posts: 168
  • Karma: +12/-0
    • View Profile
Re: Issues when renaming folders
« Reply #5 on: April 23, 2014, 10:42 AM »
I am but one man, but my vote is for faster bootup/slower browsing.  Reason being, I'm in the habit of splitting my directories anyway -- typically 2-3 letters worth of games in one directory.  Many/most other flash carts other than the SD2SNES would completely choke on a directory with thousands of roms, so it's just habit for me.
Attempting a complete NTSC-U NES set.  Sell me your games!
What I've Got.  253/677 licensed games, 39/95 unlicensed games (drawing # from NA's "semi-official" list