Use stderr
This commit is contained in:
parent
f588300da2
commit
b607356c86
2
debian/client/usr/bin/minecraft-pi
vendored
2
debian/client/usr/bin/minecraft-pi
vendored
@ -28,7 +28,7 @@ xhost local:root
|
||||
# Launch Minecraft
|
||||
DOCKER_COMPOSE="docker-compose -f /usr/share/minecraft-pi/client/docker-compose.yml"
|
||||
(${DOCKER_COMPOSE} pull || :) | zenity --class 'Minecraft - Pi edition' --progress --pulsate --no-cancel --auto-close --text 'Updating Minecraft...'
|
||||
${DOCKER_COMPOSE} run --rm minecraft-pi || :
|
||||
${DOCKER_COMPOSE} run --rm -T minecraft-pi || :
|
||||
|
||||
# Kill VirGL
|
||||
kill "${VIRGL_PID}"
|
||||
|
2
debian/server/usr/bin/minecraft-pi-server
vendored
2
debian/server/usr/bin/minecraft-pi-server
vendored
@ -7,4 +7,4 @@ export MCPI_ROOT="${PWD}"
|
||||
# Launch Minecraft
|
||||
DOCKER_COMPOSE="docker-compose -f /usr/share/minecraft-pi/server/docker-compose.yml"
|
||||
${DOCKER_COMPOSE} pull || :
|
||||
${DOCKER_COMPOSE} run --rm minecraft-pi
|
||||
${DOCKER_COMPOSE} run --rm -T minecraft-pi
|
||||
|
@ -35,7 +35,7 @@ static ProgressScreen_t ProgressScreen = (ProgressScreen_t) 0x37044;
|
||||
typedef void (*Minecraft_setScreen_t)(unsigned char *minecraft, unsigned char *screen);
|
||||
static Minecraft_setScreen_t Minecraft_setScreen = (Minecraft_setScreen_t) 0x15d6c;
|
||||
|
||||
#define INFO(msg, ...) printf("[INFO]: " msg "\n", __VA_ARGS__);
|
||||
#define INFO(msg, ...) fprintf(stderr, "[INFO]: " msg "\n", __VA_ARGS__);
|
||||
|
||||
// Store Minecraft For Exit
|
||||
static unsigned char *stored_minecraft = NULL;
|
||||
@ -159,7 +159,7 @@ static void *Gui_addMessage_original = NULL;
|
||||
|
||||
static void Gui_addMessage_injection(unsigned char *gui, std::string const& text) {
|
||||
// Print Log Message
|
||||
printf("[CHAT]: %s\n", text.c_str());
|
||||
fprintf(stderr, "[CHAT]: %s\n", text.c_str());
|
||||
|
||||
// Call Original Method
|
||||
revert_overwrite((void *) Gui_addMessage, Gui_addMessage_original);
|
||||
@ -214,7 +214,7 @@ void server_init() {
|
||||
}
|
||||
|
||||
if (!properties_file.is_open()) {
|
||||
printf("[ERR]: Unable To Open server.properties\n");
|
||||
fprintf(stderr, "[ERR]: Unable To Open server.properties\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user