From d0cb19e9d24567941cf4ddaf92f08ac5bef778af Mon Sep 17 00:00:00 2001 From: Mathew Date: Fri, 18 Mar 2016 00:25:30 -0400 Subject: [PATCH] Minor config tweaks --- src/config.cpp | 1 - src/config.h | 1 - src/sharedstate.cpp | 10 ---------- 3 files changed, 12 deletions(-) diff --git a/src/config.cpp b/src/config.cpp index 93390d0..725eeed 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -73,7 +73,6 @@ void Config::read(int argc, char *argv[]) PO_DESC(gameFolder, std::string, ".") \ PO_DESC(allowSymlinks, bool, false) \ PO_DESC(iconPath, std::string, "") \ - PO_DESC(execName, std::string, "Game") \ PO_DESC(SE.sourceCount, int, 6) \ PO_DESC(pathCache, bool, true) diff --git a/src/config.h b/src/config.h index 72dda46..5499ded 100644 --- a/src/config.h +++ b/src/config.h @@ -53,7 +53,6 @@ struct Config bool pathCache; std::string iconPath; - std::string execName; struct { diff --git a/src/sharedstate.cpp b/src/sharedstate.cpp index ddee1f7..f46cffb 100644 --- a/src/sharedstate.cpp +++ b/src/sharedstate.cpp @@ -122,16 +122,6 @@ struct SharedStatePrivate if (gl.ReleaseShaderCompiler) gl.ReleaseShaderCompiler(); - std::string archPath = config.execName + gameArchExt(); - - /* Check if a game archive exists */ - FILE *tmp = fopen(archPath.c_str(), "rb"); - if (tmp) - { - fileSystem.addPath(archPath.c_str()); - fclose(tmp); - } - fileSystem.addPath("."); if (config.pathCache)