Skip to content

Commit

Permalink
Add helper to disable manual DLL loading
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Sep 7, 2021
1 parent d9971b7 commit bc065bb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ static File fromResources(ClassLoader cl) throws IOException, URISyntaxException
}
}

public static void assumeInitialized() {
assumeInitialized(true);
}
public static void assumeInitialized(boolean initialized) {
LoadWindowsLibrary.initialized = initialized;
}

final static Object lock = new Object();
static boolean initialized = false;
public static void ensureInitialized() {
Expand Down

0 comments on commit bc065bb

Please sign in to comment.