mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
Changes done by [DH] rewritten
Added rsx_program_decompiler submodule Added fs::dir iterator Added fmt::match
This commit is contained in:
parent
e8310e6c50
commit
3ed603074c
105 changed files with 339 additions and 117 deletions
|
@ -797,6 +797,24 @@ bool fs::dir::read(std::string& name, stat_t& info)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool fs::dir::first(std::string& name, stat_t& info)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
if (m_path && m_dd != -1)
|
||||
{
|
||||
CHECK_ASSERTION(FindClose((HANDLE)m_dd));
|
||||
m_dd = -1;
|
||||
}
|
||||
#else
|
||||
if (m_path)
|
||||
{
|
||||
::rewinddir((DIR*)m_dd);
|
||||
}
|
||||
#endif
|
||||
|
||||
return read(name, info);
|
||||
}
|
||||
|
||||
std::string fs::get_config_dir()
|
||||
{
|
||||
// Use magic static for dir initialization
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue