forked from libretro/RetroArch
-
Notifications
You must be signed in to change notification settings - Fork 2
/
file_path_str.c
227 lines (222 loc) · 6.04 KB
/
file_path_str.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2017 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch 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 RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "file_path_special.h"
const char *file_path_str(enum file_path_enum enum_idx)
{
const char *str = "null";
switch (enum_idx)
{
case FILE_PATH_PROGRAM_NAME:
#if defined(IS_SALAMANDER)
str = "RetroArch Salamander";
#else
str = "RetroArch";
#endif
break;
case FILE_PATH_DETECT:
str = "DETECT";
break;
case FILE_PATH_CONTENT_BASENAME:
str = "content.png";
break;
case FILE_PATH_LUTRO_PLAYLIST:
str = "Lutro.lpl";
break;
case FILE_PATH_NUL:
str = "nul";
break;
case FILE_PATH_LOG_WARN:
str = "[WARN]";
break;
case FILE_PATH_LOG_ERROR:
str = "[ERROR]";
break;
case FILE_PATH_LOG_INFO:
str = "[INFO]";
break;
case FILE_PATH_CGP_EXTENSION:
str = ".cgp";
break;
case FILE_PATH_GLSLP_EXTENSION:
str = ".glslp";
break;
case FILE_PATH_SLANGP_EXTENSION:
str = ".slangp";
break;
case FILE_PATH_AUTO_EXTENSION:
str = ".auto";
break;
case FILE_PATH_BSV_EXTENSION:
str = ".bsv";
break;
case FILE_PATH_OPT_EXTENSION:
str = ".opt";
break;
case FILE_PATH_CORE_INFO_EXTENSION:
str = ".info";
break;
case FILE_PATH_CONFIG_EXTENSION:
str = ".cfg";
break;
case FILE_PATH_REMAP_EXTENSION:
str = ".rmp";
break;
case FILE_PATH_RTC_EXTENSION:
str = ".rtc";
break;
case FILE_PATH_CHT_EXTENSION:
str = ".cht";
break;
case FILE_PATH_SRM_EXTENSION:
str = ".srm";
break;
case FILE_PATH_STATE_EXTENSION:
str = ".state";
break;
case FILE_PATH_LPL_EXTENSION:
str = ".lpl";
break;
case FILE_PATH_LPL_EXTENSION_NO_DOT:
str = "lpl";
break;
case FILE_PATH_PNG_EXTENSION:
str = ".png";
break;
case FILE_PATH_OGG_EXTENSION:
str = ".ogg";
break;
case FILE_PATH_WAV_EXTENSION:
str = ".wav";
break;
case FILE_PATH_MOD_EXTENSION:
str = ".mod";
break;
case FILE_PATH_S3M_EXTENSION:
str = ".s3m";
break;
case FILE_PATH_XM_EXTENSION:
str = ".xm";
break;
case FILE_PATH_JPEG_EXTENSION:
str = ".jpeg";
break;
case FILE_PATH_BMP_EXTENSION:
str = ".bmp";
break;
case FILE_PATH_TGA_EXTENSION:
str = ".tga";
break;
case FILE_PATH_JPG_EXTENSION:
str = ".jpg";
break;
case FILE_PATH_UPS_EXTENSION:
str = ".ups";
break;
case FILE_PATH_IPS_EXTENSION:
str = ".ips";
break;
case FILE_PATH_BPS_EXTENSION:
str = ".bps";
break;
case FILE_PATH_RDB_EXTENSION:
str = ".rdb";
break;
case FILE_PATH_ZIP_EXTENSION:
str = ".zip";
break;
case FILE_PATH_7Z_EXTENSION:
str = ".7z";
break;
case FILE_PATH_INDEX_URL:
str = ".index";
break;
case FILE_PATH_INDEX_DIRS_URL:
str = ".index-dirs";
break;
case FILE_PATH_INDEX_EXTENDED_URL:
str = ".index-extended";
break;
case FILE_PATH_NETPLAY_ROOM_LIST_URL:
str = "registry.lpl";
break;
case FILE_PATH_CORE_THUMBNAILS_URL:
str = "http://thumbnailpacks.libretro.com";
break;
case FILE_PATH_LAKKA_URL:
str = "http://le.builds.lakka.tv";
break;
case FILE_PATH_SHADERS_GLSL_ZIP:
str = "shaders_glsl.zip";
break;
case FILE_PATH_SHADERS_SLANG_ZIP:
str = "shaders_slang.zip";
break;
case FILE_PATH_SHADERS_CG_ZIP:
str = "shaders_cg.zip";
break;
case FILE_PATH_DATABASE_RDB_ZIP:
str = "database-rdb.zip";
break;
case FILE_PATH_OVERLAYS_ZIP:
str = "overlays.zip";
break;
case FILE_PATH_CORE_INFO_ZIP:
str = "info.zip";
break;
case FILE_PATH_CHEATS_ZIP:
str = "cheats.zip";
break;
case FILE_PATH_ASSETS_ZIP:
str = "assets.zip";
break;
case FILE_PATH_AUTOCONFIG_ZIP:
str = "autoconfig.zip";
break;
case FILE_PATH_CONTENT_HISTORY:
str = "content_history.lpl";
break;
case FILE_PATH_CONTENT_FAVORITES:
str = "content_favorites.lpl";
break;
case FILE_PATH_CONTENT_MUSIC_HISTORY:
str = "content_music_history.lpl";
break;
case FILE_PATH_CONTENT_VIDEO_HISTORY:
str = "content_video_history.lpl";
break;
case FILE_PATH_CONTENT_IMAGE_HISTORY:
str = "content_image_history.lpl";
break;
case FILE_PATH_CORE_OPTIONS_CONFIG:
str = "retroarch-core-options.cfg";
break;
case FILE_PATH_MAIN_CONFIG:
str = "retroarch.cfg";
break;
case FILE_PATH_BACKGROUND_IMAGE:
str = "bg.png";
break;
case FILE_PATH_TTF_FONT:
str = "font.ttf";
break;
case FILE_PATH_UNKNOWN:
default:
break;
}
return str;
}