Skip to content

Commit

Permalink
Remove some redundant uses of MOBILE_DEVICE. Goal is to one day get r…
Browse files Browse the repository at this point in the history
…id of that define.
  • Loading branch information
hrydgard committed Dec 7, 2023
1 parent 676a4de commit 85001bf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
5 changes: 3 additions & 2 deletions Common/UI/UIScreen.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#include <algorithm>

#include "Common/Log.h"
#include "Common/System/Display.h"
#include "Common/System/System.h"
#include "Common/System/Request.h"
#include "Common/Input/InputState.h"
#include "Common/Input/KeyCodes.h"
#include "Common/Math/curves.h"
Expand All @@ -10,8 +13,6 @@
#include "Common/UI/Root.h"
#include "Common/Data/Text/I18n.h"
#include "Common/Render/DrawBuffer.h"
#include "Common/Log.h"
#include <Common/System/Request.h>

static const bool ClickDebug = false;

Expand Down
2 changes: 1 addition & 1 deletion Core/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static bool DefaultVSync() {
}

static bool DefaultEnableStateUndo() {
#ifdef MOBILE_DEVICE
#ifdef PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(IOS)
// Off on mobile to save disk space.
return false;
#endif
Expand Down
4 changes: 0 additions & 4 deletions Core/HLE/sceKernelModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1405,10 +1405,6 @@ static PSPModule *__KernelLoadELFFromPtr(const u8 *ptr, size_t elfSize, u32 load

if (!module->isFake) {
bool scan = true;
#if defined(MOBILE_DEVICE)
scan = g_Config.bFuncReplacements;
#endif

// If the ELF has debug symbols, don't add entries to the symbol table.
bool insertSymbols = scan && !reader.LoadSymbols();
std::vector<SectionID> codeSections = reader.GetCodeSections();
Expand Down
2 changes: 1 addition & 1 deletion Core/KeyMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ const KeyMap_IntStrPair psp_button_names[] = {
{VIRTKEY_SPEED_CUSTOM2, "Alt speed 2"},
{VIRTKEY_SPEED_ANALOG, "Analog speed"},
{VIRTKEY_PAUSE, "Pause"},
#ifndef MOBILE_DEVICE
{VIRTKEY_FRAME_ADVANCE, "Frame Advance"},
#if !defined(MOBILE_DEVICE)
{VIRTKEY_RECORD, "Audio/Video Recording" },
#endif
{VIRTKEY_REWIND, "Rewind"},
Expand Down
2 changes: 0 additions & 2 deletions Core/System.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,9 @@ void PSP_Shutdown() {
if (coreState == CORE_RUNNING)
Core_Stop();

#ifndef MOBILE_DEVICE
if (g_Config.bFuncHashMap) {
MIPSAnalyst::StoreHashMap();
}
#endif

if (pspIsIniting)
Core_NotifyLifecycle(CoreLifecycle::START_COMPLETE);
Expand Down

0 comments on commit 85001bf

Please sign in to comment.