4 Feb 2012 17:07
save_index file - purposes and current state
Oleg Tsarev <zabivator <at> gmail.com>
2012-02-04 16:07:29 GMT
2012-02-04 16:07:29 GMT
Hello guys, I investigated "save_index" and confused by several things. General questions: 1) Which the reason create save_index file? If I right understood, only two purposes: a) decrease time of open "Load" dialog b) decrease time of render clicked save - show preview, game description, company name, etc. Perfomance reason, other words. Please approve/disapprove my understanding. 2) Unfortunatelly, right now "save_index" does not used by anywhere in game. I see just single call of save_index: write_save_index() (I skipped definition of class and definition of methods): src/savegame.hpp: /** Update the save_index */ src/dialogs.cpp: config& cfg = savegame::save_index::save_summary(i->name); src/dialogs.cpp: savegame::save_index::write_save_index(); You can check this by "find ./src -exec grep save_index". From this point of view, right now save_index nobody used. I also checked it by stacktraces *(see end of letter) In typical game usage nowhere is used :( 3) I supposed - save_index used before, but right now code with usage removed. I investigated revision history by git bisect and can't confirm this -(Continue reading)
RSS Feed