2009-09-12 01:03:44 +00:00
|
|
|
/* PCSX2 - PS2 Emulator for PCs
|
|
|
|
* Copyright (C) 2002-2009 PCSX2 Dev Team
|
2010-04-25 00:31:27 +00:00
|
|
|
*
|
2009-09-12 01:03:44 +00:00
|
|
|
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU Lesser General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with PCSX2.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
enum FoldersEnum_t
|
|
|
|
{
|
2011-01-10 17:48:25 +00:00
|
|
|
// FIXME : Plugins, Settings, and Themes folders are no longer part of the user-local
|
|
|
|
// ini storage. They have been moved to an app-local ini storage class (which is currently
|
|
|
|
// handled lazily via global variables)
|
2009-09-12 01:03:44 +00:00
|
|
|
FolderId_Plugins = 0,
|
|
|
|
FolderId_Settings,
|
2011-01-10 17:48:25 +00:00
|
|
|
FolderId_Themes,
|
|
|
|
|
2009-09-12 01:03:44 +00:00
|
|
|
FolderId_Bios,
|
|
|
|
FolderId_Snapshots,
|
|
|
|
FolderId_Savestates,
|
|
|
|
FolderId_MemoryCards,
|
|
|
|
FolderId_Logs,
|
2011-01-22 14:50:05 +00:00
|
|
|
FolderId_Langs,
|
2010-04-25 00:31:27 +00:00
|
|
|
|
2010-03-05 14:24:44 +00:00
|
|
|
FolderId_Documents,
|
2010-04-25 00:31:27 +00:00
|
|
|
|
2013-05-23 20:03:10 +00:00
|
|
|
FolderId_Cheats,
|
|
|
|
FolderId_CheatsWS,
|
|
|
|
|
2009-09-12 01:03:44 +00:00
|
|
|
FolderId_COUNT
|
|
|
|
};
|
|
|
|
|
2011-01-10 17:48:25 +00:00
|
|
|
// --------------------------------------------------------------------------------------
|
|
|
|
// PathDefs (namespace)
|
|
|
|
// --------------------------------------------------------------------------------------
|
|
|
|
// Contains default values for various pcsx2 path names and locations.
|
2009-09-12 01:03:44 +00:00
|
|
|
//
|
|
|
|
// Note: The members of this namespace are intended for default value initialization only.
|
2011-01-10 17:48:25 +00:00
|
|
|
// Everything else should use the path folder assignments in g_Conf instead, since those
|
2009-09-12 01:03:44 +00:00
|
|
|
// are user-configurable.
|
|
|
|
//
|
|
|
|
namespace PathDefs
|
|
|
|
{
|
2011-01-10 17:48:25 +00:00
|
|
|
// complete pathnames are returned by these functions (may or may not be absolute)
|
2009-09-12 01:03:44 +00:00
|
|
|
|
|
|
|
extern wxDirName GetSnapshots();
|
|
|
|
extern wxDirName GetBios();
|
|
|
|
extern wxDirName GetThemes();
|
|
|
|
extern wxDirName GetPlugins();
|
|
|
|
extern wxDirName GetSavestates();
|
|
|
|
extern wxDirName GetMemoryCards();
|
|
|
|
extern wxDirName GetSettings();
|
|
|
|
extern wxDirName GetLogs();
|
2011-01-22 14:50:05 +00:00
|
|
|
extern wxDirName GetLangs();
|
2013-05-23 20:03:10 +00:00
|
|
|
extern wxDirName GetCheats();
|
|
|
|
extern wxDirName GetCheatsWS();
|
2014-02-22 10:22:29 +00:00
|
|
|
extern wxDirName GetDocs();
|
2009-09-12 01:03:44 +00:00
|
|
|
|
|
|
|
extern wxDirName Get( FoldersEnum_t folderidx );
|
|
|
|
|
|
|
|
// Base folder names used to extend out the documents/approot folder base into a complete
|
|
|
|
// path. These are typically for internal AppConfig use only, barring a few special cases.
|
|
|
|
namespace Base
|
|
|
|
{
|
|
|
|
extern const wxDirName& Snapshots();
|
|
|
|
extern const wxDirName& Savestates();
|
|
|
|
extern const wxDirName& MemoryCards();
|
|
|
|
extern const wxDirName& Settings();
|
|
|
|
extern const wxDirName& Plugins();
|
|
|
|
extern const wxDirName& Themes();
|
2011-01-10 17:48:25 +00:00
|
|
|
extern const wxDirName& Logs();
|
|
|
|
extern const wxDirName& Dumps();
|
2011-01-22 14:50:05 +00:00
|
|
|
extern const wxDirName& Langs();
|
2013-05-23 20:03:10 +00:00
|
|
|
extern const wxDirName& Cheats();
|
|
|
|
extern const wxDirName& CheatsWS();
|
2014-02-22 10:22:29 +00:00
|
|
|
extern const wxDirName& Docs();
|
2009-09-12 01:03:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace FilenameDefs
|
|
|
|
{
|
2011-01-10 17:48:25 +00:00
|
|
|
extern wxFileName GetUiConfig();
|
2011-09-11 22:13:02 +00:00
|
|
|
extern wxFileName GetUiKeysConfig();
|
2011-01-10 17:48:25 +00:00
|
|
|
extern wxFileName GetVmConfig();
|
2009-09-12 01:03:44 +00:00
|
|
|
extern wxFileName GetUsermodeConfig();
|
2009-09-13 17:11:35 +00:00
|
|
|
extern const wxFileName& Memcard( uint port, uint slot );
|
2009-09-12 01:03:44 +00:00
|
|
|
};
|
|
|
|
|