_try_extracting(prefix + '_tar_downloaded_with_copyfileobj.xz') With open(prefix + '_tar_downloaded_with_copyfileobj.xz', 'wb') as f:Ĭopyfileobj(copyfileobj_download_request.raw, f) # This would be `copyfileobj(tq, f)` if fully wrapped # Here I would insert `tqdm.wrapattr(copyfileobj_download_request.raw, "read", total=content_length) as tq:` Print('Downloading xz via copyfileobj from requests')Ĭopyfileobj_download_request = requests.get(url, stream=True)Ĭontent_length = int(copyfileobj_download_('content-length'))Ĭopyfileobj_download_ = partial(copyfileobj_download_, decode_content=True) Print('Also attempting use of command-line `ar` tool')ĭef _download_and_extract_in_various_ways(url, prefix): Print('Falling back to extracting via command-line `tar` tool') With tarfile.open(filename, mode='r:xz') as tf: See the sample code below where I try multiple approaches both for downloading and for extracting, from two different tars (just to check that I'm not testing against an actually malformed tar) - all of them fail: I cannot figure out how to download and extract an. Dog's Life (NTSC-U) went from 1.52GB to 457MB (69.9% decrease) and Jim Henson's Muppets Party Cruise went from 2.74GB to 974MB (64.4% decrease).Apologies for a really basic question, but I'm at my wits' end here. Harry Potter & The Goblet of Fire (NTSC-U) went from 4.13GB to 910MB, a 78% decrease. Sidenote trivia: If you're not already compressing your PS1/PS2 images, you really should be. What should I be doing for my non-disc roms? 7Z and the like would probably be more efficient (and it is routinely showing about 10% smaller filesize, roughly, than ZIP), but I don't think it's supported in emulators nearly as much. So far I'm just zipping them since ZIP seems to be supported in popular emulators, but it's hard to tell which might or might not. Although I have storage space to spare, I'm wondering about compressing all of them.įor example, the Atari 2600 BINs, or GBA. However that's mostly a compression for disc-based games, so stuff you'd be doing from ISO or BIN+CUE. Same command was used for PS1 - both DuckStation and PCSX2 have support for loading in. I've currently compressed my PS2 DVDs with chdman createraw -us 2048 -hs 16384 (DVD compression) and CDs with chdman createcd. Join us at /r/EmuDev Android Emulator accuracy tests:Īre you an emulator developer? Send the moderators a message if you'd like a user flair reflecting that.Ĭurrently going through my library trying to cut down on unnecessary space. Game recommendations: /v/'s Recommended Games Wiki r/SBCGaming - Single Board Computer Gaming (Raspberry Pi, etc) r/EmulationOnPC - For PC and Mac emulation troubleshooting and support r/EmulationOnAndroid - Android emulation and troubleshooting General Computers Handhelds Consoles Nintendo Browse All FAQ Discussion Links Posts asking which games are playable/what the emulator is called/where to get it will be removed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |