mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-14 11:10:33 +00:00
Migrate from old .ini to new .ini
This commit is contained in:
parent
448e41ecaa
commit
deaaf3d22f
2 changed files with 27 additions and 1 deletions
|
@ -158,6 +158,25 @@ namespace linb
|
|||
|
||||
/* Too lazy to continue this container... If you need more methods, just add it */
|
||||
|
||||
// re3
|
||||
void remove(const string_type& sect, const key_type& key)
|
||||
{
|
||||
auto it = this->find(sect);
|
||||
if(it != this->end())
|
||||
{
|
||||
it->second.erase(key);
|
||||
}
|
||||
}
|
||||
|
||||
int category_size(const string_type& sect)
|
||||
{
|
||||
auto it = this->find(sect);
|
||||
if(it != this->end())
|
||||
{
|
||||
return it->second.size();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if 1
|
||||
bool read_file(const char_type* filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue