1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Remove almost every extern C block

This commit is contained in:
Gymnasiast
2018-02-01 18:49:14 +01:00
committed by Michael Steenbeek
parent d9d4bbd3b6
commit 778ba466c5
173 changed files with 4762 additions and 5790 deletions

View File

@@ -408,31 +408,29 @@ ITrackDesignRepository * GetTrackDesignRepository()
return _trackDesignRepository;
}
extern "C"
void track_repository_scan()
{
void track_repository_scan()
{
ITrackDesignRepository * repo = GetTrackDesignRepository();
repo->Scan();
}
bool track_repository_delete(const utf8 * path)
{
ITrackDesignRepository * repo = GetTrackDesignRepository();
return repo->Delete(path);
}
bool track_repository_rename(const utf8 * path, const utf8 * newName)
{
ITrackDesignRepository * repo = GetTrackDesignRepository();
std::string newPath = repo->Rename(path, newName);
return !newPath.empty();
}
bool track_repository_install(const utf8 * srcPath)
{
ITrackDesignRepository * repo = GetTrackDesignRepository();
std::string newPath = repo->Install(srcPath);
return !newPath.empty();
}
ITrackDesignRepository * repo = GetTrackDesignRepository();
repo->Scan();
}
bool track_repository_delete(const utf8 * path)
{
ITrackDesignRepository * repo = GetTrackDesignRepository();
return repo->Delete(path);
}
bool track_repository_rename(const utf8 * path, const utf8 * newName)
{
ITrackDesignRepository * repo = GetTrackDesignRepository();
std::string newPath = repo->Rename(path, newName);
return !newPath.empty();
}
bool track_repository_install(const utf8 * srcPath)
{
ITrackDesignRepository * repo = GetTrackDesignRepository();
std::string newPath = repo->Install(srcPath);
return !newPath.empty();
}