Skip to content

Commit 11da27d

Browse files
authored
Merge pull request #11 from thekovic/fix-gobext-output-dir
gobext: Don't force outdir subfolder if user specified outdir by cmd arg
2 parents c525967 + 37c4090 commit 11da27d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ CTestTestfile.cmake
4646
.vs
4747
.vscode
4848
CMakeSettings.json
49+
out

programs/gobext/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ int main(int argc, const char *argv[])
115115
{
116116
auto vfs = gobLoad(inputFile);
117117

118-
outdir /= inputFile.stem().string() + "_GOB";
118+
if (outdir == "")
119+
{
120+
outdir /= inputFile.stem().string() + "_GOB";
121+
}
119122
makePath(outdir);
120123

121124
if(!extractGob(vfs, outdir, bVerboseOutput)) {

0 commit comments

Comments
 (0)