ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > Help and Support > Source: Creating files on save
Source: Creating files on save
  Author    Thread Reply to topic
Raziel
ScummVM Porter


Joined: 25 Oct 2005
Posts: 996
Location: A haunted Castle somewhere in the Bavarian Mountains
Source: Creating files on save 

Hi guys, maybe someone can spare a little bit of their time.

I'm trying to access a samba mount and use that as a repository for saved games from ScummVM.

In parallel i'm helping with the further development of my platforms samba installment.

I'm as far as being able to load and save games to the share, but not to create new states.

In short:
- If i try to save anything to a completely blank share, ScummVM will crash on trying to create the "timestamps" file (if i manually copy the file over first, it works fine, until)
- i try to create a NEW save state which isn't there, ScummVM will crash again on trying to create it.


So, my question would be, if someone could please tell me
- in what way ScummVM is "creating" a (yet missing) save state/timestamp
- where in the code this happens and
- why it is crashing on failing to do so instead of giving me an error/warning

I know it might be probably solved through our samba development, but i'd still be happy to get an error/warning instead of a crash

Thanks a lot

 Reply with quote  
Post Sat Jul 14, 2018 4:39 pm 
 View user's profile Send private message Visit poster's website
tsoliman
ScummVM Developer


Joined: 19 Jan 2011
Posts: 402
Location: USA
 

I think the timestamps file is related to the "cloud" feature. I disable that feature when building (I disable all of libcurl actually)

 Reply with quote  
Post Sun Jul 15, 2018 1:12 am 
 View user's profile Send private message Send e-mail
Raziel
ScummVM Porter


Joined: 25 Oct 2005
Posts: 996
Location: A haunted Castle somewhere in the Bavarian Mountains
 

It's not the timestamps file per se, but all files that need to be "created".
As i wrote if i copy the timestamps over it works until a new save state for any game has to be created.

Any pointers to the part of code that "creates" i.e. a save state from a newly installed game?

 Reply with quote  
Post Sun Jul 15, 2018 7:33 am 
 View user's profile Send private message Visit poster's website
Raziel
ScummVM Porter


Joined: 25 Oct 2005
Posts: 996
Location: A haunted Castle somewhere in the Bavarian Mountains
 

It's crashing in backends/saves/savefile.cpp, line 50

return _wrapped->write(dataPtr, dataSize);

Anything i could try (printf?) to furhter see why it's crashing?

dataPtr is 0x47478cf0
dataSize is 0x4
if that helps

 Reply with quote  
Post Sun Jul 15, 2018 7:51 am 
 View user's profile Send private message Visit poster's website
Raziel
ScummVM Porter


Joined: 25 Oct 2005
Posts: 996
Location: A haunted Castle somewhere in the Bavarian Mountains
 

Solved internally in the smbfs code.

Thanks for the help

 Reply with quote  
Post Sun Jul 22, 2018 10:38 am 
 View user's profile Send private message Visit poster's website
  Display posts from previous:      
Reply to topic

Forum Jump:
 



Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge