diff --git a/src/filesrch.c b/src/filesrch.c index 98be1f39..e71b39d9 100644 --- a/src/filesrch.c +++ b/src/filesrch.c @@ -552,7 +552,7 @@ filestatus_t filesearch(char *filename, const char *startpath, const UINT8 *want char exttable[NUM_EXT_TABLE][7] = { // maximum extension length (currently 4) plus 3 (null terminator, stop, and length including previous two) "\5.txt", "\5.cfg", // exec - "\5.wad", "\6.kart", /*"\5.pk3",*/ "\5.soc", "\5.lua"}; // addfile + "\5.wad", "\6.kart", "\5.pk3", "\5.soc", "\5.lua"}; // addfile char filenamebuf[MAX_WADFILES][MAX_WADPATH]; diff --git a/src/filesrch.h b/src/filesrch.h index 75fd70af..94c43ffa 100644 --- a/src/filesrch.h +++ b/src/filesrch.h @@ -56,7 +56,7 @@ typedef enum EXT_LOADSTART, EXT_WAD = EXT_LOADSTART, EXT_KART, - //EXT_PK3, + EXT_PK3, EXT_SOC, EXT_LUA, // allowed even if not HAVE_BLUA so that we can yell on load attempt NUM_EXT, diff --git a/src/m_menu.c b/src/m_menu.c index 8ef71be7..907a6d74 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -4426,7 +4426,7 @@ static void M_Addons(INT32 choice) addonsp[EXT_CFG] = W_CachePatchName("M_FCFG", PU_STATIC); addonsp[EXT_WAD] = W_CachePatchName("M_FWAD", PU_STATIC); addonsp[EXT_KART] = W_CachePatchName("M_FKART", PU_STATIC); - //addonsp[EXT_PK3] = W_CachePatchName("M_FPK3", PU_STATIC); + addonsp[EXT_PK3] = W_CachePatchName("M_FPK3", PU_STATIC); addonsp[EXT_SOC] = W_CachePatchName("M_FSOC", PU_STATIC); addonsp[EXT_LUA] = W_CachePatchName("M_FLUA", PU_STATIC); addonsp[NUM_EXT] = W_CachePatchName("M_FUNKN", PU_STATIC); @@ -4872,7 +4872,7 @@ static void M_HandleAddons(INT32 choice) case EXT_SOC: case EXT_WAD: case EXT_KART: - //case EXT_PK3: + case EXT_PK3: COM_BufAddText(va("addfile \"%s%s\"", menupath, dirmenu[dir_on[menudepthleft]]+DIR_STRING)); break; default: