mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	Serialize ArchiveManager and other code review actions
This commit is contained in:
		
							parent
							
								
									04aa351c40
								
							
						
					
					
						commit
						6760ea18b6
					
				
					 43 changed files with 102 additions and 67 deletions
				
			
		| 
						 | 
				
			
			@ -16,8 +16,6 @@ namespace Kernel {
 | 
			
		|||
class Event;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
BOOST_SERIALIZATION_ASSUME_ABSTRACT(Service::AC::Module::Interface)
 | 
			
		||||
 | 
			
		||||
namespace Service::AC {
 | 
			
		||||
class Module final {
 | 
			
		||||
public:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,7 +26,7 @@ public:
 | 
			
		|||
 | 
			
		||||
private:
 | 
			
		||||
    template <class Archive>
 | 
			
		||||
    inline void serialize(Archive& ar, const unsigned int file_version) {}
 | 
			
		||||
    void serialize(Archive& ar, const unsigned int file_version) {}
 | 
			
		||||
    friend class boost::serialization::access;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,6 +13,7 @@
 | 
			
		|||
#include <boost/serialization/shared_ptr.hpp>
 | 
			
		||||
#include <boost/serialization/vector.hpp>
 | 
			
		||||
#include "common/common_types.h"
 | 
			
		||||
#include "common/construct.h"
 | 
			
		||||
#include "core/file_sys/cia_container.h"
 | 
			
		||||
#include "core/file_sys/file_backend.h"
 | 
			
		||||
#include "core/global.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -154,7 +155,6 @@ std::string GetMediaTitlePath(Service::FS::MediaType media_type);
 | 
			
		|||
class Module final {
 | 
			
		||||
public:
 | 
			
		||||
    explicit Module(Core::System& system);
 | 
			
		||||
    explicit Module(Kernel::KernelSystem& kernel);
 | 
			
		||||
    Module() = default;
 | 
			
		||||
    ~Module();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -568,6 +568,8 @@ public:
 | 
			
		|||
    };
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    explicit Module(Kernel::KernelSystem& kernel);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Scans the for titles in a storage medium for listing.
 | 
			
		||||
     * @param media_type the storage medium to scan
 | 
			
		||||
| 
						 | 
				
			
			@ -590,6 +592,16 @@ private:
 | 
			
		|||
        ar& am_title_list;
 | 
			
		||||
        ar& system_updater_mutex;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    template <class Archive>
 | 
			
		||||
    static void load_construct(Archive& ar, Module* t, const unsigned int file_version) {
 | 
			
		||||
        ::new (t) Module(Core::Global<Kernel::KernelSystem>());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    template <class Archive>
 | 
			
		||||
    void save_construct(Archive& ar, const unsigned int file_version) const {}
 | 
			
		||||
 | 
			
		||||
    friend class ::construct_access;
 | 
			
		||||
    friend class boost::serialization::access;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -597,9 +609,4 @@ void InstallInterfaces(Core::System& system);
 | 
			
		|||
 | 
			
		||||
} // namespace Service::AM
 | 
			
		||||
 | 
			
		||||
namespace boost::serialization {
 | 
			
		||||
template <class Archive>
 | 
			
		||||
inline void load_construct_data(Archive& ar, Service::AM::Module* t, const unsigned int) {
 | 
			
		||||
    ::new (t) Service::AM::Module(Core::Global<Kernel::KernelSystem>());
 | 
			
		||||
}
 | 
			
		||||
} // namespace boost::serialization
 | 
			
		||||
BOOST_SERIALIZATION_CONSTRUCT(Service::AM::Module);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,6 +10,7 @@
 | 
			
		|||
#include <boost/serialization/array.hpp>
 | 
			
		||||
#include <boost/serialization/optional.hpp>
 | 
			
		||||
#include <boost/serialization/shared_ptr.hpp>
 | 
			
		||||
#include <boost/serialization/vector.hpp>
 | 
			
		||||
#include "core/global.h"
 | 
			
		||||
#include "core/hle/kernel/event.h"
 | 
			
		||||
#include "core/hle/result.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,8 @@
 | 
			
		|||
// Licensed under GPLv2 or any later version
 | 
			
		||||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#include <boost/serialization/shared_ptr.hpp>
 | 
			
		||||
#include <boost/serialization/vector.hpp>
 | 
			
		||||
#include "common/archives.h"
 | 
			
		||||
#include "common/common_paths.h"
 | 
			
		||||
#include "common/file_util.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,8 +6,6 @@
 | 
			
		|||
 | 
			
		||||
#include <memory>
 | 
			
		||||
#include <vector>
 | 
			
		||||
#include <boost/serialization/shared_ptr.hpp>
 | 
			
		||||
#include <boost/serialization/vector.hpp>
 | 
			
		||||
#include "common/archives.h"
 | 
			
		||||
#include "common/common_funcs.h"
 | 
			
		||||
#include "common/common_types.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -651,7 +649,4 @@ void InstallInterfaces(Core::System& system);
 | 
			
		|||
 | 
			
		||||
} // namespace Service::APT
 | 
			
		||||
 | 
			
		||||
namespace boost::serialization {
 | 
			
		||||
template <class Archive>
 | 
			
		||||
void load_construct_data(Archive& ar, Service::APT::Module* t, const unsigned int);
 | 
			
		||||
}
 | 
			
		||||
SERVICE_CONSTRUCT(Service::APT::Module)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -989,7 +989,7 @@ void InstallInterfaces(Core::System& system);
 | 
			
		|||
 | 
			
		||||
namespace boost::serialization {
 | 
			
		||||
template <class Archive>
 | 
			
		||||
inline void load_construct_data(Archive& ar, Service::BOSS::Module* t, const unsigned int) {
 | 
			
		||||
void load_construct_data(Archive& ar, Service::BOSS::Module* t, const unsigned int) {
 | 
			
		||||
    ::new (t) Service::BOSS::Module(Core::Global<Core::System>());
 | 
			
		||||
}
 | 
			
		||||
} // namespace boost::serialization
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,6 +9,10 @@
 | 
			
		|||
#include <future>
 | 
			
		||||
#include <memory>
 | 
			
		||||
#include <vector>
 | 
			
		||||
#include <boost/serialization/array.hpp>
 | 
			
		||||
#include <boost/serialization/deque.hpp>
 | 
			
		||||
#include <boost/serialization/shared_ptr.hpp>
 | 
			
		||||
#include <boost/serialization/unique_ptr.hpp>
 | 
			
		||||
#include "common/common_types.h"
 | 
			
		||||
#include "common/swap.h"
 | 
			
		||||
#include "core/global.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -849,6 +853,7 @@ private:
 | 
			
		|||
            ar& completion_event;
 | 
			
		||||
            ar& buffer_error_interrupt_event;
 | 
			
		||||
            ar& vsync_interrupt_event;
 | 
			
		||||
            ar& vsync_timings;
 | 
			
		||||
            // Ignore capture_result. In-progress captures might be affected but this is OK.
 | 
			
		||||
            ar& dest_process;
 | 
			
		||||
            ar& dest;
 | 
			
		||||
| 
						 | 
				
			
			@ -879,7 +884,7 @@ void InstallInterfaces(Core::System& system);
 | 
			
		|||
 | 
			
		||||
namespace boost::serialization {
 | 
			
		||||
template <class Archive>
 | 
			
		||||
inline void load_construct_data(Archive& ar, Service::CAM::Module* t, const unsigned int) {
 | 
			
		||||
void load_construct_data(Archive& ar, Service::CAM::Module* t, const unsigned int) {
 | 
			
		||||
    ::new (t) Service::CAM::Module(Core::Global<Core::System>());
 | 
			
		||||
}
 | 
			
		||||
} // namespace boost::serialization
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,8 @@
 | 
			
		|||
// Licensed under GPLv2 or any later version
 | 
			
		||||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#include <boost/serialization/unique_ptr.hpp>
 | 
			
		||||
#include <boost/serialization/shared_ptr.hpp>
 | 
			
		||||
#include <cryptopp/base64.h>
 | 
			
		||||
#include <cryptopp/hmac.h>
 | 
			
		||||
#include <cryptopp/sha.h>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -258,7 +258,7 @@ public:
 | 
			
		|||
            ar& data_path_type;
 | 
			
		||||
            ar& open_mode.raw;
 | 
			
		||||
            ar& path;
 | 
			
		||||
            // ar& file;
 | 
			
		||||
            ar& file;
 | 
			
		||||
        }
 | 
			
		||||
        friend class boost::serialization::access;
 | 
			
		||||
    };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,8 @@
 | 
			
		|||
 | 
			
		||||
#include <algorithm>
 | 
			
		||||
#include <tuple>
 | 
			
		||||
#include <boost/serialization/array.hpp>
 | 
			
		||||
#include <boost/serialization/unique_ptr.hpp>
 | 
			
		||||
#include <cryptopp/osrng.h>
 | 
			
		||||
#include <cryptopp/sha.h>
 | 
			
		||||
#include "common/archives.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -277,8 +277,4 @@ void InstallInterfaces(Core::System& system);
 | 
			
		|||
} // namespace Service::CSND
 | 
			
		||||
 | 
			
		||||
BOOST_CLASS_EXPORT_KEY(Service::CSND::CSND_SND)
 | 
			
		||||
 | 
			
		||||
namespace boost::serialization {
 | 
			
		||||
template <class Archive>
 | 
			
		||||
void load_construct_data(Archive& ar, Service::CSND::CSND_SND* t, const unsigned int);
 | 
			
		||||
}
 | 
			
		||||
SERVICE_CONSTRUCT(Service::CSND::CSND_SND)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,6 +5,9 @@
 | 
			
		|||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include <memory>
 | 
			
		||||
#include <boost/serialization/array.hpp>
 | 
			
		||||
#include <boost/serialization/base_object.hpp>
 | 
			
		||||
#include <boost/serialization/shared_ptr.hpp>
 | 
			
		||||
#include "audio_core/dsp_interface.h"
 | 
			
		||||
#include "core/hle/kernel/event.h"
 | 
			
		||||
#include "core/hle/result.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -282,8 +285,4 @@ void InstallInterfaces(Core::System& system);
 | 
			
		|||
} // namespace Service::DSP
 | 
			
		||||
 | 
			
		||||
