Fix device recovery issues on CODO maps >359
This commit is contained in:
parent
addcaddb8c
commit
0c462c1152
@ -1655,6 +1655,21 @@ namespace Components
|
|||||||
image->delayLoadPixels = image359.loaded;
|
image->delayLoadPixels = image359.loaded;
|
||||||
image->name = image359.name;
|
image->name = image359.name;
|
||||||
|
|
||||||
|
// CODO makes use of additional enumerator values (9, 10, 11) that don't exist in IW4
|
||||||
|
// We have to translate them. 9 is for Reflection probes, 11 is for Compass, 10 is for Lightmap
|
||||||
|
switch (image->category)
|
||||||
|
{
|
||||||
|
case 9:
|
||||||
|
image->category = Game::ImageCategory::IMG_CATEGORY_AUTO_GENERATED;
|
||||||
|
break;
|
||||||
|
case 10:
|
||||||
|
image->category = Game::ImageCategory::IMG_CATEGORY_LIGHTMAP;
|
||||||
|
break;
|
||||||
|
case 11:
|
||||||
|
image->category = Game::ImageCategory::IMG_CATEGORY_LOAD_FROM_FILE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Used for later stuff
|
// Used for later stuff
|
||||||
(&image->delayLoadPixels)[1] = image359.pad3[1];
|
(&image->delayLoadPixels)[1] = image359.pad3[1];
|
||||||
}
|
}
|
||||||
|
@ -98,6 +98,19 @@ namespace Game
|
|||||||
DVAR_FLAG_NONEXISTENT = 0xFFFFFFFF //no such dvar
|
DVAR_FLAG_NONEXISTENT = 0xFFFFFFFF //no such dvar
|
||||||
} dvar_flag;
|
} dvar_flag;
|
||||||
|
|
||||||
|
enum ImageCategory : char
|
||||||
|
{
|
||||||
|
IMG_CATEGORY_UNKNOWN = 0x0,
|
||||||
|
IMG_CATEGORY_AUTO_GENERATED = 0x1,
|
||||||
|
IMG_CATEGORY_LIGHTMAP = 0x2,
|
||||||
|
IMG_CATEGORY_LOAD_FROM_FILE = 0x3,
|
||||||
|
IMG_CATEGORY_RAW = 0x4,
|
||||||
|
IMG_CATEGORY_FIRST_UNMANAGED = 0x5,
|
||||||
|
IMG_CATEGORY_WATER = 0x5,
|
||||||
|
IMG_CATEGORY_RENDERTARGET = 0x6,
|
||||||
|
IMG_CATEGORY_TEMP = 0x7,
|
||||||
|
} ;
|
||||||
|
|
||||||
enum DvarSetSource
|
enum DvarSetSource
|
||||||
{
|
{
|
||||||
DVAR_SOURCE_INTERNAL = 0x0,
|
DVAR_SOURCE_INTERNAL = 0x0,
|
||||||
|
Loading…
Reference in New Issue
Block a user