mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-11 19:06:12 +08:00
DataDirectories header should be shared between platform-specific implementations
This commit is contained in:
@@ -1,7 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "win32/DataDirectories.h"
|
||||
#else
|
||||
#include "unix/DataDirectories.h"
|
||||
#endif
|
||||
#include <string>
|
||||
|
||||
class DataDirectories
|
||||
{
|
||||
public:
|
||||
static const std::string& personal();
|
||||
static const std::string& personal(const std::string& path);
|
||||
|
||||
static const std::string& profile();
|
||||
static const std::string& profile(const std::string& path);
|
||||
|
||||
private:
|
||||
// static class
|
||||
DataDirectories() {}
|
||||
|
||||
static std::string _personal;
|
||||
static std::string _profile;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
class DataDirectories
|
||||
{
|
||||
public:
|
||||
static const std::string& personal();
|
||||
static const std::string& personal(const std::string& path);
|
||||
|
||||
static const std::string& profile();
|
||||
static const std::string& profile(const std::string& path);
|
||||
|
||||
private:
|
||||
// static class
|
||||
DataDirectories() {}
|
||||
|
||||
static std::string _personal;
|
||||
static std::string _profile;
|
||||
};
|
||||
Reference in New Issue
Block a user