Remove steam
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
var steam = use("steam");
|
||||
|
||||
log.console("Steam module loaded:", steam);
|
||||
|
||||
if (steam) {
|
||||
log.console("Steam functions available:");
|
||||
log.console("- steam_init:", typeof steam.steam_init);
|
||||
log.console("- steam_shutdown:", typeof steam.steam_shutdown);
|
||||
log.console("- steam_run_callbacks:", typeof steam.steam_run_callbacks);
|
||||
|
||||
log.console("\nSteam sub-modules:");
|
||||
log.console("- stats:", steam.stats);
|
||||
log.console("- achievement:", steam.achievement);
|
||||
log.console("- app:", steam.app);
|
||||
log.console("- user:", steam.user);
|
||||
log.console("- friends:", steam.friends);
|
||||
log.console("- cloud:", steam.cloud);
|
||||
|
||||
// Try to initialize Steam
|
||||
log.console("\nAttempting to initialize Steam...");
|
||||
var init_result = steam.steam_init();
|
||||
log.console("Initialization result:", init_result);
|
||||
|
||||
if (init_result) {
|
||||
// Get some basic info
|
||||
log.console("\nApp ID:", steam.app.app_id());
|
||||
log.console("User logged on:", steam.user.user_logged_on());
|
||||
|
||||
if (steam.user.user_logged_on()) {
|
||||
log.console("User name:", steam.friends.friends_name());
|
||||
log.console("User state:", steam.friends.friends_state());
|
||||
}
|
||||
|
||||
// Shutdown when done
|
||||
steam.steam_shutdown();
|
||||
log.console("Steam shut down");
|
||||
}
|
||||
} else {
|
||||
log.console("Steam module not available (compiled without Steam support)");
|
||||
}
|
||||
Reference in New Issue
Block a user