Lines 35-41
Link Here
|
35 |
#include <glib/gthread.h> |
35 |
#include <glib/gthread.h> |
36 |
#include <unistd.h> |
36 |
#include <unistd.h> |
37 |
|
37 |
|
38 |
|
|
|
39 |
#include "Common.h" |
38 |
#include "Common.h" |
40 |
#include "PsxCommon.h" |
39 |
#include "PsxCommon.h" |
41 |
#include "Linux.h" |
40 |
#include "Linux.h" |
Lines 112-124
Link Here
|
112 |
"\t-numimages [num] {after hitting frame, this many images will be captures every 20 frames}\n" |
111 |
"\t-numimages [num] {after hitting frame, this many images will be captures every 20 frames}\n" |
113 |
"\t-test {Triggers testing mode (only for dev builds)}\n" |
112 |
"\t-test {Triggers testing mode (only for dev builds)}\n" |
114 |
"\n" |
113 |
"\n" |
115 |
#endif |
|
|
116 |
|
114 |
|
117 |
"Load Plugins:\n" |
115 |
"Load Plugins:\n" |
118 |
"\t-cdvd [dllpath] {specify the dll load path of the CDVD plugin}\n" |
116 |
"\t-cdvd [dllpath] {specify the dll load path of the CDVD plugin}\n" |
119 |
"\t-gs [dllpath] {specify the dll load path of the GS plugin}\n" |
117 |
"\t-gs [dllpath] {specify the dll load path of the GS plugin}\n" |
120 |
"-pad [tsxcal] {specify to hold down on the triangle, square, circle, x, start, select buttons}\n" |
118 |
"-pad [tsxcal] {specify to hold down on the triangle, square, circle, x, start, select buttons}\n" |
121 |
"\t-spu [dllpath] {specify the dll load path of the SPU2 plugin}\n" |
119 |
"\t-spu [dllpath] {specify the dll load path of the SPU2 plugin}\n" |
|
|
120 |
#endif |
122 |
"\n"; |
121 |
"\n"; |
123 |
|
122 |
|
124 |
//SysMessage(phelpmsg); |
123 |
//SysMessage(phelpmsg); |
Lines 132-193
Link Here
|
132 |
} |
131 |
} |
133 |
else if( stricmp(token, "-nogui") == 0 ) { |
132 |
else if( stricmp(token, "-nogui") == 0 ) { |
134 |
UseGui = 0; |
133 |
UseGui = 0; |
|
|
134 |
|
135 |
} |
135 |
} |
136 |
else if( stricmp(token, "-image") == 0 ) { |
136 |
else if( stricmp(token, "-loadgs") == 0 ) { |
137 |
g_TestRun.pimagename = argv[i++]; |
137 |
g_pRunGSState = argv[i++]; |
138 |
} |
138 |
} |
139 |
else if( stricmp(token, "-loadgs") == 0 ) { |
139 |
else if( stricmp(token, "-pad") == 0 ) { |
140 |
g_pRunGSState = argv[i++]; |
140 |
token = argv[i++]; |
141 |
} |
141 |
printf("-pad ignored\n"); |
142 |
else if( stricmp(token, "-log") == 0 ) { |
142 |
} |
143 |
g_TestRun.plogname = argv[i++]; |
143 |
#ifdef PCSX2_DEVBUILD |
144 |
} |
144 |
else if( stricmp(token, "-numimages") == 0 ) { |
145 |
else if( stricmp(token, "-logopt") == 0 ) { |
145 |
token = argv[i++]; |
146 |
token = argv[i++]; |
146 |
if( token != NULL ) { |
147 |
if( token != NULL ) { |
147 |
g_TestRun.numimages = atoi(token); |
148 |
if( token[0] == '0' && token[1] == 'x' ) token += 2; |
|
|
149 |
sscanf(token, "%x", &varLog); |
150 |
} |
151 |
} |
152 |
else if( stricmp(token, "-pad") == 0 ) { |
153 |
token = argv[i++]; |
154 |
printf("-pad ignored\n"); |
155 |
} |
156 |
else if( stricmp(token, "-frame") == 0 ) { |
157 |
token = argv[i++]; |
158 |
if( token != NULL ) { |
159 |
g_TestRun.frame = atoi(token); |
160 |
} |
161 |
} |
162 |
else if( stricmp(token, "-numimages") == 0 ) { |
163 |
token = argv[i++]; |
164 |
if( token != NULL ) { |
165 |
g_TestRun.numimages = atoi(token); |
166 |
} |
167 |
} |
168 |
else if( stricmp(token, "-jpg") == 0 ) { |
169 |
g_TestRun.jpgcapture = 1; |
170 |
} |
171 |
else if( stricmp(token, "-gs") == 0 ) { |
172 |
token = argv[i++]; |
173 |
g_TestRun.pgsdll = token; |
174 |
} |
175 |
else if( stricmp(token, "-cdvd") == 0 ) { |
176 |
token = argv[i++]; |
177 |
g_TestRun.pcdvddll = token; |
178 |
} |
148 |
} |
179 |
else if( stricmp(token, "-spu") == 0 ) { |
149 |
} |
180 |
token = argv[i++]; |
150 |
else if( stricmp(token, "-gs") == 0 ) { |
181 |
g_TestRun.pspudll = token; |
151 |
token = argv[i++]; |
|
|
152 |
g_TestRun.pgsdll = token; |
153 |
} |
154 |
else if( stricmp(token, "-cdvd") == 0 ) { |
155 |
token = argv[i++]; |
156 |
g_TestRun.pcdvddll = token; |
157 |
} |
158 |
else if( stricmp(token, "-spu") == 0 ) { |
159 |
token = argv[i++]; |
160 |
g_TestRun.pspudll = token; |
161 |
} |
162 |
else if( stricmp(token, "-loadgs") == 0 ) { |
163 |
token = argv[i++]; |
164 |
g_pRunGSState = token; |
165 |
} |
166 |
else if( stricmp(token, "-image") == 0 ) { |
167 |
g_TestRun.pimagename = argv[i++]; |
168 |
} |
169 |
else if( stricmp(token, "-log") == 0 ) { |
170 |
g_TestRun.plogname = argv[i++]; |
171 |
} |
172 |
else if( stricmp(token, "-logopt") == 0 ) { |
173 |
token = argv[i++]; |
174 |
if( token != NULL ) { |
175 |
if( token[0] == '0' && token[1] == 'x' ) token += 2; |
176 |
sscanf(token, "%x", &varLog); |
182 |
} |
177 |
} |
183 |
else if( stricmp(token, "-loadgs") == 0 ) { |
178 |
} |
184 |
token = argv[i++]; |
179 |
else if( stricmp(token, "-frame") == 0 ) { |
185 |
g_pRunGSState = token; |
180 |
token = argv[i++]; |
|
|
181 |
if( token != NULL ) { |
182 |
g_TestRun.frame = atoi(token); |
186 |
} |
183 |
} |
|
|
184 |
} |
185 |
else if( stricmp(token, "-jpg") == 0 ) { |
186 |
g_TestRun.jpgcapture = 1; |
187 |
} |
187 |
else if( stricmp(token, "-test") == 0 ) { |
188 |
else if( stricmp(token, "-test") == 0 ) { |
188 |
g_TestRun.enabled = 1; |
189 |
g_TestRun.enabled = 1; |
189 |
} |
190 |
} |
190 |
else { |
191 |
#endif |
|
|
192 |
else { |
191 |
file = token; |
193 |
file = token; |
192 |
printf("opening file %s\n", file); |
194 |
printf("opening file %s\n", file); |
193 |
} |
195 |
} |