diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-10-28 21:48:46 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-10-28 21:48:46 -0700 |
commit | 94eea1e7324e6599decb73b78d13b111dd5b2621 (patch) | |
tree | 19dd4d605eccceba3b802089c7062b42fa13926c /blastem.c | |
parent | da665eb04a793552ed32ed8944dffbeb5220d7ae (diff) |
Extract function to determine executable directory from load_config so it can be used elsewhere
Diffstat (limited to 'blastem.c')
-rw-r--r-- | blastem.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -11,6 +11,7 @@ #include "render.h" #include "blastem.h" #include "gst.h" +#include "util.h" #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1762,7 +1763,8 @@ int main(int argc, char ** argv) fputs("Usage: blastem [OPTIONS] ROMFILE [WIDTH] [HEIGHT]\n", stderr); return 1; } - config = load_config(argv[0]); + set_exe_str(argv[0]); + config = load_config(); detect_region(); int width = -1; int height = -1; |