Opened 12 years ago

Last modified 4 months ago

#7529 new enhancement

PSP: scummvm.ini should be in the same dir as the EBOOT-file

Reported by: SF/solid5nake Owned by: joostp
Priority: low Component: Port: PSP
Keywords: Cc:
Game:

Description

The ini-file should be placed in the same directory as the EBOOT-file... like it's the case with mostly all other PSP-homebrew-apps.

Currently it needs to be in the root of the memory-stick (ms0:/scummvm.ini).
Not so nice if you want to keep your PSP clean and organized. ;-)

This should be fixed together with the savepath-bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=1615115&group_id=37116&atid=418820

Thanks a lot!

Ticket imported from: #1624614. Ticket imported from: feature-requests/345.

Change History (13)

comment:1 Changed 12 years ago by fingolfin

Owner: set to joostp

comment:2 Changed 12 years ago by fingolfin

Status: newpending

comment:3 Changed 12 years ago by fingolfin

Joost, is this to be considered a bug report or a feature request?

comment:4 Changed 12 years ago by joostp

Aaaaah, the "When are you finally going to put the .ini file in the *proper location*?!" saga continues...

The location is fixed because it was more convenient during development and it's a personal preference of mine, since you can now safely update ScummVM without risking "accidentally" losing your config file. The same goes for your savegames. I don't think 1 file and 1 directory in the root of the memory stick constitutes 'clutter', but whatever.

I'll try to think of a solution that is satisfactory to both sides. (suggestions are welcome!)
In the meantime, I'll change this to a feature request, as it definitely is NOT a bug, but intended behaviour.

comment:5 Changed 12 years ago by joostp

Priority: normallow

comment:6 Changed 12 years ago by SF/solid5nake

If every homebrew-developer would say "1 file and 1 directory in the root doesn't clutter up the root" then we definitely would have a pretty big mess. ;-)

I use dozens of homebrew-apps (console-emulators, ported games, etc.) on my PSP... and they all keep their stuff (configs, savegames, etc.) within their own directory. Simply because it's how everybody is expecting it to be.
I also don't see that much "convenience" for the update-procedure, since I guess that pretty much everyone is clever enough to backup his configuration before overwriting the currently used directory. (Besides... you usally just have to overwrite the EBOOT.PBP-file to upgrade, and not the whole directory. So there is no "risk" anyway.)

It shouldn't be much of a problem to include a small IF-statement... I guess. ;-)

if (configFoundInRoot())
readFromRootAndUseIt()
else if (configFoundInBaseDir())
readFromBaseDirAndUseIt()
else
createNewConfigInBaseDir()
endif

As for the savegame-path:
It should be whereever the entry in the config-file points to.

comment:7 Changed 12 years ago by SF/solid5nake

Status: pendingnew

comment:8 Changed 12 years ago by joostp

The convenience comes from being able to use the same memory stick in both a 1.00 and 1.50 FW PSP with the same config and savegames, and being able to run different versions of ScummVM concurrently for (regression-)testing. Also, the releases contain the version number in the directory, so no, you wouldn't just overwrite the EBOOT.

Anyway, the solution you proposed sounds ok to me in theory.
And since it's "just a simple IF", I look forward to your patch which implements this (oh, and feel free to fix the savepath issue while you're at it =)).

comment:9 Changed 12 years ago by SF/solid5nake

So... this means you won't implement it by yourself?! :-)

comment:10 Changed 12 years ago by joostp

I would/will implement it, given enough time.

Unfortunately I have very little time to spend on ScummVM (and hobby projects in general) at the moment, and when I do get back to working on ScummVM/the port, I will first spend time fixing real bugs.

So, if this 'problem' really bothers you much, you're free to contribute a patch. Else, wait till I get around to it. :)

comment:11 Changed 12 years ago by SF/solid5nake

Since I'm developing and maintaining several opensource-projects myself I fully understand you in terms of "little time". :-)

Unfortunatley I'm not that fluent in coding C++ as I am in other languages. So I guess I'll (have to) wait till you find the time to implement it.

And it's not just that it bothers me in particular. As you also mentioned: This "problem" already is a saga.
Having the issue solved would bring this app one step closer to perfection. ;-)

comment:12 Changed 16 months ago by csnover

Component: Ports

comment:13 Changed 4 months ago by digitall

Component: PortsPort: PSP
Note: See TracTickets for help on using tickets.