[Kernel] Stub XMsg app 0x000000FE/msg 0x00020021.
This commit is contained in:
parent
5b2b2a3cc1
commit
28b494dadc
|
@ -10,6 +10,7 @@
|
|||
#include "xenia/kernel/xam/app_manager.h"
|
||||
|
||||
#include "xenia/kernel/kernel_state.h"
|
||||
#include "xenia/kernel/xam/apps/unknown_fe_app.h"
|
||||
#include "xenia/kernel/xam/apps/xgi_app.h"
|
||||
#include "xenia/kernel/xam/apps/xlivebase_app.h"
|
||||
#include "xenia/kernel/xam/apps/xmp_app.h"
|
||||
|
@ -24,9 +25,10 @@ App::App(KernelState* kernel_state, uint32_t app_id)
|
|||
app_id_(app_id) {}
|
||||
|
||||
void AppManager::RegisterApps(KernelState* kernel_state, AppManager* manager) {
|
||||
manager->RegisterApp(std::make_unique<apps::XmpApp>(kernel_state));
|
||||
manager->RegisterApp(std::make_unique<apps::XgiApp>(kernel_state));
|
||||
manager->RegisterApp(std::make_unique<apps::XLiveBaseApp>(kernel_state));
|
||||
manager->RegisterApp(std::make_unique<apps::XmpApp>(kernel_state));
|
||||
manager->RegisterApp(std::make_unique<apps::UnknownFEApp>(kernel_state));
|
||||
}
|
||||
|
||||
void AppManager::RegisterApp(std::unique_ptr<App> app) {
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2015 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include "xenia/kernel/xam/apps/unknown_fe_app.h"
|
||||
|
||||
#include "xenia/base/logging.h"
|
||||
#include "xenia/base/threading.h"
|
||||
|
||||
namespace xe {
|
||||
namespace kernel {
|
||||
namespace xam {
|
||||
namespace apps {
|
||||
|
||||
UnknownFEApp::UnknownFEApp(KernelState* kernel_state)
|
||||
: App(kernel_state, 0xFE) {}
|
||||
|
||||
X_RESULT UnknownFEApp::DispatchMessageSync(uint32_t message,
|
||||
uint32_t buffer_ptr,
|
||||
uint32_t buffer_length) {
|
||||
// NOTE: buffer_length may be zero or valid.
|
||||
auto buffer = memory_->TranslateVirtual(buffer_ptr);
|
||||
switch (message) {
|
||||
case 0x00020021: {
|
||||
struct message_data {
|
||||
char unk_00[64];
|
||||
xe::be<uint32_t> unk_40; // KeGetCurrentProcessType() < 1 ? 1 : 0
|
||||
xe::be<uint32_t> unk_44; // ? output_ptr ?
|
||||
xe::be<uint32_t> unk_48; // ? overlapped_ptr ?
|
||||
}* data = reinterpret_cast<message_data*>(buffer);
|
||||
assert_true(buffer_length == sizeof(message_data));
|
||||
auto unk = memory_->TranslateVirtual<xe::be<uint32_t>*>(data->unk_44);
|
||||
*unk = 0;
|
||||
XELOGD("UnknownFEApp(0x00020021)('%s', %.8X, %.8X, %.8X)", data->unk_00,
|
||||
(uint32_t)data->unk_40, (uint32_t)data->unk_44,
|
||||
(uint32_t)data->unk_48);
|
||||
return X_ERROR_SUCCESS;
|
||||
}
|
||||
}
|
||||
XELOGE(
|
||||
"Unimplemented 0xFE message app=%.8X, msg=%.8X, arg1=%.8X, "
|
||||
"arg2=%.8X",
|
||||
app_id(), message, buffer_ptr, buffer_length);
|
||||
return X_STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
} // namespace apps
|
||||
} // namespace xam
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
|
@ -0,0 +1,34 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2015 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_KERNEL_XAM_APPS_UNKNOWN_FE_APP_H_
|
||||
#define XENIA_KERNEL_XAM_APPS_UNKNOWN_FE_APP_H_
|
||||
|
||||
#include "xenia/kernel/kernel_state.h"
|
||||
#include "xenia/kernel/xam/app_manager.h"
|
||||
|
||||
namespace xe {
|
||||
namespace kernel {
|
||||
namespace xam {
|
||||
namespace apps {
|
||||
|
||||
class UnknownFEApp : public App {
|
||||
public:
|
||||
explicit UnknownFEApp(KernelState* kernel_state);
|
||||
|
||||
X_RESULT DispatchMessageSync(uint32_t message, uint32_t buffer_ptr,
|
||||
uint32_t buffer_length) override;
|
||||
};
|
||||
|
||||
} // namespace apps
|
||||
} // namespace xam
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_KERNEL_XAM_APPS_UNKNOWN_FE_APP_H_
|
Loading…
Reference in New Issue