Opened 22 years ago

Closed 20 years ago

Last modified 6 years ago

#7252 closed feature request (duplicate)

Secondary data file path

Reported by: SF/ghoost Owned by: SF/ender
Priority: normal Component: --Other--
Version: Keywords:
Cc: Game:

Description

i think it would be nice if i can set a path for a dir extra dir wich includes the mp3audio tracks. so you need the mp3 files only one for the same game in diferent languages. e.g. monkey installed in german and english and in a different dir the audio files.

Ticket imported from: #650677. Ticket imported from: feature-requests/68.

Attachments (1)

extrapath.patch (2.8 KB ) - added by fingolfin 20 years ago.
Patch which makes extrapath used by all file operations

Download all attachments as: .zip

Change History (13)

comment:1 by fingolfin, 21 years ago

Why not just use symlinks / aliasa / shortcuts (depending on what OS you are on) ?

comment:2 by SF/logicdeluxe, 21 years ago

The idea is nice, but it doesn't seem to work with Windows. ScummVM then says: File track17.mp3 not found File track17.ogg not found Track 17 not available in compressed format

Though I have created a link called track17.ogg A dir in a command line window lists it as track17.ogg.lnk Is there a way ScummVM could read such files? It would be nice indeed. I thing this has to be implemented explicitely since the stupid DOS doesn't it automatically the way Linux does it.

Besides mp3/ogg from CD tracks, the same usefull thing could be done with the comi.la0, comi.la1, musdisk1.bun etc. with CMI since they also are the same between different language versions.

comment:3 by fingolfin, 21 years ago

Summary: path configuration for mp3filesSecondary data file path

comment:4 by fingolfin, 21 years ago

We definitely are not going to add a "MP3 file path" or anything like that - it's a far too limited concept.

*Maybe* we can add a more generic "secondary data path" feature. That is, in addition to the normal path to the game, one could specify a second path; if a given file is not found in the primary path, the secondary path would be searched. That would essentially solve your problem, but would be flexible enough to cover other cases, too (e.g. Vorbis files; or you could have multiple language versions of COMI, where you only have to duplicate LANGUAGE.BND).

comment:5 by SF/kaminari, 21 years ago

It could also help with Indy 4 FM-Towns, where the indy4.sou audio file is located at the root of the CD but used by both English and Japanese data files.

Although for that specific game, the clean solution would be to point the path argument to the root of the CD and let ScummVM choose the appropriate language folder (I4E or I4K) according to the language argument. For now, it's possible to run the game -- but without speech, except by copying everything onto the HD which is a big no-no for me.

comment:6 by eriktorbjorn, 20 years ago

Ender, is this what your "extrapath" is for?

comment:7 by eriktorbjorn, 20 years ago

Owner: set to SF/ender

comment:8 by fingolfin, 20 years ago

The extrapath does this partially, but really only "partially". That's so because we currently only use "extrapath" in a few places, and only "explicitly".

On my local box, I modified base/main.cpp to add the "extrapath" to the end of the list of default pathes we search. This covers both the current purpose of extrapath (storage location for videos), as well as all the others requested here.

Attached you'll find the simple patch doing that.

by fingolfin, 20 years ago

Attachment: extrapath.patch added

Patch which makes extrapath used by all file operations

comment:9 by sev-, 20 years ago

so, could we add global extrapath?

comment:10 by SF/ender, 20 years ago

Already been done (see RFE #1001160, that you closed earlier :)

comment:11 by SF/ender, 20 years ago

Resolution: duplicate
Status: newclosed

comment:12 by digitall, 6 years ago

Component: --Other--
Note: See TracTickets for help on using tickets.