Detect if save file exists?

Discussion and help for Easy Save 3
Post Reply
David_Nightcap
Posts: 17
Joined: Sun Apr 12, 2020 1:18 pm

Detect if save file exists?

Post by David_Nightcap »

Hi there.

I'm trying to build a main menu that detects if there is an existing save file, but I can't seem to find a way to do it in the examples.
Is there a way to do it?

I"m using:

Code: Select all

        settings.location = ES3.Location.File;
        settings.directory = ES3.Directory.PersistentDataPath;
I'm also developing on Switch which uses other settings.
We can discuss that elsewhere if needed due to NDA.

My plan was to have the main menu look for the save file and if it exists, show a CONTINUE button.
Likewise, when hitting NEW GAME, it would popup a warning saying there is already existing data and if you're sure you want to erase it.

Thanks!

EDIT: I found the "File I/O" section of the help, but all the links go the the spreadsheet page.
https://docs.moodkie.com/easy-save-3/es ... /features/
David_Nightcap
Posts: 17
Joined: Sun Apr 12, 2020 1:18 pm

Re: Detect if save file exists?

Post by David_Nightcap »

Aaaand shortly after I discovered the "File I/O" links, I noticed ES3.FileExists and started digging.
Tested it out, and that will work for me on PC for sure!

Any idea if it will work on Switch?
User avatar
Joel
Moodkie Staff
Posts: 4848
Joined: Wed Nov 07, 2012 10:32 pm

Re: Detect if save file exists?

Post by Joel »

Hi there,

Glad you found the method.

Unfortunately I can't provide advice for Switch as they require a prohibitively expensive license to use their API (we've been approached by them in the past, so we don't take any risks regarding this).

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply