Improve pcap errors
This commit is contained in:
@@ -713,9 +713,9 @@ load_network(void)
|
||||
if (p != NULL) {
|
||||
if ((network_dev_to_id(p) == -1) || (network_ndev == 1)) {
|
||||
if ((network_ndev == 1) && strcmp(network_host, "none")) {
|
||||
ui_msgbox(MBX_ERROR, (wchar_t *)IDS_2094);
|
||||
ui_msgbox_header(MBX_ERROR, (wchar_t *) IDS_2094, (wchar_t *) IDS_2129);
|
||||
} else if (network_dev_to_id(p) == -1) {
|
||||
ui_msgbox(MBX_ERROR, (wchar_t *)IDS_2095);
|
||||
ui_msgbox_header(MBX_ERROR, (wchar_t *) IDS_2095, (wchar_t *) IDS_2129);
|
||||
}
|
||||
|
||||
strcpy(network_host, "none");
|
||||
|
@@ -102,6 +102,7 @@
|
||||
#define IDS_2126 2126 // "An emulator of old computers..."
|
||||
#define IDS_2127 2127 // "OK"
|
||||
#define IDS_2128 2128 // "Hardware not available"
|
||||
#define IDS_2129 2129 // "Make sure " PCAP " is installed..."
|
||||
|
||||
#define IDS_4096 4096 // "Hard disk (%s)"
|
||||
#define IDS_4097 4097 // "%01i:%01i"
|
||||
|
@@ -438,7 +438,7 @@ network_reset(void)
|
||||
|
||||
if (i < 0) {
|
||||
/* Tell user we can't do this (at the moment.) */
|
||||
ui_msgbox(MBX_ERROR, (wchar_t *)IDS_2093);
|
||||
ui_msgbox_header(MBX_ERROR, (wchar_t *) IDS_2093, (wchar_t *) IDS_2129);
|
||||
|
||||
// FIXME: we should ask in the dialog if they want to
|
||||
// reconfigure or quit, and throw them into the
|
||||
|
@@ -930,7 +930,7 @@ BEGIN
|
||||
IDS_2090 "Default"
|
||||
IDS_2091 "%i Wait state(s)"
|
||||
IDS_2092 "Type"
|
||||
IDS_2093 "PCap failed to set up because it may not be initialized"
|
||||
IDS_2093 "Failed to set up PCap"
|
||||
IDS_2094 "No PCap devices found"
|
||||
IDS_2095 "Invalid PCap device"
|
||||
IDS_2096 "Standard 2-button joystick(s)"
|
||||
@@ -966,6 +966,12 @@ BEGIN
|
||||
IDS_2126 "An emulator of old computers\n\nAuthors: Sarah Walker, Miran Grca, Fred N. van Kempen (waltje), SA1988, MoochMcGee, reenigne, leilei, JohnElliott, greatpsycho, and others.\n\nReleased under the GNU General Public License version 2. See LICENSE for more information."
|
||||
IDS_2127 "OK"
|
||||
IDS_2128 "Hardware not available"
|
||||
#ifdef _WIN32
|
||||
#define PCAP "WinPcap"
|
||||
#else
|
||||
#define PCAP "libpcap"
|
||||
#endif
|
||||
IDS_2129 "Make sure " PCAP " is installed and that you are on a " PCAP "-compatible network connection."
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
|
Reference in New Issue
Block a user