Skip to content

Commit

Permalink
temp remove initEx
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkieSwirl committed Mar 17, 2024
1 parent 815020f commit 60fdea3
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,20 @@ public static boolean restartAppIfNecessary(int appId) throws SteamException {
}

public static boolean init() throws SteamException {
return initEx() == InitResult.OK;
return InitResult.byOrdinal(nativeInit()) == InitResult.OK;
}

public static InitResult initEx() throws SteamException {

if (!isNativeAPILoaded) {
throw new SteamException("Native libraries not loaded.\nEnsure to call SteamAPI.loadLibraries() first!");
}

InitResult result = InitResult.byOrdinal(nativeInit());
isRunning = result == InitResult.OK;

return result;
}
// public static InitResult initEx() throws SteamException {
//
// if (!isNativeAPILoaded) {
// throw new SteamException("Native libraries not loaded.\nEnsure to call SteamAPI.loadLibraries() first!");
// }
//
// InitResult result = InitResult.byOrdinal(nativeInit());
// isRunning = result == InitResult.OK;
//
// return result;
// }

public static void shutdown() {
isRunning = false;
Expand Down

0 comments on commit 60fdea3

Please sign in to comment.