Skip to content

Commit

Permalink
Merge pull request hrydgard#19366 from hrydgard/misc-fixes
Browse files Browse the repository at this point in the history
Misc logging tweaks
  • Loading branch information
hrydgard authored Jul 23, 2024
2 parents aa17f71 + 5d4f413 commit cc5763c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ if(IOS_APP_STORE)
set(CMAKE_XCODE_SCHEME_ENABLE_GPU_API_VALIDATION FALSE)
set(CMAKE_XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE DISABLED)
message("iOS App Store build")
else()
elseif(IOS)
message("iOS sideload build")
endif()

Expand Down
7 changes: 6 additions & 1 deletion Core/HLE/sceAtrac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,12 @@ static u32 sceAtracSetLoopNum(int atracID, int loopNum) {
return err;
}
if (atrac->GetTrack().loopinfo.size() == 0) {
return hleLogError(Log::ME, ATRAC_ERROR_NO_LOOP_INFORMATION, "no loop information");
if (loopNum == -1) {
// This is very common and not really a problem.
return hleLogDebug(Log::ME, ATRAC_ERROR_NO_LOOP_INFORMATION, "no loop information to write to!");
} else {
return hleLogError(Log::ME, ATRAC_ERROR_NO_LOOP_INFORMATION, "no loop information to write to!");
}
}

atrac->SetLoopNum(loopNum);
Expand Down
11 changes: 6 additions & 5 deletions Core/HLE/sceIo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2291,11 +2291,12 @@ static u32 sceIoGetAsyncStat(int id, u32 poll, u32 address) {
return SCE_KERNEL_ERROR_NOASYNC;
}
return 0; //completed
}
else
{
ERROR_LOG(Log::sceIo, "ERROR - sceIoGetAsyncStat with invalid id %i", id);
return SCE_KERNEL_ERROR_BADF;
} else {
if (id == 0) {
return hleLogDebug(Log::sceIo, SCE_KERNEL_ERROR_BADF, "ERROR - sceIoGetAsyncStat with invalid id %d", id);
} else {
return hleLogError(Log::sceIo, SCE_KERNEL_ERROR_BADF, "ERROR - sceIoGetAsyncStat with invalid id %d", id);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion Core/HW/MpegDemux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ bool MpegDemux::demux(int audioChannel)
while (m_index < m_readSize && !needMore)
{
// Search for start code
int startCode = 0xFF;
u32 startCode = 0xFF;
while ((startCode & PACKET_START_CODE_MASK) != PACKET_START_CODE_PREFIX && !isEOF()) {
startCode = (startCode << 8) | read8();
}
Expand Down
4 changes: 4 additions & 0 deletions SDL/README.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ Works fine on WSL2 with OpenGL, at least. For more notes, see https://www.ppsspp

Running with valgrind
=====================

Here's an example where we both use suppressions, and generate new ones (that you can then take from suppressions.log and simplify and copy to valgrind-wsl2.supp):

> valgrind --suppressions=SDL/valgrind-wsl2.supp --gen-suppressions=all --log-file=suppressions.log build/PPSSPPSDL
3 changes: 3 additions & 0 deletions b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ do
--gold) echo "Gold build enabled"
CMAKE_ARGS="-DGOLD=ON ${CMAKE_ARGS}"
;;
--alderlake) echo "Alderlake opt"
CMAKE_ARGS="-DCMAKE_C_FLAGS=\"-march=alderlake\" -DCMAKE_CPP_FLAGS=\"-march=alderlake\""
;;
*) MAKE_OPT="$1 ${MAKE_OPT}"
;;
esac
Expand Down

0 comments on commit cc5763c

Please sign in to comment.