Minor fixes for Xcode.

This commit is contained in:
Stephen Anthony 2023-11-17 12:40:01 -03:30
parent 78187876db
commit c3b81d00ae
3 changed files with 4 additions and 4 deletions

View File

@ -1108,14 +1108,14 @@ ostream& operator<<(ostream& os, const PhysicalJoystickHandler& jh)
os << "---------------------------------------------------------\n" os << "---------------------------------------------------------\n"
<< "joy database:\n"; << "joy database:\n";
for(const auto& [_name, _info]: jh.myDatabase) for(const auto& [_name, _info]: jh.myDatabase)
os << _name << '\n' << _info << '\n\n'; os << _name << '\n' << _info << "\n\n";
os << "---------------------\n" os << "---------------------\n"
<< "joy active:\n"; << "joy active:\n";
for(const auto& [_id, _joyptr]: jh.mySticks) for(const auto& [_id, _joyptr]: jh.mySticks)
os << _id << ": " << *_joyptr << '\n'; os << _id << ": " << *_joyptr << '\n';
os << "---------------------------------------------------------" os << "---------------------------------------------------------"
<< '\n\n\n'; << "\n\n\n";
return os; return os;
} }

View File

@ -125,7 +125,7 @@ bool OSystem::initialize(const Settings::Options& options)
ostringstream buf; ostringstream buf;
buf << "Stella " << STELLA_VERSION << '\n' buf << "Stella " << STELLA_VERSION << '\n'
<< " Features: " << myFeatures << '\n' << " Features: " << myFeatures << '\n'
<< " " << myBuildInfo << '\n\n' << " " << myBuildInfo << "\n\n"
<< "Base directory: '" << "Base directory: '"
<< myBaseDir.getShortPath() << "'\n" << myBaseDir.getShortPath() << "'\n"
<< "State directory: '" << "State directory: '"

View File

@ -32,6 +32,6 @@ void OSystemMACOS::getBaseDirectories(string& basedir, string& homedir,
basedir = FSNode(usedir).getPath(); basedir = FSNode(usedir).getPath();
#endif #endif
FSNode desktop("~/Desktop/"); const FSNode desktop("~/Desktop/");
homedir = desktop.isDirectory() ? desktop.getShortPath() : "~/"; homedir = desktop.isDirectory() ? desktop.getShortPath() : "~/";
} }