44 lines
1.3 KiB
C++
44 lines
1.3 KiB
C++
/**
|
|
******************************************************************************
|
|
* Xenia : Xbox 360 Emulator Research Project *
|
|
******************************************************************************
|
|
* Copyright 2013 Ben Vanik. All rights reserved. *
|
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef XENIA_KERNEL_XBOXKRNL_XMODULE_H_
|
|
#define XENIA_KERNEL_XBOXKRNL_XMODULE_H_
|
|
|
|
#include <string>
|
|
|
|
#include <xenia/kernel/xobject.h>
|
|
#include <xenia/xbox.h>
|
|
|
|
namespace xe {
|
|
namespace kernel {
|
|
|
|
class XModule : public XObject {
|
|
public:
|
|
XModule(KernelState* kernel_state, const std::string& path);
|
|
virtual ~XModule();
|
|
|
|
const std::string& path() const { return path_; }
|
|
const std::string& name() const { return name_; }
|
|
|
|
virtual void* GetProcAddressByOrdinal(uint16_t ordinal) = 0;
|
|
virtual X_STATUS GetSection(const char* name, uint32_t* out_section_data,
|
|
uint32_t* out_section_size);
|
|
|
|
protected:
|
|
void OnLoad();
|
|
|
|
std::string name_;
|
|
std::string path_;
|
|
};
|
|
|
|
} // namespace kernel
|
|
} // namespace xe
|
|
|
|
#endif // XENIA_KERNEL_XBOXKRNL_XMODULE_H_
|