Fix compilation on Windows

This commit is contained in:
SimoneN64
2024-09-23 10:05:46 +02:00
parent 8f1586b493
commit bb1f80b1ed

View File

@@ -87,7 +87,7 @@ FORCE_INLINE void SetROMCIC(u32 checksum, ROM &rom) {
}
std::vector<u8> Mem::OpenArchive(const std::string &path, size_t &sizeAdjusted) {
auto stream = ar_open_file(fs::path(path).c_str());
auto stream = ar_open_file(fs::path(path).string().c_str());
if (!stream) {
Util::panic("Could not open archive! Are you sure it's an archive?");