These work
Code: Select all
ES3.CacheFile();
settings = new ES3Settings(ES3.Location.Cache);
if (ES3.KeyExists(ItemTypes[whichItemType].name + "inventory"))
{
List<InventoryItem> listFromSave = ES3.Load(ItemTypes[whichItemType].name + "inventory", emptyList,settings);
List<InventoryItem> changedList = SetPhysicalWeaponsInListAndReturn(ItemTypes[whichItemType].name,listFromSave);
return changedList;
}
ES3.StoreCachedFile();
Code: Select all
ES3.CacheFile($"{Application.persistentDataPath}/{SaveProfileEtcControl.CurrentSaveProfFolder}/SaveFile.es3");
settings = new ES3Settings($"{Application.persistentDataPath}/{SaveProfileEtcControl.CurrentSaveProfFolder}/SaveFile.es3", ES3.Location.Cache);
if (ES3.KeyExists(ItemTypes[whichItemType].name + "inventory"))
{
List<InventoryItem> listFromSave = ES3.Load(ItemTypes[whichItemType].name + "inventory", emptyList,settings);
List<InventoryItem> changedList = SetPhysicalWeaponsInListAndReturn(ItemTypes[whichItemType].name,listFromSave);
return changedList;
}
ES3.StoreCachedFile($"{Application.persistentDataPath}/{SaveProfileEtcControl.CurrentSaveProfFolder}/SaveFile.es3");