mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 16:49:58 -06:00
Core: Namespace NetPlay utilities under the NetPlay namespace
Previously there was only one function under the NetPlay namespace, which is kind of silly considering we have all of these other types and functions existing outside of the namespace. This moves the rest of them into the namespace. This gets some general names, like Player, for example, out of the global namespace.
This commit is contained in:
@ -16,7 +16,7 @@ namespace ConfigLoaders
|
||||
class NetPlayConfigLayerLoader final : public Config::ConfigLayerLoader
|
||||
{
|
||||
public:
|
||||
explicit NetPlayConfigLayerLoader(const NetSettings& settings)
|
||||
explicit NetPlayConfigLayerLoader(const NetPlay::NetSettings& settings)
|
||||
: ConfigLayerLoader(Config::LayerType::Netplay), m_settings(settings)
|
||||
{
|
||||
}
|
||||
@ -47,11 +47,12 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
const NetSettings m_settings;
|
||||
const NetPlay::NetSettings m_settings;
|
||||
};
|
||||
|
||||
// Loader generation
|
||||
std::unique_ptr<Config::ConfigLayerLoader> GenerateNetPlayConfigLoader(const NetSettings& settings)
|
||||
std::unique_ptr<Config::ConfigLayerLoader>
|
||||
GenerateNetPlayConfigLoader(const NetPlay::NetSettings& settings)
|
||||
{
|
||||
return std::make_unique<NetPlayConfigLayerLoader>(settings);
|
||||
}
|
||||
|
Reference in New Issue
Block a user