HISE Logo Forum
    • Categories
    • Register
    • Login

    [bug] isUserPresetReadOnly always undefined

    Scheduled Pinned Locked Moved Solved Bug Reports
    bugpresetread only
    2 Posts 1 Posters 277 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.
    • d.healeyD
      d.healey
      last edited by d.healey

      This happens both inside HISE (with the read only factory presets preference enabled or disabled).

      const f = FileSystem.getFolder(FileSystem.UserPresets).getChildFile("Country/Basses/Basic Basses.preset"); // Replace with path to one of your presets
      
      Console.print(Engine.isUserPresetReadOnly(f));
      

      In the source I can see that when running in HISE it should return the value of the preference. I checked in a debugger and indeed that is the value that is being returned. Yet it shows up as undefined within HISE...

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

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

        Well that was an easy fix

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

        1 Reply Last reply Reply Quote 2
        • d.healeyD d.healey marked this topic as a question on
        • d.healeyD d.healey has marked this topic as solved on
        • First post
          Last post

        54

        Online

        1.7k

        Users

        11.7k

        Topics

        102.2k

        Posts