From 81ef1a8b7f7d63c72b92f779d73a8b2b0f8158c1 Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 27 Sep 2012 23:29:46 +0200 Subject: new levelinfo format and a couple of fixes --- src/levelinfo_old.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/levelinfo_old.h') diff --git a/src/levelinfo_old.h b/src/levelinfo_old.h index d8cb888..50760c5 100644 --- a/src/levelinfo_old.h +++ b/src/levelinfo_old.h @@ -14,13 +14,13 @@ struct LevelInfo_Section { }; struct LevelInfo_Entry { - u8 world; - u8 level; - u8 reserved1; - u8 reserved2; + u8 worldSlot; + u8 levelSlot; + u8 displayWorld; + u8 displayLevel; u8 nameLength; u8 reserved3; - u16 flags; + u16 reserved4; u32 nameOffset; }; @@ -50,7 +50,7 @@ inline char *LevelInfo_GetName(void *file, LevelInfo_Entry *entry) { } void LevelInfo_Prepare(FileHandle *fh); -LevelInfo_Entry *LevelInfo_Search(void *file, int world, int level); +LevelInfo_Entry *LevelInfo_SearchSlot(void *file, int world, int level); #endif -- cgit v1.2.3 From 26f5315e65c74c269b6eb1a190cb54fcf19d16a7 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 28 Sep 2012 05:24:15 +0200 Subject: added level flags to levelinfo --- src/levelinfo_old.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/levelinfo_old.h') diff --git a/src/levelinfo_old.h b/src/levelinfo_old.h index 50760c5..ed43757 100644 --- a/src/levelinfo_old.h +++ b/src/levelinfo_old.h @@ -20,7 +20,7 @@ struct LevelInfo_Entry { u8 displayLevel; u8 nameLength; u8 reserved3; - u16 reserved4; + u16 flags; u32 nameOffset; }; -- cgit v1.2.3