mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
Merge branch 'master' of https://github.com/DHrpcs3/rpcs3
This commit is contained in:
commit
72bb0c842f
4 changed files with 15 additions and 10 deletions
|
@ -7,6 +7,7 @@ if (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
#add_definitions(-Wfatal-errors)
|
#add_definitions(-Wfatal-errors)
|
||||||
add_definitions(-w) # TODO: remove me
|
add_definitions(-w) # TODO: remove me
|
||||||
add_definitions(-fpermissive) # TODO: remove me
|
add_definitions(-fpermissive) # TODO: remove me
|
||||||
|
add_definitions(-g) # Debugging!!
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)
|
||||||
|
|
|
@ -35,19 +35,19 @@ bool vfsLocalFile::Open(const wxString& path, vfsOpenMode mode)
|
||||||
{
|
{
|
||||||
Close();
|
Close();
|
||||||
|
|
||||||
if(m_device)
|
// if(m_device)
|
||||||
{
|
// {
|
||||||
if(!m_file.Access(vfsDevice::GetWinPath(m_device->GetLocalPath(), path), vfs2wx_mode(mode))) return false;
|
// if(!m_file.Access(vfsDevice::GetWinPath(m_device->GetLocalPath(), path), vfs2wx_mode(mode))) return false;
|
||||||
|
|
||||||
return m_file.Open(vfsDevice::GetWinPath(m_device->GetLocalPath(), path), vfs2wx_mode(mode)) &&
|
// return m_file.Open(vfsDevice::GetWinPath(m_device->GetLocalPath(), path), vfs2wx_mode(mode)) &&
|
||||||
vfsFileBase::Open(vfsDevice::GetPs3Path(m_device->GetPs3Path(), path), mode);
|
// vfsFileBase::Open(vfsDevice::GetPs3Path(m_device->GetPs3Path(), path), mode);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
if(!m_file.Access(path, vfs2wx_mode(mode))) return false;
|
if(!m_file.Access(path, vfs2wx_mode(mode))) return false;
|
||||||
|
|
||||||
return m_file.Open(path, vfs2wx_mode(mode)) && vfsFileBase::Open(path, mode);
|
return m_file.Open(path, vfs2wx_mode(mode)) && vfsFileBase::Open(path, mode);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
bool vfsLocalFile::Create(const wxString& path)
|
bool vfsLocalFile::Create(const wxString& path)
|
||||||
|
|
|
@ -10,6 +10,10 @@ void InitProcTable()
|
||||||
#undef OPENGL_PROC
|
#undef OPENGL_PROC
|
||||||
#undef OPENGL_PROC2
|
#undef OPENGL_PROC2
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __UNIX__
|
||||||
|
glewExperimental = true;
|
||||||
|
glewInit();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
|
@ -155,7 +155,7 @@ int cellPngDecDecodeData(u32 mainHandle, u32 subHandle, mem8_ptr_t data, const m
|
||||||
|
|
||||||
//Decode PNG file. (TODO: Is there any faster alternative? Can we do it without external libraries?)
|
//Decode PNG file. (TODO: Is there any faster alternative? Can we do it without external libraries?)
|
||||||
int width, height, actual_components;
|
int width, height, actual_components;
|
||||||
std::shared_ptr<unsigned char> image(stbi_load_from_memory(png, fileSize, &width, &height, &actual_components, 4));
|
std::shared_ptr<unsigned char> image(stbi_load_from_memory(png.GetPtr(), fileSize, &width, &height, &actual_components, 4));
|
||||||
if (!image) return CELL_PNGDEC_ERROR_STREAM_FORMAT;
|
if (!image) return CELL_PNGDEC_ERROR_STREAM_FORMAT;
|
||||||
|
|
||||||
uint image_size = width * height;
|
uint image_size = width * height;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue