mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:00:04 +00:00
Additional placefile view/add enhancements
This commit is contained in:
parent
0064733679
commit
18c05b3a63
6 changed files with 119 additions and 22 deletions
|
|
@ -110,16 +110,13 @@ std::shared_ptr<Placefile> Placefile::Load(const std::string& filename)
|
|||
{
|
||||
logger_->debug("Loading placefile: {}", filename);
|
||||
std::ifstream f(filename, std::ios_base::in);
|
||||
return Load(filename, f);
|
||||
return Load(f);
|
||||
}
|
||||
|
||||
std::shared_ptr<Placefile> Placefile::Load(const std::string& name,
|
||||
std::istream& is)
|
||||
std::shared_ptr<Placefile> Placefile::Load(std::istream& is)
|
||||
{
|
||||
std::shared_ptr<Placefile> placefile = std::make_shared<Placefile>();
|
||||
|
||||
placefile->p->title_ = name;
|
||||
|
||||
std::string line;
|
||||
while (scwx::util::getline(is, line))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue