HISE Logo Forum
    • Categories
    • Register
    • Login

    Show File not working on Windows Compiled Plugin

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 247 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Soundavid
      last edited by

      Hi Everyone, I have a button with a showFile function that points to a folder in expansionFolder, works perfectly in Mac but is not working in the compiled plugin in Windows, (Works inside HISE).

      Maybe im missing something or anyone else have the same problem? Thanks.

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Soundavid
        last edited by

        @Soundavid My first suspicion is it's got something to do with forward or back slashes. Got a snippet?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        S 2 Replies Last reply Reply Quote 0
        • S
          Soundavid @d.healey
          last edited by

          @d-healey I think my problem is that the folder is not being extracted in the install Callback, in Mac it opens the upper folder if the folder doesn't exist but in windows doesn't open any window :grinning_face_with_sweat:

          1 Reply Last reply Reply Quote 0
          • S
            Soundavid @d.healey
            last edited by

            @d-healey I have this lines in the install Callback

            var m = expansionRootFolder.getChildFile("MidiFiles.zip");
            var d = expansionRootFolder.getChildFile("MidiFiles");
                    
                   
            Server.setBaseURL("https://");
            Server.downloadFile(Url.replace("https://"), {}, m, downloadCallback);
                   
            m.extractZipFile(d, true, extractionCallback);
            

            I think the problem is that the files are not fully downloaded to be extracted, any ideas?

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @Soundavid
              last edited by

              @Soundavid You can use .createDirectory() instead of .getChildFile(). Does that help?

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              S 1 Reply Last reply Reply Quote 0
              • S
                Soundavid @d.healey
                last edited by

                @d-healey Im going to try that, thanks

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                14

                Online

                1.7k

                Users

                11.8k

                Topics

                102.3k

                Posts