2005-05-28 01:28:36 +00:00
|
|
|
//============================================================================
|
|
|
|
//
|
2016-12-30 00:00:30 +00:00
|
|
|
// SSSS tt lll lll
|
|
|
|
// SS SS tt ll ll
|
|
|
|
// SS tttttt eeee ll ll aaaa
|
2005-05-28 01:28:36 +00:00
|
|
|
// SSSS tt ee ee ll ll aa
|
|
|
|
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emulator"
|
|
|
|
// SS SS tt ee ll ll aa aa
|
|
|
|
// SSSS ttt eeeee llll llll aaaaa
|
|
|
|
//
|
2016-12-30 00:00:30 +00:00
|
|
|
// Copyright (c) 1995-2017 by Bradford W. Mott, Stephen Anthony
|
2010-04-10 21:37:23 +00:00
|
|
|
// and the Stella Team
|
2005-05-28 01:28:36 +00:00
|
|
|
//
|
2010-01-10 03:23:32 +00:00
|
|
|
// See the file "License.txt" for information on usage and redistribution of
|
2005-05-28 01:28:36 +00:00
|
|
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
|
|
|
//============================================================================
|
|
|
|
|
2011-11-25 14:17:05 +00:00
|
|
|
#include "FSNode.hxx"
|
2005-05-28 01:28:36 +00:00
|
|
|
#include "OSystemMACOSX.hxx"
|
2006-04-05 02:18:58 +00:00
|
|
|
|
2005-05-28 01:28:36 +00:00
|
|
|
/**
|
|
|
|
Each derived class is responsible for calling the following methods
|
|
|
|
in its constructor:
|
|
|
|
|
|
|
|
setBaseDir()
|
Removed all reference to 'user.pro', in favour of the previous (to v/2.0)
functionality. The new scheme is as follows:
- Per-user properties are stored in stella.pro, which is located in
system-specific directories (homedir for UNIX/POSIX systems, currentdir
for Win32 systems).
- Completely removed concept of a global properties file, since that
functionality is now included in Stella directly.
- Retained the ability to use an alternative properties file, in which
case the per-user one isn't used at all, and any entries in it override
the built-in defaults.
Removed all reference to 'system' vs. 'user' config files, for much the
same reasons as above. As above, config files are stored in
user-specific places depending on platform. There is no longer a
system-wide config file. This made sense when Stella didn't have built-in
defaults and relied on such a file, but that's no longer the case.
Sorry for any confusion this causes, but it was causing even more confusion
for users. And now we can distribute Stella has a single binary which
doesn't depend on any external files (but will still use them if they're
present).
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1050 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-17 19:44:19 +00:00
|
|
|
setConfigFile()
|
2005-05-28 01:28:36 +00:00
|
|
|
|
|
|
|
See OSystem.hxx for a further explanation
|
|
|
|
*/
|
|
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
2007-07-19 16:21:39 +00:00
|
|
|
OSystemMACOSX::OSystemMACOSX()
|
|
|
|
: OSystem()
|
2005-05-28 01:28:36 +00:00
|
|
|
{
|
2010-04-09 11:54:25 +00:00
|
|
|
setBaseDir("~/Library/Application Support/Stella");
|
2009-07-01 16:04:28 +00:00
|
|
|
|
|
|
|
// This will be overridden, as OSX uses plist files for settings
|
2010-04-09 11:54:25 +00:00
|
|
|
setConfigFile("~/Library/Application Support/Stella/stellarc");
|
2005-05-28 01:28:36 +00:00
|
|
|
}
|
|
|
|
|
2011-11-25 14:17:05 +00:00
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
2013-02-16 19:56:09 +00:00
|
|
|
string OSystemMACOSX::defaultSnapSaveDir()
|
2011-11-25 14:17:05 +00:00
|
|
|
{
|
|
|
|
FilesystemNode desktop("~/Desktop");
|
2013-02-03 00:13:08 +00:00
|
|
|
return desktop.isDirectory() ? desktop.getShortPath() : "~";
|
2011-11-25 14:17:05 +00:00
|
|
|
}
|
2013-02-16 19:56:09 +00:00
|
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
string OSystemMACOSX::defaultSnapLoadDir()
|
|
|
|
{
|
|
|
|
return defaultSnapSaveDir();
|
|
|
|
}
|