scummvm.ini in ScummVM root dir

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

dariwonka
Posts: 16
Joined: Thu May 14, 2020 1:14 pm

Re: scummvm.ini in ScummVM root dir

Post by dariwonka »

Dark-Star wrote: Sun Apr 18, 2021 9:55 pm
invwar wrote: Sat Apr 03, 2021 2:06 pm Sure, but ScummVM is since years not anymore a portable software per se. The Windows Installer is the official preferred method. But I definitely would also like to have the "Zipfile" version declared as fully portable.
ScummVM is perfectly portable. You just need the EXE file and some DLLs. Even better: If you compile it yourself you can get a single EXE file that runs without any DLLs at all, this is how I've been setting up a portable version of ScummVM.

The installer is just convenience, no system files or anything else needs to be "installed" outside the ScummVM install dir.
But what about the .ini file in the scummvm directory? It wont be read unless you start scummvm with a .bat file calling the .ini file too.

Without that possibility, scummvm is not fully portable
User avatar
rootfather
ScummVM Team Member
Posts: 94
Joined: Tue Mar 31, 2015 11:59 am
Location: Germany
Contact:

Re: scummvm.ini in ScummVM root dir

Post by rootfather »

That's correct, the scummvm.ini file is stored in the %APPDATA% directory on Win32 or inside the user's home directory on Linux. In order to have a fully portable version, we'd have to implement something like "if there's a local scummvm.ini in the same folder as the executable, then run this, otherwise, use the proper configuration location instead".
User avatar
Dark-Star
Posts: 146
Joined: Sun Oct 30, 2005 9:36 pm
Location: Reutlingen, GERMANY

Re: scummvm.ini in ScummVM root dir

Post by Dark-Star »

rootfather wrote: Fri Apr 23, 2021 8:13 pm That's correct, the scummvm.ini file is stored in the %APPDATA% directory on Win32 or inside the user's home directory on Linux. In order to have a fully portable version, we'd have to implement something like "if there's a local scummvm.ini in the same folder as the executable, then run this, otherwise, use the proper configuration location instead".
Correct, that's exactly what was suggested in this thread to make ScummVM fully portable (i.e. without needing a bat file).

All other aspects are already portable (i.e. no system DLL installation required, relative paths are supported in the INI file, etc.)
User avatar
WindlePoons
Posts: 90
Joined: Wed Jan 28, 2009 2:06 pm
Location: Austria
Contact:

Re: scummvm.ini in ScummVM root dir

Post by WindlePoons »

rootfather wrote: Fri Apr 23, 2021 8:13 pm That's correct, the scummvm.ini file is stored in the %APPDATA% directory on Win32 or inside the user's home directory on Linux. In order to have a fully portable version, we'd have to implement something like "if there's a local scummvm.ini in the same folder as the executable, then run this, otherwise, use the proper configuration location instead".
I remembered the installation of Total Commander:
You do not have the required permissions to view the files attached to this post.
User avatar
Dark-Star
Posts: 146
Joined: Sun Oct 30, 2005 9:36 pm
Location: Reutlingen, GERMANY

Re: scummvm.ini in ScummVM root dir

Post by Dark-Star »

WindlePoons wrote: Sun Apr 25, 2021 6:58 pm
rootfather wrote: Fri Apr 23, 2021 8:13 pm That's correct, the scummvm.ini file is stored in the %APPDATA% directory on Win32 or inside the user's home directory on Linux. In order to have a fully portable version, we'd have to implement something like "if there's a local scummvm.ini in the same folder as the executable, then run this, otherwise, use the proper configuration location instead".
I remembered the installation of Total Commander:
I think this would be making it overly complicated for the 99% of users that don't care about a portable installation. Also, this setting itself must be stored somewhere, Total Commander uses the registry for it, which would again run counter to the "portable app" idea....
invwar
Posts: 30
Joined: Mon Jul 28, 2008 11:35 am

Re: scummvm.ini in ScummVM root dir

Post by invwar »

Dark-Star wrote: Wed Apr 28, 2021 1:07 pm I think this would be making it overly complicated for the 99% of users that don't care about a portable installation. Also, this setting itself must be stored somewhere, Total Commander uses the registry for it, which would again run counter to the "portable app" idea....
That's why you usually hide such an option in an advanced setup option on the first Next button/install dir selection on the Installer. 99% will just click through everything, but if you are interested, you can choose. I agree, Installer should be straight forward for easy use.
User avatar
WindlePoons
Posts: 90
Joined: Wed Jan 28, 2009 2:06 pm
Location: Austria
Contact:

Re: scummvm.ini in ScummVM root dir

Post by WindlePoons »

invwar wrote: Sat May 01, 2021 6:00 amThat's why you usually hide such an option in an advanced setup option on the first Next button/install dir selection on the Installer. 99% will just click through everything, but if you are interested, you can choose. I agree, Installer should be straight forward for easy use.
Correct.
Image
User avatar
Dark-Star
Posts: 146
Joined: Sun Oct 30, 2005 9:36 pm
Location: Reutlingen, GERMANY

Re: scummvm.ini in ScummVM root dir

Post by Dark-Star »

You're missing the point:
* portable apps don't use an installer, which is the whole point of a portable app. So there is no way to somehow set that setting
* if you add such an option to an installer, you are suddenly relying on the registry (or some other system-global option store), which is also something that you want to avoid for a portable application
invwar
Posts: 30
Joined: Mon Jul 28, 2008 11:35 am

Re: scummvm.ini in ScummVM root dir

Post by invwar »

It's true, that portable apps don't need to use an installer. But unfortunately, most of the portable apps I am downloading actually use an installer. I don't know why, but it seems like its also quite common for portable apps. And I agree, I am also irritated because of this, as I don't want to install all apps and these installer are not even zip compatible most of the time.
User avatar
rootfather
ScummVM Team Member
Posts: 94
Joined: Tue Mar 31, 2015 11:59 am
Location: Germany
Contact:

Re: scummvm.ini in ScummVM root dir

Post by rootfather »

I think we can all agree that an installer for a portable application is pretty much useless.

_If_ we ever consider implementing a portable mode, then it'll be a simple .zip archive with either a special .ini file to trigger the portable mode or a configuration parameter at compilation time.
User avatar
Raziel
ScummVM Porter
Posts: 1374
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet

Re: scummvm.ini in ScummVM root dir

Post by Raziel »

Would it help if there was a launcher option in "MISC" (together with the pathes) to choose where and what scummvm.ini file to use?

I know it could lead to a catch-22 having the location and file(name) of the .ini file inside the .ini file itself, but it would be really conveniant to not use the console to start ScummVM with different (test) .inis.
User avatar
rootfather
ScummVM Team Member
Posts: 94
Joined: Tue Mar 31, 2015 11:59 am
Location: Germany
Contact:

Re: scummvm.ini in ScummVM root dir

Post by rootfather »

Raziel wrote: Mon May 10, 2021 3:11 pm Would it help if there was a launcher option in "MISC" (together with the pathes) to choose where and what scummvm.ini file to use?

I know it could lead to a catch-22 having the location and file(name) of the .ini file inside the .ini file itself, but it would be really conveniant to not use the console to start ScummVM with different (test) .inis.
I'm not sure, I have the strong feeling that this might be very, VERY confusing. I think the location for the .ini file itself should be fixed (unless overridden by the command line) or live inside the same directory as the ScummVM executable, if we consider a hypothetical portable mode.
Post Reply