Skip to content

Is there a way to call the save method when the application crashes unplanned? #1601

Closed Answered by DelinWorks
10100010010001001010 asked this question in Q&A
Discussion options

You must be logged in to vote

there is actually no way for you to save a state of an application or a specific section of data into file system when the application in question goes into a crash state, you cannot recover from this state (i.e. memory access violation which is the most common) so you can't go to the section of your code that's responsible for saving, what I suggest you do and is the best practice is to make a copy of the save file when you launch the game and when the original save file loads successfully as to prevent overwriting the backup with corrupted data, this way when your save gets corrupted because the app crashed during the saving process then you have the backup file to load when your origin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 10100010010001001010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants