Merge branch 'master' of https://github.com/86Box/86Box
This commit is contained in:
@@ -263,3 +263,7 @@ else()
|
||||
add_compile_definitions(USE_SDL_UI)
|
||||
add_subdirectory(unix)
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
|
||||
add_custom_command(TARGET 86Box POST_BUILD COMMAND paxctl ARGS +m $<TARGET_FILE:86Box> COMMENT "Disable PaX MPROTECT")
|
||||
endif()
|
||||
|
||||
@@ -20,6 +20,11 @@
|
||||
#ifndef EMU_86BOX_H
|
||||
#define EMU_86BOX_H
|
||||
|
||||
#ifdef __NetBSD__
|
||||
/* Doesn't compile on NetBSD without this include */
|
||||
#include <stdarg.h>
|
||||
#endif
|
||||
|
||||
/* Configuration values. */
|
||||
#define GFXCARD_MAX 2
|
||||
#define SERIAL_MAX 7
|
||||
|
||||
@@ -35,13 +35,12 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#ifndef __NetBSD__
|
||||
|
||||
#ifndef BSWAP_H
|
||||
#define BSWAP_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef __NetBSD__
|
||||
#define bswap_16(x) \
|
||||
((uint16_t)((((x) & 0x00ffu) << 8) | \
|
||||
(((x) & 0xff00u) >> 8)))
|
||||
@@ -91,6 +90,7 @@ bswap64(uint64_t x)
|
||||
return bswap_16(x);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
static __inline void
|
||||
bswap16s(uint16_t *s)
|
||||
@@ -241,5 +241,3 @@ cpu_to_be32wu(uint32_t *p, uint32_t v)
|
||||
#undef be_bswaps
|
||||
|
||||
#endif /*BSWAP_H*/
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,6 +24,11 @@
|
||||
extern "C" {
|
||||
# endif
|
||||
|
||||
#ifdef __NetBSD__
|
||||
/* Doesn't compile on NetBSD without this include */
|
||||
#include <stdarg.h>
|
||||
#endif
|
||||
|
||||
#define LOG_SIZE_BUFFER 1024 /* Log size buffer */
|
||||
#define LOG_SIZE_BUFFER_CYCLIC_LINES 32 /* Cyclic log size buffer (number of lines that should be cehcked) */
|
||||
#define LOG_MINIMUM_REPEAT_ORDER 4 /* Minimum repeat size */
|
||||
|
||||
@@ -868,7 +868,7 @@ msgid "Hardware not available"
|
||||
msgstr "ハードウェアが利用できません"
|
||||
|
||||
msgid "Make sure %1 is installed and that you are on a %1-compatible network connection."
|
||||
msgstr "がインストールされてるか、%1に対応したネットワークに接続されてるか確認してください。"
|
||||
msgstr "%1がインストールされていてかつ、%1に対応したネットワークに接続されてるか確認してください。"
|
||||
|
||||
msgid "Invalid configuration"
|
||||
msgstr "不正な設定です"
|
||||
@@ -910,10 +910,10 @@ msgid "OpenGL options"
|
||||
msgstr "OpenGL設定"
|
||||
|
||||
msgid "You are loading an unsupported configuration"
|
||||
msgstr "読み込んでいる設定がサポートされません"
|
||||
msgstr "サポートされていないコンフィグを読み込んでいます"
|
||||
|
||||
msgid "CPU type filtering based on selected machine is disabled for this emulated machine.\n\nThis makes it possible to choose a CPU that is otherwise incompatible with the selected machine. However, you may run into incompatibilities with the machine BIOS or other software.\n\nEnabling this setting is not officially supported and any bug reports filed may be closed as invalid."
|
||||
msgstr "選択したマシンに基づくCPUタイプのフィルター機能は、使用中のマシンでは無効になっています。\n\nこれにより、選択したマシンと互換性のないCPUが選択できます。しかし、マシンのBIOSや他のソフトウェアと互換性がない場合があります。\n\nこの設定を有効にすることは公式にはサポートされておらず、バグレポートは無効として中止される可能性があります。"
|
||||
msgstr "選択したマシンに基づくCPUタイプのフィルター機能は、使用中のマシンでは無効になっています。\n\nこれにより、選択したマシンと互換性のないCPUが選択できます。しかし、マシンのBIOSや他のソフトウェアと互換性がない場合があります。\n\nこの設定を有効にすることは公式にはサポートされておらず、バグレポートは無効としてクローズされる可能性があります。"
|
||||
|
||||
msgid "Continue"
|
||||
msgstr "続行"
|
||||
@@ -1015,7 +1015,7 @@ msgid "The selected file will be overwritten. Are you sure you want to use it?"
|
||||
msgstr "選択したファイルは上書きされます。よろしいですか?"
|
||||
|
||||
msgid "Unsupported disk image"
|
||||
msgstr "非対応のディスクイメージジ"
|
||||
msgstr "非対応のディスクイメージ"
|
||||
|
||||
msgid "Overwrite"
|
||||
msgstr "上書き"
|
||||
@@ -1285,7 +1285,7 @@ msgid "Host CD/DVD Drive (%1)"
|
||||
msgstr "ホスト CD/DVD ドライブ (%1)"
|
||||
|
||||
msgid "Unknown Bus"
|
||||
msgstr "不明バス"
|
||||
msgstr "不明なバス"
|
||||
|
||||
msgid "Null Driver"
|
||||
msgstr "ヌル・ドライバー"
|
||||
@@ -1294,7 +1294,7 @@ msgid "NIC %02i (%ls) %ls"
|
||||
msgstr "NIC %02i (%ls) %ls"
|
||||
|
||||
msgid "Error opening \"%1\": %2"
|
||||
msgstr "エラー・オープニング\"%1\": %2"
|
||||
msgstr "\"%1\"を開く際にエラーが発生しました: %2"
|
||||
|
||||
msgid "Error compiling vertex shader in file \"%1\""
|
||||
msgstr "ファイル\"%1\"の頂点シェーダのコンパイルエラー。"
|
||||
|
||||
@@ -836,7 +836,7 @@ plat_set_thread_name(void *thread, const char *name)
|
||||
# if defined(Q_OS_DARWIN)
|
||||
pthread_setname_np(truncated);
|
||||
# elif defined(Q_OS_NETBSD)
|
||||
pthread_setname_np(thread ? *((pthread_t *) thread) : pthread_self(), truncated, "%s");
|
||||
pthread_setname_np(thread ? *((pthread_t *) thread) : pthread_self(), truncated, (void*)"%s");
|
||||
# elif defined(__HAIKU__)
|
||||
rename_thread(find_thread(NULL), truncated);
|
||||
# elif defined(Q_OS_OPENBSD)
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#endif
|
||||
#ifdef __NetBSD__
|
||||
# define _NETBSD_VISIBLE 1
|
||||
# define _NETBSD_SOURCE 1
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
@@ -149,8 +150,11 @@ plat_serpt_set_params(void *priv)
|
||||
BAUDRATE_RANGE(dev->baudrate, 9600, 19200, B9600);
|
||||
BAUDRATE_RANGE(dev->baudrate, 19200, 38400, B19200);
|
||||
BAUDRATE_RANGE(dev->baudrate, 38400, 57600, B38400);
|
||||
#ifndef __NetBSD__
|
||||
/* nonexistent on NetBSD */
|
||||
BAUDRATE_RANGE(dev->baudrate, 57600, 115200, B57600);
|
||||
BAUDRATE_RANGE(dev->baudrate, 115200, 0xFFFFFFFF, B115200);
|
||||
#endif
|
||||
|
||||
term_attr.c_cflag &= ~CSIZE;
|
||||
switch (dev->data_bits) {
|
||||
|
||||
Reference in New Issue
Block a user