mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -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,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/FileUtil.h"
|
||||
#include "DiscIO/Blob.h"
|
||||
@ -19,7 +21,7 @@ namespace DiscIO
|
||||
class DriveReader : public SectorReader
|
||||
{
|
||||
private:
|
||||
DriveReader(const char *drive);
|
||||
DriveReader(const std::string& drive);
|
||||
void GetBlock(u64 block_num, u8 *out_ptr) override;
|
||||
|
||||
#ifdef _WIN32
|
||||
@ -33,7 +35,7 @@ private:
|
||||
s64 size;
|
||||
|
||||
public:
|
||||
static DriveReader *Create(const char *drive);
|
||||
static DriveReader* Create(const std::string& drive);
|
||||
~DriveReader();
|
||||
u64 GetDataSize() const override { return size; }
|
||||
u64 GetRawSize() const override { return size; }
|
||||
|
Reference in New Issue
Block a user