diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-05-31 13:59:03 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-05-31 13:59:03 +0000 |
| commit | 15a247741a63d78340d2296ca178715bda2dd21b (patch) | |
| tree | d77bff89dc9bcead252dbbd9a45760329700fad8 /plugins/dfOpenGL | |
| parent | d39fdd22f8606bc38b008a4061f5fcae32e56b91 (diff) | |
| download | pcsxr-15a247741a63d78340d2296ca178715bda2dd21b.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@23611 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfOpenGL')
| -rw-r--r-- | plugins/dfOpenGL/cfg.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/plugins/dfOpenGL/cfg.c b/plugins/dfOpenGL/cfg.c index c048da68..6270e54a 100644 --- a/plugins/dfOpenGL/cfg.c +++ b/plugins/dfOpenGL/cfg.c @@ -86,20 +86,26 @@ void ExecCfg(char *arg) { strcpy(cfg, "./cfgDFOpenGL"); if (stat(cfg, &buf) != -1) { - sprintf(cfg, "%s %s", cfg, arg); - system(cfg); return; + strcat(cfg, " "); + strcat(cfg, arg); + system(cfg); + return; } strcpy(cfg, "./cfg/cfgDFOpenGL"); if (stat(cfg, &buf) != -1) { - sprintf(cfg, "%s %s", cfg, arg); - system(cfg); return; + strcat(cfg, " "); + strcat(cfg, arg); + system(cfg); + return; } sprintf(cfg, "%s/.pcsx/plugins/cfg/cfgDFOpenGL", getenv("HOME")); if (stat(cfg, &buf) != -1) { - sprintf(cfg, "%s %s", cfg, arg); - system(cfg); return; + strcat(cfg, " "); + strcat(cfg, arg); + system(cfg); + return; } printf("ERROR: cfgDFOpenGL file not found!\n"); |
