Skip to content

Portable Mode #82

@kathyrollo

Description

@kathyrollo

Currently, the app saves config in AppData/Local/ and downloads in AppData/Roaming/ by default.

As a utility app, it makes more sense in its nature to be completely standalone/portable, where everything it needs like settings.json and ird/ are in its own folder, with paths relative to its root dir by default. Adding a portable.txt like emulators do to make it an option (if not default) is viable too.

Thanks for the very handy tool!

Activity

x7l7j8cc

x7l7j8cc commented on Apr 22, 2025

@x7l7j8cc

@kathyrollo
If you are interested, i have a fork of this tool , with some modification (noUAC and PortableMode).

PortableMode behaves like you want, it checks for the presence of the file portable.txt, and if found it starts in portable mode.

Obviously, it's your choice if you want to stay with the Original or the Fork i modded.

@13xforever
if you are interested, you just need to replace

  • in "Ps3DiscDumper\Settings.cs" (Defaults Dumps/IRD Folder)
public string OutputDir { get; set; } = (File.Exists(Path.Combine(Directory.GetCurrentDirectory(), "portable.txt"))) ? Path.Combine(".", "dumps") : ".";
public string IrdDir { get; set; } =  (File.Exists(Path.Combine(Directory.GetCurrentDirectory(), "portable.txt"))) ? Path.Combine(".", "ird") : Path.Combine(Environment.GetFolderPath(SpecialFolder.ApplicationData), "ps3-iso-dumper", "ird");
  • in "Ps3DiscDumper\SettingsProvider.cs" (Default settings.json Location)
settingsFolder = (File.Exists(Path.Combine(Directory.GetCurrentDirectory(), "portable.txt"))) ? Directory.GetCurrentDirectory() : Path.Combine(Environment.GetFolderPath(SpecialFolder.LocalApplicationData), "ps3-disc-dumper");

i have tested this under Windows and Works, on Linux or Mac i dont know as i dont own a Mac, and dont use Linux.

kathyrollo

kathyrollo commented on May 25, 2025

@kathyrollo
Author

Hi @x7l7j8cc , thanks for letting me know. Maybe you could just raise a PR?

x7l7j8cc

x7l7j8cc commented on May 26, 2025

@x7l7j8cc

@kathyrollo I can't, because doing a PR will do a complete Pull of my Fork, even unwanted ones...
So i think it's best if @13xforever does the 2 changes manually, they are very simple and easy to do, i even listed the files interested for a quick change.

It's up to @13xforever if he wants to do the changes or not.

kathyrollo

kathyrollo commented on May 28, 2025

@kathyrollo
Author

@x7l7j8cc Will probably just wait for the official changes then. Thanks anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @13xforever@x7l7j8cc@kathyrollo

        Issue actions

          Portable Mode · Issue #82 · 13xforever/ps3-disc-dumper