You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Haiku: some small fixes
This commit is contained in:
@@ -206,11 +206,10 @@ Error StreamPeerTCPPosix::write(const uint8_t* p_data,int p_bytes, int &r_sent,
|
|||||||
|
|
||||||
while (data_to_send) {
|
while (data_to_send) {
|
||||||
|
|
||||||
// TODO: haiku does not have MSG_NOSIGNAL
|
|
||||||
#ifdef __HAIKU__
|
#ifdef __HAIKU__
|
||||||
int sent_amount = send(sockfd, offset, data_to_send, 0);
|
int sent_amount = send(sockfd, offset, data_to_send, 0);
|
||||||
#else
|
#else
|
||||||
int sent_amount = send(sockfd, offset, data_to_send, MSG_NOSIGNAL);
|
int sent_amount = send(sockfd, offset, data_to_send, MSG_NOSIGNAL);
|
||||||
#endif
|
#endif
|
||||||
//printf("Sent TCP data of %d bytes, errno %d\n", sent_amount, errno);
|
//printf("Sent TCP data of %d bytes, errno %d\n", sent_amount, errno);
|
||||||
|
|
||||||
|
|||||||
@@ -79,3 +79,7 @@ OS::VideoMode OS_Haiku::get_video_mode(int p_screen) const {
|
|||||||
void OS_Haiku::get_fullscreen_mode_list(List<VideoMode> *p_list, int p_screen) const {
|
void OS_Haiku::get_fullscreen_mode_list(List<VideoMode> *p_list, int p_screen) const {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String OS_Haiku::get_executable_path() const {
|
||||||
|
return OS::get_executable_path();
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#ifndef OS_HAIKU_H
|
#ifndef OS_HAIKU_H
|
||||||
#define OS_HAIKU_H
|
#define OS_HAIKU_H
|
||||||
|
|
||||||
#include "os/os.h"
|
|
||||||
#include "drivers/unix/os_unix.h"
|
#include "drivers/unix/os_unix.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -38,6 +37,7 @@ public:
|
|||||||
virtual void set_video_mode(const VideoMode& p_video_mode, int p_screen=0);
|
virtual void set_video_mode(const VideoMode& p_video_mode, int p_screen=0);
|
||||||
virtual VideoMode get_video_mode(int p_screen=0) const;
|
virtual VideoMode get_video_mode(int p_screen=0) const;
|
||||||
virtual void get_fullscreen_mode_list(List<VideoMode> *p_list, int p_screen=0) const;
|
virtual void get_fullscreen_mode_list(List<VideoMode> *p_list, int p_screen=0) const;
|
||||||
|
virtual String get_executable_path() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user