BOOST_CLASS_EXPORT_KEY(Service::DSP::DSP_DSP)
 | 
			
		||||
 | 
			
		||||
namespace boost::serialization {
 | 
			
		||||
template <class Archive>
 | 
			
		||||
void load_construct_data(Archive& ar, Service::DSP::DSP_DSP* t, const unsigned int);
 | 
			
		||||
}
 | 
			
		||||
SERVICE_CONSTRUCT(Service::DSP::DSP_DSP)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,7 +8,8 @@
 | 
			
		|||
#include <string>
 | 
			
		||||
#include <unordered_map>
 | 
			
		||||
#include <vector>
 | 
			
		||||
#include <boost/container/flat_map.hpp>
 | 
			
		||||
#include <boost/serialization/unique_ptr.hpp>
 | 
			
		||||
#include <boost/serialization/unordered_map.hpp>
 | 
			
		||||
#include "common/common_types.h"
 | 
			
		||||
#include "core/file_sys/archive_backend.h"
 | 
			
		||||
#include "core/hle/result.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -253,7 +254,7 @@ private:
 | 
			
		|||
     * Map of registered archives, identified by id code. Once an archive is registered here, it is
 | 
			
		||||
     * never removed until UnregisterArchiveTypes is called.
 | 
			
		||||
     */
 | 
			
		||||
    boost::container::flat_map<ArchiveIdCode, std::unique_ptr<ArchiveFactory>> id_code_map;
 | 
			
		||||
    std::unordered_map<ArchiveIdCode, std::unique_ptr<ArchiveFactory>> id_code_map;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Map of active archive handles to archive objects
 | 
			
		||||
