Skip to content

Commit

Permalink
fix lib loading if platform unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern committed Dec 13, 2024
1 parent c01f53d commit f3bd298
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/mega/trace/MEGATrace.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public class MEGATrace {
public void preInit(FMLPreInitializationEvent event) {
try {
Tracy.load();
Tracy.init();
Runtime.getRuntime().addShutdownHook(new Thread(Tracy::deinit));
} catch (UnsupportedPlatformException ex) {
Share.log.warn("Could not load Foo natives!");
Share.log.warn("Could not load Tracy natives!", ex);
}
Tracy.init();
Runtime.getRuntime().addShutdownHook(new Thread(Tracy::deinit));
}
}

0 comments on commit f3bd298

Please sign in to comment.