Skip to content

Commit

Permalink
[Merge]: Merge newer decoder-experimental (#34)
Browse files Browse the repository at this point in the history
* [Formatting]: Fix build & formatting errors

* [Config]: Fix option var for ODD
  • Loading branch information
Vali0004 authored Feb 10, 2025
1 parent 8a954a9 commit 12a924b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Xenon/Base/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ void saveConfig(const std::filesystem::path &path) {
data["Paths"]["Fuses"] = fusesTxtPath;
data["Paths"]["OneBL"] = oneBlBinPath;
data["Paths"]["Nand"] = nandBinPath;
data["Paths"]["ISO"] = oddDiscImagePath;
data["Paths"]["ODDImage"] = oddDiscImagePath;

// HighlyExperimental.
if (data["HighlyExperimental"].comments().empty()) {
Expand Down
6 changes: 3 additions & 3 deletions Xenon/Base/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ using f32 = float;
using f64 = double;

// UDLs for memory size values
inline [[nodiscard]] constexpr u64 operator""_KB(const u64 x) {
[[nodiscard]] inline constexpr u64 operator""_KB(const u64 x) {
return 1024ULL * x;
}
inline [[nodiscard]] constexpr u64 operator""_MB(const u64 x) {
[[nodiscard]] inline constexpr u64 operator""_MB(const u64 x) {
return 1024_KB * x;
}
inline [[nodiscard]] constexpr u64 operator""_GB(const u64 x) {
[[nodiscard]] inline constexpr u64 operator""_GB(const u64 x) {
return 1024_MB * x;
}

Expand Down
3 changes: 1 addition & 2 deletions Xenon/Core/XCPU/Interpreter/PPC_FPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
#define SET_FPSCR(x) hCore->ppuThread[hCore->currentThread].FPSCR.FPSCR_Hex = x

static inline void checkFpuAvailable(PPU_STATE* hCore) {
if (hCore->ppuThread[hCore->currentThread].SPR.MSR.FP != 1)
{
if (hCore->ppuThread[hCore->currentThread].SPR.MSR.FP != 1) {
hCore->ppuThread[hCore->currentThread].exceptReg |= PPU_EX_FPU;
return;
}
Expand Down

0 comments on commit 12a924b

Please sign in to comment.