Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Unified Diff: client/deps/glbench/src/main.cc

Issue 897003: set resource loading path relative to the executable (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/deps/glbench/src/utils.h » ('j') | client/deps/glbench/src/utils.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/glbench/src/main.cc
diff --git a/client/deps/glbench/src/main.cc b/client/deps/glbench/src/main.cc
index b0d092a0d2b412b8485a31f2dd41642c73e70340..08c19bd0680fa3faa0346c3dc5112ee6b3b22246 100644
--- a/client/deps/glbench/src/main.cc
+++ b/client/deps/glbench/src/main.cc
@@ -604,6 +604,7 @@ static void ParseArgs(int argc, char *argv[]) {
int main(int argc, char *argv[]) {
+ SetBasePathFromArgv0(argv[0], "src");
ParseArgs(argc, argv);
if (!Init()) {
printf("# Failed to initialize.\n");
« no previous file with comments | « no previous file | client/deps/glbench/src/utils.h » ('j') | client/deps/glbench/src/utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698