mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 18:15:14 +00:00
clang+reuse
This commit is contained in:
parent
5c53ca8b61
commit
eb5dc68d59
@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
#include "common/logging/log.h"
|
#include "common/logging/log.h"
|
||||||
#include "core/libraries/audio/audioin.h"
|
#include "core/libraries/audio/audioin.h"
|
||||||
|
#include "core/libraries/audio/sdl_in.h"
|
||||||
#include "core/libraries/error_codes.h"
|
#include "core/libraries/error_codes.h"
|
||||||
#include "core/libraries/libs.h"
|
#include "core/libraries/libs.h"
|
||||||
#include "core/libraries/audio/sdl_in.h"
|
|
||||||
|
|
||||||
namespace Libraries::AudioIn {
|
namespace Libraries::AudioIn {
|
||||||
|
|
||||||
@ -16,8 +16,7 @@ int PS4_SYSV_ABI sceAudioInChangeAppModuleState() {
|
|||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceAudioInClose(s32 handle)
|
int PS4_SYSV_ABI sceAudioInClose(s32 handle) {
|
||||||
{
|
|
||||||
audio->AudioInClose(handle);
|
audio->AudioInClose(handle);
|
||||||
LOG_ERROR(Lib_AudioIn, "(STUBBED) called");
|
LOG_ERROR(Lib_AudioIn, "(STUBBED) called");
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "sdl_in.h"
|
#include "sdl_in.h"
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
@ -7,7 +10,7 @@
|
|||||||
namespace Libraries::AudioIn {
|
namespace Libraries::AudioIn {
|
||||||
enum OrbisAudioInParam {
|
enum OrbisAudioInParam {
|
||||||
ORBIS_AUDIO_IN_PARAM_FORMAT_S16_MONO = 0,
|
ORBIS_AUDIO_IN_PARAM_FORMAT_S16_MONO = 0,
|
||||||
ORBIS_AUDIO_IN_PARAM_FORMAT_S16_STEREO=2
|
ORBIS_AUDIO_IN_PARAM_FORMAT_S16_STEREO = 2
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ int main(int argc, char* argv[]) {
|
|||||||
bool has_game_argument = false;
|
bool has_game_argument = false;
|
||||||
std::string game_path;
|
std::string game_path;
|
||||||
std::vector<std::string> game_args{};
|
std::vector<std::string> game_args{};
|
||||||
|
#if 0
|
||||||
// Map of argument strings to lambda functions
|
// Map of argument strings to lambda functions
|
||||||
std::unordered_map<std::string, std::function<void(int&)>> arg_map = {
|
std::unordered_map<std::string, std::function<void(int&)>> arg_map = {
|
||||||
{"-h",
|
{"-h",
|
||||||
@ -204,7 +204,8 @@ int main(int argc, char* argv[]) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
const char* const eboot_path = "D:/ps4/sdk-samples/memrec.elf";
|
||||||
// Run the emulator with the resolved eboot path
|
// Run the emulator with the resolved eboot path
|
||||||
Core::Emulator emulator;
|
Core::Emulator emulator;
|
||||||
emulator.Run(eboot_path, game_args);
|
emulator.Run(eboot_path, game_args);
|
||||||
|
Loading…
Reference in New Issue
Block a user