cellar is now capable of finding your steam libraries
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace cellar {
|
||||
namespace steam {
|
||||
extern std::vector<std::string> find_steam_libraries();
|
||||
}
|
||||
}
|
26
include/internal/steam.hpp.cog
Normal file
26
include/internal/steam.hpp.cog
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "commands.hpp"
|
||||
|
||||
namespace cellar {
|
||||
namespace steam {
|
||||
extern std::vector<std::string> find_steam_libraries();
|
||||
extern void test_command(int argc, std::vector<std::string> argv);
|
||||
/*[[[cog
|
||||
import cog
|
||||
|
||||
with open("src/steam/commands.txt") as commandsfile:
|
||||
for line in commandsfile:
|
||||
item = line.strip().split(" ")
|
||||
cog.outl("extern void {0} (int, vector<string>);".format(item[1]))
|
||||
]]]*/
|
||||
//[[[end]]]
|
||||
}
|
||||
namespace commands {
|
||||
extern std::map<std::string,cellar::commands::CommandFunction> steam_commands();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user