/[pcsx2_0.9.7]/trunk/pcsx2/PathDefs.h
ViewVC logotype

Contents of /trunk/pcsx2/PathDefs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (10 years, 1 month ago) by william
File MIME type: text/plain
File size: 2375 byte(s)
committing r3113 initial commit again...
1 /* PCSX2 - PS2 Emulator for PCs
2 * Copyright (C) 2002-2009 PCSX2 Dev Team
3 *
4 * PCSX2 is free software: you can redistribute it and/or modify it under the terms
5 * of the GNU Lesser General Public License as published by the Free Software Found-
6 * ation, either version 3 of the License, or (at your option) any later version.
7 *
8 * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10 * PURPOSE. See the GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License along with PCSX2.
13 * If not, see <http://www.gnu.org/licenses/>.
14 */
15
16 #pragma once
17
18 enum FoldersEnum_t
19 {
20 FolderId_Plugins = 0,
21 FolderId_Settings,
22 FolderId_Bios,
23 FolderId_Snapshots,
24 FolderId_Savestates,
25 FolderId_MemoryCards,
26 FolderId_Logs,
27
28 FolderId_Documents,
29
30 FolderId_COUNT
31 };
32
33 //////////////////////////////////////////////////////////////////////////////////////////
34 // PathDefs Namespace -- contains default values for various pcsx2 path names and locations.
35 //
36 // Note: The members of this namespace are intended for default value initialization only.
37 // Most of the time you should use the path folder assignments in g_Conf instead, since those
38 // are user-configurable.
39 //
40 namespace PathDefs
41 {
42 // complete pathnames are returned by these functions
43 // For 99% of all code, you should use these.
44
45 extern wxDirName GetSnapshots();
46 extern wxDirName GetBios();
47 extern wxDirName GetThemes();
48 extern wxDirName GetPlugins();
49 extern wxDirName GetSavestates();
50 extern wxDirName GetMemoryCards();
51 extern wxDirName GetSettings();
52 extern wxDirName GetLogs();
53
54 extern wxDirName Get( FoldersEnum_t folderidx );
55
56 // Base folder names used to extend out the documents/approot folder base into a complete
57 // path. These are typically for internal AppConfig use only, barring a few special cases.
58 namespace Base
59 {
60 extern const wxDirName& Snapshots();
61 extern const wxDirName& Savestates();
62 extern const wxDirName& MemoryCards();
63 extern const wxDirName& Settings();
64 extern const wxDirName& Plugins();
65 extern const wxDirName& Themes();
66 }
67 }
68
69 namespace FilenameDefs
70 {
71 extern wxFileName GetConfig();
72 extern wxFileName GetUsermodeConfig();
73 extern const wxFileName& Memcard( uint port, uint slot );
74 };
75

  ViewVC Help
Powered by ViewVC 1.1.22