mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilib] Use IsSimulation() consistently (#3534)
This commit is contained in:
@@ -13,7 +13,7 @@ std::string frc::filesystem::GetLaunchDirectory() {
|
||||
}
|
||||
|
||||
std::string frc::filesystem::GetOperatingDirectory() {
|
||||
if constexpr (RobotBase::IsReal()) {
|
||||
if constexpr (!RobotBase::IsSimulation()) {
|
||||
return "/home/lvuser";
|
||||
} else {
|
||||
return frc::filesystem::GetLaunchDirectory();
|
||||
@@ -21,7 +21,7 @@ std::string frc::filesystem::GetOperatingDirectory() {
|
||||
}
|
||||
|
||||
std::string frc::filesystem::GetDeployDirectory() {
|
||||
if constexpr (RobotBase::IsReal()) {
|
||||
if constexpr (!RobotBase::IsSimulation()) {
|
||||
return "/home/lvuser/deploy";
|
||||
} else {
|
||||
return (fs::current_path() / "src" / "main" / "deploy").string();
|
||||
|
||||
Reference in New Issue
Block a user