| 
						 | 
				
			
			@ -267,6 +268,7 @@ private:
 | 
			
		|||
        ar& handle_map;
 | 
			
		||||
        ar& next_handle;
 | 
			
		||||
    }
 | 
			
		||||
    friend class boost::serialization::access;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
} // namespace Service::FS
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,8 @@
 | 
			
		|||
// Licensed under GPLv2 or any later version
 | 
			
		||||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#include <boost/serialization/base_object.hpp>
 | 
			
		||||
#include <boost/serialization/unique_ptr.hpp>
 | 
			
		||||
#include "common/archives.h"
 | 
			
		||||
#include "common/logging/log.h"
 | 
			
		||||
#include "core/file_sys/directory_backend.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
// Licensed under GPLv2 or any later version
 | 
			
		||||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#include <boost/serialization/unique_ptr.hpp>
 | 
			
		||||
#include "common/archives.h"
 | 
			
		||||
#include "common/logging/log.h"
 | 
			
		||||
#include "core/core.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,6 +5,7 @@
 | 
			
		|||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include <memory>
 | 
			
		||||
#include <boost/serialization/base_object.hpp>
 | 
			
		||||
#include "core/file_sys/archive_backend.h"
 | 
			
		||||
#include "core/global.h"
 | 
			
		||||
