Mercurial > repos > blastem
diff blastem.c @ 496:6fc71114d145
Extract function to determine executable directory from load_config so it can be used elsewhere
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 28 Oct 2013 21:48:46 -0700 |
parents | 32f053ad9b02 |
children | e1355aa80f4d |
line wrap: on
line diff
--- a/blastem.c Mon Oct 28 19:37:30 2013 -0700 +++ b/blastem.c Mon Oct 28 21:48:46 2013 -0700 @@ -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 @@ 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;