mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Kill off some usages of c_str.
Also changes some function params, but this is ok. Some simplifications were also able to be made (ie. killing off strcmps with ==, etc).
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
@ -15,10 +16,10 @@ namespace DiscIO
|
||||
|
||||
class WbfsFileReader : public IBlobReader
|
||||
{
|
||||
WbfsFileReader(const char* filename);
|
||||
WbfsFileReader(const std::string& filename);
|
||||
~WbfsFileReader();
|
||||
|
||||
bool OpenFiles(const char* filename);
|
||||
bool OpenFiles(const std::string& filename);
|
||||
bool ReadHeader();
|
||||
|
||||
File::IOFile& SeekToCluster(u64 offset, u64* available);
|
||||
@ -54,14 +55,14 @@ class WbfsFileReader : public IBlobReader
|
||||
bool m_good;
|
||||
|
||||
public:
|
||||
static WbfsFileReader* Create(const char* filename);
|
||||
static WbfsFileReader* Create(const std::string& filename);
|
||||
|
||||
u64 GetDataSize() const override { return m_size; }
|
||||
u64 GetRawSize() const override { return m_size; }
|
||||
bool Read(u64 offset, u64 nbytes, u8* out_ptr) override;
|
||||
};
|
||||
|
||||
bool IsWbfsBlob(const char* filename);
|
||||
bool IsWbfsBlob(const std::string& filename);
|
||||
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user