#include "core/hle/service/service.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,7 @@
 | 
			
		|||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include <boost/serialization/base_object.hpp>
 | 
			
		||||
#include "common/common_types.h"
 | 
			
		||||
#include "core/hle/service/service.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,6 +7,8 @@
 | 
			
		|||
#include <cstddef>
 | 
			
		||||
#include <memory>
 | 
			
		||||
#include <string>
 | 
			
		||||
#include <boost/serialization/base_object.hpp>
 | 
			
		||||
#include <boost/serialization/shared_ptr.hpp>
 | 
			
		||||
#include "common/bit_field.h"
 | 
			
		||||
#include "common/common_types.h"
 | 
			
		||||
#include "core/hle/kernel/event.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,9 @@
 | 
			
		|||
 | 
			
		||||
#include <algorithm>
 | 
			
		||||
#include <cmath>
 | 
			
		||||
#include <boost/serialization/array.hpp>
 | 
			
		||||
#include <boost/serialization/shared_ptr.hpp>
 | 
			
		||||
#include <boost/serialization/unique_ptr.hpp>
 | 
			
		||||
#include "common/archives.h"
 | 
			
		||||
#include "common/logging/log.h"
 | 
			
		||||
#include "core/3ds.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -208,7 +211,7 @@ void Module::UpdateAccelerometerCallback(u64 userdata, s64 cycles_late) {
 | 
			
		|||
 | 
			
		||||
    Common::Vec3<float> accel;
 | 
			
		||||
    if (!motion_device) {
 | 
			
		||||
        is_device_reload_pending.exchange(true);
 | 
			
		||||
        is_device_reload_pending.store(true);
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
    std::tie(accel, std::ignore) = motion_device->GetStatus();
 | 
			
		||||
| 
						 | 
				
			
			@ -259,7 +262,7 @@ void Module::UpdateGyroscopeCallback(u64 userdata, s64 cycles_late) {
 | 
			
		|||
 | 
			
		||||
    Common::Vec3<float> gyro;
 | 
			
		||||
    if (!motion_device) {
 | 
			
		||||
        is_device_reload_pending.exchange(true);
 | 
			
		||||
        is_device_reload_pending.store(true);
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
    std::tie(std::ignore, gyro) = motion_device->GetStatus();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,7 +7,6 @@
 | 
			
		|||
#include <array>
 | 
			
		||||
#include <atomic>
 | 
			
		||||
#include <boost/serialization/array.hpp>
 | 
			
		||||
#include <boost/serialization/export.hpp>
 | 
			
		||||
#include "common/bit_field.h"
 | 
			
		||||
#include "common/swap.h"
 | 
			
		||||
#include "core/frontend/input.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,8 @@
 | 
			
		|||
// Licensed under GPLv2 or any later version
 | 
			
		||||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#include <boost/serialization/base_object.hpp>
 | 
			
		||||
#include <boost/serialization/shared_ptr.hpp>
 | 
			
		||||
#include "common/archives.h"
 | 
			
		||||
#include "core/core.h"
 | 
			
		||||
#include "core/core_timing.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,7 @@
 | 
			
		|||
 | 
			
		||||
#include <memory>
 | 
			
		||||
#include <boost/crc.hpp>
 | 
			
		||||
#include <boost/serialization/base_object.hpp>
 | 
			
		||||
#include <boost/serialization/shared_ptr.hpp>
 | 
			
		||||
#include <boost/serialization/unique_ptr.hpp>
 | 
			
		||||
#include "common/string_util.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,6 +5,7 @@
 | 
			
		|||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include <array>
 | 
			
		||||
#include <boost/serialization/array.hpp>
 | 
			
		||||
#include "core/hle/service/service.h"
 | 
			
		||||
 | 
			
		||||
namespace Core {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,6 +22,8 @@ void Module::serialize(Archive& ar, const unsigned int) {
 | 
			
		|||
    ar& tag_out_of_range_event;
 | 
			
		||||
    ar& nfc_tag_state;
 | 
			
		||||
    ar& nfc_status;
 | 
			
		||||
    ar& amiibo_data;
 | 
			
		||||
    ar& amiibo_in_range;
 | 
			
		||||
}
 | 
			
		||||
SERIALIZE_IMPL(Module)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,6 +6,7 @@
 | 
			
		|||
 | 
			
		||||
#include <atomic>
 | 
			
		||||
#include <memory>
 | 
			
		||||
#include <boost/serialization/binary_object.hpp>
 | 
			
		||||
#include "common/common_types.h"
 | 
			
		||||
#include "core/hle/service/service.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -35,6 +36,13 @@ struct AmiiboData {
 | 
			
		|||
    u16_be model_number;
 | 
			
		||||
    u8 series;
 | 
			
		||||
    INSERT_PADDING_BYTES(0x1C1);
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    template <class Archive>
 | 
			
		||||
    void serialize(Archive& ar, const unsigned int) {
 | 
			
		||||
        ar& boost::serialization::make_binary_object(this, sizeof(AmiiboData));
 | 
			
		||||
    }
 | 
			
		||||
    friend class boost::serialization::access;
 | 
			
		||||
};
 | 
			
		||||
static_assert(sizeof(AmiiboData) == 0x21C, "AmiiboData is an invalid size");
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1175,7 +1175,7 @@ void NWM_UDS::GetChannel(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
 | 
			
		||||
class NWM_UDS::ThreadCallback : public Kernel::HLERequestContext::WakeupCallback {
 | 
			
		||||
public:
 | 
			
		||||
    ThreadCallback(u16 command_id_) : command_id(command_id_) {}
 | 
			
		||||
    explicit ThreadCallback(u16 command_id_) : command_id(command_id_) {}
 | 
			
		||||
 | 
			
		||||
    void WakeUp(std::shared_ptr<Kernel::Thread> thread, Kernel::HLERequestContext& ctx,
 | 
			
		||||
                Kernel::ThreadWakeupReason reason) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,7 +10,6 @@
 | 
			
		|||
#include <memory>
 | 
			
		||||
#include <string>
 | 
			
		||||
#include <boost/container/flat_map.hpp>
 | 
			
		||||
#include <boost/serialization/assume_abstract.hpp>
 | 
			
		||||
#include <boost/serialization/base_object.hpp>
 | 
			
		||||
#include <boost/serialization/shared_ptr.hpp>
 | 
			
		||||
#include "common/common_types.h"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -88,7 +88,8 @@ void SRV::EnableNotification(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
class SRV::ThreadCallback : public Kernel::HLERequestContext::WakeupCallback {
 | 
			
		||||
 | 
			
		||||
public:
 | 
			
		||||
    ThreadCallback(Core::System& system_, std::string name_) : system(system_), name(name_) {}
 | 
			
		||||
    explicit ThreadCallback(Core::System& system_, std::string name_)
 | 
			
		||||
        : system(system_), name(name_) {}
 | 
			
		||||
 | 
			
		||||
    void WakeUp(std::shared_ptr<Kernel::Thread> thread, Kernel::HLERequestContext& ctx,
 | 
			
		||||
                Kernel::ThreadWakeupReason reason) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue