mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-28 02:21:25 +00:00
5a3954ae0e
Fixes several files incorrectly stated a different license from the actual project, as well as the copyright headers included in all files. This change has no effect on the licensing terms, it should clear up a bit of confusion by contributors. Plus the files get a bit smaller, and we have less duplicated information across the entire project. Overall the project is GPLv2 if not built with Qt, and GPLv3 if it is built with Qt. There are no parts licensed under a different license, all have been adapted from other compatible licenses into GPLv2 or GPLv3.
37 lines
1 KiB
C++
37 lines
1 KiB
C++
// AUTOGENERATED COPYRIGHT HEADER START
|
|
// Copyright (C) 2021-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
|
|
// AUTOGENERATED COPYRIGHT HEADER END
|
|
|
|
#pragma once
|
|
#include "warning-disable.hpp"
|
|
#include <filesystem>
|
|
#include <string>
|
|
#include "warning-enable.hpp"
|
|
|
|
namespace streamfx::util::platform {
|
|
#ifdef WIN32
|
|
std::string native_to_utf8(std::wstring const& v);
|
|
std::filesystem::path native_to_utf8(std::filesystem::path const& v);
|
|
|
|
std::wstring utf8_to_native(std::string const& v);
|
|
std::filesystem::path utf8_to_native(std::filesystem::path const& v);
|
|
#else
|
|
inline std::string native_to_utf8(std::string const& v)
|
|
{
|
|
return std::string(v);
|
|
};
|
|
inline std::filesystem::path native_to_utf8(std::filesystem::path const& v)
|
|
{
|
|
return std::filesystem::path(v);
|
|
};
|
|
|
|
inline std::string utf8_to_native(std::string const& v)
|
|
{
|
|
return std::string(v);
|
|
};
|
|
inline std::filesystem::path utf8_to_native(std::filesystem::path const& v)
|
|
{
|
|
return std::filesystem::path(v);
|
|
};
|
|
#endif
|
|
} // namespace streamfx::util::platform
|