/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 */
package org.lwjgl.system.macosx;

import org.lwjgl.system.*;

import static org.lwjgl.system.APIUtil.*;

/** Implements a {@link SharedLibrary} on the macOS. */
public abstract class MacOSXLibrary extends SharedLibrary.Default {

    protected MacOSXLibrary(String name, long handle) {
        super(name, handle);
    }

    public static MacOSXLibrary getWithIdentifier(String bundleID) {
        apiLog("Loading library: " + bundleID);
        MacOSXLibraryBundle lib = MacOSXLibraryBundle.getWithIdentifier(bundleID);
        apiLog("\tSuccess");
        return lib;
    }

    public static MacOSXLibrary create(String name) {
        return name.endsWith(".framework")
            ? MacOSXLibraryBundle.create(name)
            : MacOSXLibraryDL.create(name);
    }

}


@@ -824,16 +824,20 @@
        :
+ new
  MacOSXL
@@ -844,23 +844,16 @@
 ibraryDL
-.create
 (name);%0A

remove invalid factory method