SVM Portable - No more "Logs" & "Saved games" folders

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

Moderator: ScummVM Team

Post Reply
hellishvictor
Posts: 3
Joined: Fri Feb 21, 2020 5:39 pm

SVM Portable - No more "Logs" & "Saved games" folders

Post by hellishvictor »

Hi. It would be awesome if the data stored on the Roaming folder (folders "Logs" & "Saved games" and the scummvm.ini), were located on the same folder where SVM is, so that way it can be used as portable on a USB thumbdrive, and leave no traces when is used on a different computer.

In part, I've solved it creating a shortcut with the -c parameter pointing to the .ini that I have in the install folder (ScummVM.exe -c scummvm.ini), so its not created anymore on Roaming, but still are created the folders "Logs" and "Saved games" (which I've already assigned it with "savepath=F:\Games\Saved" on scummvm.ini). Using WinHex and replacing "\Saved games" (Hex: 5C53617665642067616D6573) with zeros fixed that and the folder is no longer created, while the autosaves and saved games are stored on the path assigned on the .ini file. However, the Logs folder still is created; there should exist a checkbox for let the user choose if want that Logs files are created o not, like Stella has. Till then, I'll add the "C:\Users\UserName\AppData\Roaming\ScummVM" path to CCleaner for remove it.
dariwonka
Posts: 17
Joined: Thu May 14, 2020 1:14 pm

Re: SVM Portable - No more "Logs" & "Saved games" folders

Post by dariwonka »

create .bat

Code: Select all

@echo off
start scummvm.exe --no-console -c ".\scummvm.ini"
.ini example:

[scummvm]
savepath=.\Saved games

[comi-es]
path=.\games\Monkey Island 3 - The Curse of Monkey Island
dimuse_tempo=10
description=Monkey Island 3: The Curse of Monkey Island
mute=false
speech_volume=192
talkspeed=60
engineid=scumm
subtitles=true
gameid=comi
language=es
object_labels=true
sfx_volume=192
music_volume=192
platform=windows
music_driver=auto
opl_driver=auto
speech_mute=false
guioptions=sndNoMIDI noAspect lang_English

[dig-es]
path=.\games\The Dig
dimuse_tempo=10
description=The Dig
mute=false
speech_volume=192
talkspeed=85
User avatar
criezy
ScummVM Developer
Posts: 955
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Re: SVM Portable - No more "Logs" & "Saved games" folders

Post by criezy »

Also about a month ago I added the possibility to specify the path for the log file:

Code: Select all

scummvm.exe --logfile=.\scummvm.log
I have not tested it, but I think it should work if you set it in the scummvm.ini file as well.

This is available in recent daily builds and will be in the next release as well.
User avatar
Raziel
ScummVM Porter
Posts: 1538
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: SVM Portable - No more "Logs" & "Saved games" folders

Post by Raziel »

Can this be made into a launcher/.ini option aswell?

I don't start scummvm from console, but always loose focus of the game window when some debug stuff gets printed.
User avatar
criezy
ScummVM Developer
Posts: 955
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Re: SVM Portable - No more "Logs" & "Saved games" folders

Post by criezy »

This is already in the .ini file, and as I wrote above I think it should work if you manually edit your ini file to add it.
However this option does not prevent messages being printed in a console or terminal. By default the SDL backend sends those both to stdout/stderr and to a log file. This option only controls where that log file is created.
User avatar
Raziel
ScummVM Porter
Posts: 1538
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: SVM Portable - No more "Logs" & "Saved games" folders

Post by Raziel »

Ah, should have correctly used my glasses then...sorry, next time i'll think of it, promise :-)

Thank you
Post Reply