From 6141c33630079684316039d77078ccd32f9ec3ca Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Sat, 29 Mar 2014 13:52:27 +1300 Subject: [PATCH] Fixes invalid conversion from wxStringConst, to std::string under gcc-4.8 --- rpcs3/Emu/SysCalls/Modules/cellSysutil_SaveData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/SysCalls/Modules/cellSysutil_SaveData.cpp b/rpcs3/Emu/SysCalls/Modules/cellSysutil_SaveData.cpp index 335ca66030..e885856e4c 100644 --- a/rpcs3/Emu/SysCalls/Modules/cellSysutil_SaveData.cpp +++ b/rpcs3/Emu/SysCalls/Modules/cellSysutil_SaveData.cpp @@ -102,7 +102,7 @@ int cellSaveDataListSave2(u32 version, mem_ptr_t setList, m if(!dir.IsOpened()) return CELL_SAVEDATA_ERROR_INTERNAL; - std::string dirNamePrefix = Memory.ReadString(setList->dirNamePrefix_addr).mb_str(); + std::string dirNamePrefix = std::string(Memory.ReadString(setList->dirNamePrefix_addr).mb_str()); std::vector saveEntries; for(const DirEntryInfo* entry = dir.Read(); entry; entry = dir.Read()) { @@ -165,7 +165,7 @@ int cellSaveDataListLoad2(u32 version, mem_ptr_t setList, m if(!dir.IsOpened()) return CELL_SAVEDATA_ERROR_INTERNAL; - std::string dirNamePrefix = Memory.ReadString(setList->dirNamePrefix_addr).mb_str(); + std::string dirNamePrefix = std::string(Memory.ReadString(setList->dirNamePrefix_addr).mb_str()); std::vector saveEntries; for(const DirEntryInfo* entry = dir.Read(); entry; entry = dir.Read()) {