mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Config: Move recent ISOs access to accessors.
This commit is contained in:
1 parent
b529313db2
commit
aad5082d55
7 files changed
+29
-16
No files matched your search
+2
-2
@@ -150,7 +150,7 @@ static std::string RemotePathForRecent(const std::string &filename) {
|
||||
}
|
||||
|
||||
static Path LocalFromRemotePath(const std::string &path) {
|
||||
for (const std::string &filename : g_Config.recentIsos) {
|
||||
for (const std::string &filename : g_Config.RecentIsos()) {
|
||||
std::string basename = RemotePathForRecent(filename);
|
||||
if (basename == path) {
|
||||
return Path(filename);
|
||||
@@ -216,7 +216,7 @@ static void HandleListing(const http::Request &request) {
|
||||
request.Out()->Printf("/\n");
|
||||
if (serverFlags & (int)WebServerFlags::DISCS) {
|
||||
// List the current discs in their recent order.
|
||||
for (const std::string &filename : g_Config.recentIsos) {
|
||||
for (const std::string &filename : g_Config.RecentIsos()) {
|
||||
std::string basename = RemotePathForRecent(filename);
|
||||
if (!basename.empty()) {
|
||||
request.Out()->Printf("%s\n", basename.c_str());
|
||||
|
||||
Reference in new issue
Block a user