update miniclient

This commit is contained in:
zeromus 2020-04-06 03:39:05 -04:00
parent ca7c2d7d56
commit f3df253fe8
2 changed files with 13 additions and 2 deletions

View File

@ -106,9 +106,9 @@ int WriteBMP32(int width, int height, const void* buf, const char *filename)
{
u8* pixel = (u8*)buf + (height-i-1)*width*4;
pixel += (x*4);
elems_written += fwrite(pixel+2,1,1,file);
elems_written += fwrite(pixel+1,1,1,file);
elems_written += fwrite(pixel+0,1,1,file);
elems_written += fwrite(pixel+1,1,1,file);
elems_written += fwrite(pixel+2,1,1,file);
elems_written += fwrite(pixel+3,1,1,file);
}
fclose(file);
@ -306,10 +306,19 @@ int main(int argc, char **argv)
//placeholder for instance
void* psx = NULL;
ShockRenderOptions renderOpts;
renderOpts.deinterlaceMode = eShockDeinterlaceMode_Weave;
renderOpts.renderType = eShockRenderType_Normal;
renderOpts.scanline_start = 0;
renderOpts.scanline_end = 239;
renderOpts.skip = false;
shock_Create(&psx, REGION_NA, firmware);
shock_OpenTray(psx);
shock_SetDisc(psx,bin.disc);
shock_CloseTray(psx);
shock_SetRenderOptions(psx, &renderOpts);
shock_Peripheral_Connect(psx,0x01,ePeripheralType_DualShock);
shock_PowerOn(psx);

View File

@ -73,6 +73,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(ProjectDir)\..\..\..\..\output\dll\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
@ -80,6 +81,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(ProjectDir)\..\..\..\..\output\dll\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>