mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-22 10:10:05 +00:00
Fix a bug on mingw
This commit is contained in:
parent
d6862c2fca
commit
c7106e232f
2
externals/boost
vendored
2
externals/boost
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 55725b7796c7faa0a4af869e412d0410bd47612d
|
Subproject commit 1c857c04195db89c66c347ddfad93a7f3666f2d3
|
@ -10,6 +10,8 @@
|
|||||||
#include "core/hle/service/apt/ns.h"
|
#include "core/hle/service/apt/ns.h"
|
||||||
#include "core/hle/service/cfg/cfg.h"
|
#include "core/hle/service/cfg/cfg.h"
|
||||||
|
|
||||||
|
SERVICE_CONSTRUCT_IMPL(Service::APT::AppletManager)
|
||||||
|
|
||||||
namespace Service::APT {
|
namespace Service::APT {
|
||||||
|
|
||||||
enum class AppletPos { Application = 0, Library = 1, System = 2, SysLibrary = 3, Resident = 4 };
|
enum class AppletPos { Application = 0, Library = 1, System = 2, SysLibrary = 3, Resident = 4 };
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <optional>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <boost/serialization/array.hpp>
|
#include <boost/serialization/array.hpp>
|
||||||
#include "common/serialization/optional.h"
|
#include <boost/serialization/shared_ptr.hpp>
|
||||||
|
#include <boost/serialization/optional.hpp>
|
||||||
#include "core/global.h"
|
#include "core/global.h"
|
||||||
#include "core/hle/kernel/event.h"
|
#include "core/hle/kernel/event.h"
|
||||||
#include "core/hle/result.h"
|
#include "core/hle/result.h"
|
||||||
@ -193,7 +193,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
/// Parameter data to be returned in the next call to Glance/ReceiveParameter.
|
/// Parameter data to be returned in the next call to Glance/ReceiveParameter.
|
||||||
std::optional<MessageParameter> next_parameter;
|
// NOTE: A bug in gcc prevents serializing std::optional
|
||||||
|
boost::optional<MessageParameter> next_parameter;
|
||||||
|
|
||||||
static constexpr std::size_t NumAppletSlot = 4;
|
static constexpr std::size_t NumAppletSlot = 4;
|
||||||
|
|
||||||
@ -268,9 +269,4 @@ private:
|
|||||||
|
|
||||||
} // namespace Service::APT
|
} // namespace Service::APT
|
||||||
|
|
||||||
namespace boost::serialization {
|
SERVICE_CONSTRUCT(Service::APT::AppletManager)
|
||||||
template <class Archive>
|
|
||||||
inline void load_construct_data(Archive& ar, Service::APT::AppletManager* t, const unsigned int) {
|
|
||||||
::new (t) Service::APT::AppletManager(Core::Global<Core::System>());
|
|
||||||
}
|
|
||||||
} // namespace boost::serialization
|
|
||||||
|
Loading…
Reference in New Issue
Block a user