mirror of
https://github.com/siemens-mobile-hacks/pmb887x-emu.git
synced 2026-11-25 19:37:31 +00:00
Make directory SD cards writable
This commit is contained in:
parent
771b77dcdc
commit
7ab6303372
2 changed files with 4 additions and 2 deletions
|
|
@ -108,6 +108,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
|||
--enable-tcg
|
||||
--enable-slirp
|
||||
--enable-vvfat
|
||||
--enable-qcow1
|
||||
--enable-lto
|
||||
--enable-strip
|
||||
)
|
||||
|
|
@ -182,6 +183,7 @@ else()
|
|||
--enable-capstone
|
||||
--enable-slirp
|
||||
--enable-vvfat
|
||||
--enable-qcow1
|
||||
)
|
||||
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ int main(int argc, char *argv[]) {
|
|||
program.add_group("Memory card options");
|
||||
|
||||
program.add_argument("--sdcard")
|
||||
.help("SD card image, or a directory presented as a FAT16 card whose changes are lost on exit")
|
||||
.help("SD card image, or a directory presented as a writable FAT16 card")
|
||||
.nargs(1);
|
||||
|
||||
program.add_group("Startup options");
|
||||
|
|
@ -586,7 +586,7 @@ int main(int argc, char *argv[]) {
|
|||
if (auto sdcard = program.present("--sdcard")) {
|
||||
std::string file = *sdcard;
|
||||
if (std::filesystem::is_directory(file))
|
||||
file = "fat:16:" + file + ",snapshot=on";
|
||||
file = "fat:rw:16:" + file;
|
||||
qemuArgs.emplace_back("-drive");
|
||||
qemuArgs.emplace_back("if=sd,index=0,format=raw,file=" + file);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue