Skip to content

Commit

Permalink
Add savedGames for Windows. Remove deprecated constants. Fix findExec…
Browse files Browse the repository at this point in the history
…utable
  • Loading branch information
FreeSlave committed Mar 17, 2016
1 parent 926ed6f commit 7d3a20f
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 109 deletions.
5 changes: 3 additions & 2 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@

"configurations" : [
{
"name" : "default"
"name" : "default",
"versions-windows":["LinkedShell32", "LinkedAdvApi"]
},
{
"name" : "linkedshell32",
"versions-windows":["LinkedShell32"],
"versions-windows":["LinkedShell32", "LinkedAdvApi"],
"platforms" : ["windows"]
}
],
Expand Down
9 changes: 4 additions & 5 deletions examples/printdirs/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ int main()
version(Windows) {
writeln("\nSpecific functions for Windows:");
writeln("Roaming data: ", roamingPath());
writeln("Saved games: ", savedGames());
} else {
writeln("\nSpecific functions for Linux:");
writeln("Runtime: ", xdgRuntimeDir());
}

writeln("\nSystem directories");
Expand All @@ -43,11 +47,6 @@ int main()
writefln("Videos dirs: %-(%s, %)", standardPaths(StandardPath.videos));

writefln("Templates dirs: %-(%s, %)", standardPaths(StandardPath.templates));
} else version(OSX) {

} else version(linux) {
writeln("\nSpecific functions for Linux:");
writeln("Runtime: ", xdgRuntimeDir());
}

return 0;
Expand Down
Loading

0 comments on commit 7d3a20f

Please sign in to comment.