bottle_steam type introduced

This commit is contained in:
2025-02-03 17:50:33 -08:00
parent d11b690708
commit de049cea1a
5 changed files with 19 additions and 27 deletions

View File

@@ -163,6 +163,9 @@ void cellar::bottles::print_bottles(int argc, vector<string> argv) {
case bottle_labelled:
outstr << bottle.config["name"];
break;
case bottle_steam:
outstr << "Steam managed bottle for " << bottle.config["name"];
break;
default:
outstr << "broken or unsupported wine bottle";
}

View File

@@ -44,6 +44,7 @@ std::map<std::string, cellar::bottles::Bottle> cellar::steam::get_app_bottles()
}
auto curbottle = cellar::bottles::Bottle((pth_appid / "pfx").string());
curbottle.type = cellar::bottles::bottle_steam;
curbottle.set_config("name", str_gamename);
curbottle.save_config();
result[std::string("steam:" + pth_appid.filename().string())] = curbottle;