mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 00:03:37 +01:00
Introduce Path, start using it all over the place.
Still lots left to convert! Convert GetSysDirectory to return Path. More buildfixing Remove unnecessary Path( constructors
This commit is contained in:
1 parent
2987b8c17a
commit
025bcb1673
123 files changed
+1321
-949
No files matched your search
+4
-3
@@ -158,8 +158,8 @@ static std::string LocalFromRemotePath(const std::string &path) {
|
||||
return "";
|
||||
}
|
||||
|
||||
static void DiscHandler(const http::Request &request, const std::string &filename) {
|
||||
s64 sz = File::GetFileSize(filename);
|
||||
static void DiscHandler(const http::Request &request, const Path &filename) {
|
||||
s64 sz = File::GetFileSize(filename.ToString());
|
||||
|
||||
std::string range;
|
||||
if (request.Method() == http::RequestHeader::HEAD) {
|
||||
@@ -231,7 +231,8 @@ static void HandleFallback(const http::Request &request) {
|
||||
if (serverFlags & (int)WebServerFlags::DISCS) {
|
||||
std::string filename = LocalFromRemotePath(request.resource());
|
||||
if (!filename.empty()) {
|
||||
DiscHandler(request, filename);
|
||||
// TODO(scoped): Is this right?
|
||||
DiscHandler(request, Path(filename));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user