Feature Request: Console feedback on Successful Save #204
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hitting the Save icon outdoors (linux, aarch64) I see savefile updated, but no console confirmation.
In game/boe.actions.cpp do_save, i added a message incase (saved) not true, but that yields no console text either.
Exploring this now.
Common culprits for this sort of thing: Writing to the wrong buffer; writing to the right buffer but on a thread that can't access it directly; writing to the right buffer on the right thread, but forgetting to check if it's full and gets cleared before your message ever shows up. Interested in this all the same.
added to game/boe.actions.cpp
That is complete case 5: sorry I don't know how to do the github contributing to project yet.
I get console message for successful save now.
Unfortunately if i set savefile dir to unwriteable, savefile doesn't get created, but I still get "Game saved" because save_party() in fileio/fileio_party.cpp returns true no matter what.
some more reading shows we can catch an error after C++ open()
The actual open() is found in src/fileio/gzstream/gzstream.h
thanks wrldwzrd89! I hope i'm not wasting people's time!
Note that
gzstreamis an external library, so we shouldn't be changing it.Probably the reason your first version didn't work was a missing
need_reprint = true, as the in-game console won't be redrawn unless that is true.Also, there already is notification on successful save, though not on error...
With current master git, i do not get a save game notification in game console.
Hm, you're saving via the Save button while outdoors, right? I guess I can test that method, maybe there's something different about it…