Forum rules - please read before posting.

Suggestion: Make members in classes implementing iSaveFileHandler and iFileFormatHandler virtual

edited June 2021 in Technical Q&A

So I'm trying to override the path to where savegames are stored.

I want everything to behave like SaveFileHandler_SystemFile but save to another location. Unfortunately none of the members in SaveFileHandler_SystemFile are marked as virtual so I can't just override the GetSaveDirectory method in my subclass.
Copying the whole content of the SaveFileHandler_SystemFile would be very un-DRY and lead to missing out on all coming updates made to SaveFileHandler_SystemFile.

I suggest the same changes be made to SaveFileHandler_PlayerPrefs and the classes implementing iFileFormatHandler.

Thanks.

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.