set filename when loading file data ios

This commit is contained in:
scawful
2024-08-10 00:13:06 -04:00
parent fecfd4f2a3
commit 0a30dca2ce

View File

@@ -314,6 +314,8 @@
size_t size = [data length]; size_t size = [data length];
PRINT_IF_ERROR(yaze::app::SharedRom::shared_rom_->LoadFromPointer(bytes, size)); PRINT_IF_ERROR(yaze::app::SharedRom::shared_rom_->LoadFromPointer(bytes, size));
std::string filename = std::string([selectedFileURL.path UTF8String]);
yaze::app::SharedRom::shared_rom_->set_filename(filename);
[selectedFileURL stopAccessingSecurityScopedResource]; [selectedFileURL stopAccessingSecurityScopedResource];
} else { } else {