mirror of https://github.com/red-prig/fpPS4.git
SKIP_UNKNOW_TILING hack
This commit is contained in:
parent
cb96613478
commit
6dec6012b5
|
@ -56,6 +56,7 @@ uses
|
|||
ps4_videodrv,
|
||||
vMemory,
|
||||
vImageManager,
|
||||
vImageTiling,
|
||||
vFlip,
|
||||
|
||||
trace_manager;
|
||||
|
@ -87,6 +88,7 @@ begin
|
|||
Writeln(' IMAGE_LOAD_HACK //Never reload textures (improves performance on many games)');
|
||||
Writeln(' DISABLE_SRGB_HACK //Disables hacked SRGB display');
|
||||
Writeln(' DISABLE_FMV_HACK //Disables in-game movies');
|
||||
Writeln(' SKIP_UNKNOW_TILING //Skip unknown tiling texture types');
|
||||
|
||||
Exit(False);
|
||||
end;
|
||||
|
@ -134,6 +136,7 @@ begin
|
|||
'IMAGE_LOAD_HACK' :vImageManager.IMAGE_LOAD_HACK:=True;
|
||||
'DISABLE_SRGB_HACK' :vFlip.SRGB_HACK:=False;
|
||||
'DISABLE_FMV_HACK' :ps4_libsceavplayer.DISABLE_FMV_HACK:=True;
|
||||
'SKIP_UNKNOW_TILING' :vImageTiling.SKIP_UNKNOW_TILING:=True;
|
||||
else;
|
||||
end;
|
||||
end;
|
||||
|
|
|
@ -7,7 +7,6 @@ interface
|
|||
uses
|
||||
SysUtils,
|
||||
RWLock,
|
||||
g23tree,
|
||||
ps4_shader,
|
||||
ps4_tiling,
|
||||
Vulkan,
|
||||
|
@ -21,6 +20,9 @@ uses
|
|||
Procedure LoadFromBuffer(cmd:TvCustomCmdBuffer;image:TObject); //TvImage2
|
||||
function CheckFromBuffer(image:TObject):Boolean; //TvImage2
|
||||
|
||||
var
|
||||
SKIP_UNKNOW_TILING:Boolean=False;
|
||||
|
||||
implementation
|
||||
|
||||
uses
|
||||
|
@ -495,6 +497,7 @@ begin
|
|||
_Load_Thin_1dThin(cmd,TvImage2(image));
|
||||
|
||||
else
|
||||
if not SKIP_UNKNOW_TILING then
|
||||
Assert(false,'TODO tiling_idx:'+get_tiling_idx_str(TvImage2(image).key.params.tiling_idx));
|
||||
end;
|
||||
|
||||
|
@ -631,7 +634,8 @@ begin
|
|||
Result:=_Check_Thin_1dThin(TvImage2(image));
|
||||
|
||||
else
|
||||
Assert(false,'TODO');
|
||||
if not SKIP_UNKNOW_TILING then
|
||||
Assert(false,'TODO tiling_idx:'+get_tiling_idx_str(TvImage2(image).key.params.tiling_idx));
|
||||
end;
|
||||
|
||||
end;
|
||||
|
|
Loading…
Reference in New Issue