mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-08-13 17:03:47 -04:00
15 lines
362 B
C++
15 lines
362 B
C++
|
#include "Environment.h"
|
||
|
|
||
|
#include <map>
|
||
|
#include <string>
|
||
|
|
||
|
std::map<std::string, std::string> environmentVars;
|
||
|
|
||
|
namespace SohUtils {
|
||
|
void saveEnvironmentVar(const std::string& key, const std::string& value) {
|
||
|
environmentVars[key] = value;
|
||
|
}
|
||
|
std::string getEnvironmentVar(const std::string& key) {
|
||
|
return environmentVars[key];
|
||
|
}
|
||
|
}
|