Fixed Linux build.
Fixed small undiscovered bug in WII_IPC_HLE_Device_FileIO.cpp when looking at 0-length strings. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6745 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
6eff71b893
commit
8f9f1b64ff
|
@ -34,7 +34,7 @@ std::string HLE_IPC_BuildFilename(const char* _pFilename, int _size)
|
|||
std::string path_full = std::string(File::GetUserPath(D_WIIROOT_IDX));
|
||||
std::string path_wii(_pFilename);
|
||||
|
||||
if (path_wii[1] == '0')
|
||||
if ((path_wii.length() > 0) && (path_wii[1] == '0'))
|
||||
path_full += std::string("/title"); // this looks and feel like a hack...
|
||||
|
||||
// Replaces chars that FAT32 can't support with strings defined in /sys/replace
|
||||
|
|
|
@ -1821,7 +1821,8 @@ PC_TexFormat TexDecoder_Decode_RGBA(u32 * dst, const u8 * src, int width, int he
|
|||
);
|
||||
|
||||
// Copy the color arrays from the XMM registers to local variables in RAM:
|
||||
__declspec(align(16)) u32 colors0A[4], colors0B[4];
|
||||
GC_ALIGNED16(u32 colors0A[4]);
|
||||
GC_ALIGNED16(u32 colors0B[4]);
|
||||
_mm_store_si128((__m128i *)colors0A, rgb01230);
|
||||
_mm_store_si128((__m128i *)colors0B, rgb01450);
|
||||
|
||||
|
@ -1842,7 +1843,8 @@ PC_TexFormat TexDecoder_Decode_RGBA(u32 * dst, const u8 * src, int width, int he
|
|||
);
|
||||
|
||||
// Copy the color arrays from the XMM registers to aligned local variables in RAM:
|
||||
__declspec(align(16)) u32 colors1A[4], colors1B[4];
|
||||
GC_ALIGNED16(u32 colors1A[4]);
|
||||
GC_ALIGNED16(u32 colors1B[4]);
|
||||
_mm_store_si128((__m128i *)colors1A, rgb01231);
|
||||
_mm_store_si128((__m128i *)colors1B, rgb01451);
|
||||
|
||||
|
@ -1872,14 +1874,14 @@ PC_TexFormat TexDecoder_Decode_RGBA(u32 * dst, const u8 * src, int width, int he
|
|||
const __m128i cmprgb0rgb1 = _mm_cmpgt_epi32(c0cmp, c0shr);
|
||||
|
||||
// Copy the 2-bit indices from each DXT block:
|
||||
__declspec(align(16)) u32 dxttmp[4];
|
||||
GC_ALIGNED16(u32 dxttmp[4]);
|
||||
_mm_store_si128((__m128i *)dxttmp, dxt);
|
||||
|
||||
u32 dxt0sel = dxttmp[1];
|
||||
u32 dxt1sel = dxttmp[3];
|
||||
|
||||
// Copy the comparison results:
|
||||
__declspec(align(16)) u16 cmptmp[8];
|
||||
GC_ALIGNED16(u16 cmptmp[8]);
|
||||
_mm_store_si128((__m128i *)cmptmp, cmprgb0rgb1);
|
||||
|
||||
// Per each row written we alternate storing RGBA values from DXT0 and DXT1.
|
||||
|
|
Loading…
Reference in New Issue