Start on SimConnect
This commit is contained in:
@@ -23,6 +23,12 @@ namespace file
|
||||
std::string user;
|
||||
std::string scenery;
|
||||
std::string token;
|
||||
std::string FSXPath;
|
||||
std::string FSXSEPath;
|
||||
std::string P3D3Path;
|
||||
std::string P3D4Path;
|
||||
std::string P3D5Path;
|
||||
std::string MSFSPath;
|
||||
|
||||
inline void writeFile() const
|
||||
{
|
||||
@@ -30,6 +36,12 @@ namespace file
|
||||
out << "scenery=" << this->scenery << "\n";
|
||||
out << "user=" << this->user << "\n";
|
||||
out << "token=" << this->token << "\n";
|
||||
out << "fsxPath=" << this->FSXPath << "\n";
|
||||
out << "fsxSEPath=" << this->FSXSEPath << "\n";
|
||||
out << "p3d3Path=" << this->P3D3Path << "\n";
|
||||
out << "p3d4Path=" << this->P3D4Path << "\n";
|
||||
out << "p3d5Path=" << this->P3D5Path << "\n";
|
||||
out << "msfsPath=" << this->MSFSPath << "\n";
|
||||
out.close();
|
||||
}
|
||||
|
||||
@@ -49,6 +61,18 @@ namespace file
|
||||
this->user = fields[1];
|
||||
} else if (fields[0] == "token") {
|
||||
this->token = fields[1];
|
||||
} else if (fields[0] == "fsxPath") {
|
||||
this->FSXPath = fields[1];
|
||||
} else if (fields[0] == "fsxSEPath") {
|
||||
this->FSXSEPath = fields[1];
|
||||
} else if (fields[0] == "p3d3Path") {
|
||||
this->P3D3Path = fields[1];
|
||||
} else if (fields[0] == "p3d4Paht") {
|
||||
this->P3D4Path = fields[1];
|
||||
} else if (fields[0] == "p3d5Path") {
|
||||
this->P3D5Path = fields[1];
|
||||
} else if (fields[0] == "msfsPath") {
|
||||
this->MSFSPath = fields[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -65,6 +89,15 @@ namespace file
|
||||
inline const std::string getUser() const { return this->user; }
|
||||
inline const std::string getScenery() const { return this->scenery; }
|
||||
inline const std::string getToken() const { return this->token; }
|
||||
inline const std::string getFSXPath() const { return this->FSXPath; }
|
||||
inline const std::string getFSXSEPath() const
|
||||
{
|
||||
return this->FSXSEPath;
|
||||
}
|
||||
inline const std::string getP3D3Path() const { return this->P3D3Path; }
|
||||
inline const std::string getP3D4Path() const { return this->P3D4Path; }
|
||||
inline const std::string getP3D5Path() const { return this->P3D5Path; }
|
||||
inline const std::string getMSFSPath() const { return this->MSFSPath; }
|
||||
};
|
||||
} // namespace config
|
||||
} // namespace file
|
||||
|
||||
Reference in New Issue
Block a user