Saveload: Tidy up logging of chunk IDs
Add helper to dump chunk IDs as strings Avoid duplicate logging of load steps for upstream load paths
This commit is contained in:
@@ -125,6 +125,13 @@ struct ChunkHandler {
|
||||
ChunkSaveLoadSpecialProc *special_proc = nullptr;
|
||||
};
|
||||
|
||||
struct ChunkIDDumper {
|
||||
const char *operator()(uint32_t id);
|
||||
|
||||
private:
|
||||
char buffer[5];
|
||||
};
|
||||
|
||||
template <typename F>
|
||||
void SlExecWithSlVersion(SaveLoadVersion use_version, F proc)
|
||||
{
|
||||
|
Reference in New Issue
Block a user