Another big change, this time to the NVR. It has been re-done, integrated with the RTC code, and is now ready to be used by other, non-AT-compatible systems, including an ISA card for PC/XT.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Windows resource script.
|
||||
*
|
||||
* Version: @(#)86Box.rc 1.0.13 2017/10/01
|
||||
* Version: @(#)86Box.rc 1.0.14 2017/10/01
|
||||
*
|
||||
* Authors: Miran Grca, <mgrca8@gmail.com>
|
||||
* Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
@@ -266,9 +266,6 @@ BEGIN
|
||||
12,12
|
||||
LTEXT "MB",IDT_1705,123,64,10,10
|
||||
LTEXT "Memory:",IDT_1706,7,64,30,10
|
||||
LTEXT "NVR Path:",IDT_1700,7,83,60,10
|
||||
EDITTEXT IDC_EDIT_NVR_PATH,71,82,138,12,ES_AUTOHSCROLL
|
||||
PUSHBUTTON "&Specify...",IDC_BUTTON_NVR_PATH,214,82,46,12
|
||||
CONTROL "Dynamic Recompiler",IDC_CHECK_DYNAREC,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,100,94,10
|
||||
CONTROL "Enable FPU",IDC_CHECK_FPU,"Button",BS_AUTOCHECKBOX |
|
||||
@@ -689,7 +686,9 @@ BEGIN
|
||||
IDS_2053 "Invalid number of sectors (valid values are between 1 and 63)"
|
||||
IDS_2054 "Invalid number of heads (valid values are between 1 and 16)"
|
||||
IDS_2055 "Invalid number of cylinders (valid values are between 1 and 266305)"
|
||||
IDS_2056 "Specify the NVR Path"
|
||||
#if NOTUSED
|
||||
IDS_2056
|
||||
#endif
|
||||
IDS_2057 "(empty)"
|
||||
IDS_2058 "(host drive %c:)"
|
||||
IDS_2059 "Turbo"
|
||||
|
||||
@@ -9,10 +9,11 @@
|
||||
* Windows resource defines.
|
||||
*
|
||||
* NOTE: FIXME: Strings 2176 and 2193 are same.
|
||||
* NOTE: FIXME: string 2052 not in use.
|
||||
* NOTE: FIXME: string 2095 not in use.
|
||||
* NOTE: FIXME: strings 2152-2154 not in use.
|
||||
* NOTE: FIXME: strings 2153-2154 not in use.
|
||||
*
|
||||
* Version: @(#)resource.h 1.0.8 2017/10/01
|
||||
* Version: @(#)resource.h 1.0.9 2017/10/01
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -105,8 +106,6 @@
|
||||
#define IDC_MEMTEXT 1017
|
||||
#define IDC_MEMSPIN 1018
|
||||
#define IDC_TEXT_MB IDT_1705
|
||||
#define IDC_EDIT_NVR_PATH 1019
|
||||
#define IDC_BUTTON_NVR_PATH 1020
|
||||
|
||||
#define IDC_VIDEO 1030 /* video config */
|
||||
#define IDC_COMBO_VIDEO 1031
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* The Emulator's Windows core.
|
||||
*
|
||||
* Version: @(#)win.c 1.0.14 2017/10/01
|
||||
* Version: @(#)win.c 1.0.14 2017/10/02
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -338,8 +338,8 @@ void mainthread(LPVOID param)
|
||||
if (frames >= 200 && nvr_dosave)
|
||||
{
|
||||
frames = 0;
|
||||
nvr_save();
|
||||
nvr_dosave = 0;
|
||||
savenvr();
|
||||
}
|
||||
end_time = timer_read();
|
||||
main_time += end_time - start_time;
|
||||
@@ -1904,7 +1904,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpsz
|
||||
Sleep(200);
|
||||
TerminateThread(mainthreadh, 0);
|
||||
|
||||
savenvr();
|
||||
nvr_save();
|
||||
|
||||
config_save();
|
||||
|
||||
@@ -2022,7 +2022,7 @@ win_pc_reset(int hard)
|
||||
|
||||
Sleep(100);
|
||||
|
||||
savenvr();
|
||||
nvr_save();
|
||||
|
||||
config_save();
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Windows 86Box Settings dialog handler.
|
||||
*
|
||||
* Version: @(#)win_settings.c 1.0.17 2017/10/01
|
||||
* Version: @(#)win_settings.c 1.0.17 2017/10/02
|
||||
*
|
||||
* Author: Miran Grca, <mgrca8@gmail.com>
|
||||
* Copyright 2016,2017 Miran Grca.
|
||||
@@ -56,7 +56,6 @@
|
||||
|
||||
/* Machine category */
|
||||
static int temp_machine, temp_cpu_m, temp_cpu, temp_wait_states, temp_mem_size, temp_dynarec, temp_fpu, temp_sync;
|
||||
static wchar_t temp_nvr_path[520];
|
||||
|
||||
/* Video category */
|
||||
static int temp_gfxcard, temp_video_speed, temp_voodoo;
|
||||
@@ -115,8 +114,6 @@ static void win_settings_init(void)
|
||||
temp_wait_states = cpu_waitstates;
|
||||
temp_cpu = cpu;
|
||||
temp_mem_size = mem_size;
|
||||
memset(temp_nvr_path, 0, sizeof(temp_nvr_path));
|
||||
wcscpy(temp_nvr_path, nvr_path);
|
||||
temp_dynarec = cpu_use_dynarec;
|
||||
temp_fpu = enable_external_fpu;
|
||||
temp_sync = enable_sync;
|
||||
@@ -187,7 +184,6 @@ static int win_settings_changed(void)
|
||||
i = i || (cpu_waitstates != temp_wait_states);
|
||||
i = i || (cpu != temp_cpu);
|
||||
i = i || (mem_size != temp_mem_size);
|
||||
i = i || wcscmp(temp_nvr_path, nvr_path);
|
||||
i = i || (temp_dynarec != cpu_use_dynarec);
|
||||
i = i || (temp_fpu != enable_external_fpu);
|
||||
i = i || (temp_sync != enable_sync);
|
||||
@@ -292,8 +288,6 @@ static void win_settings_save(void)
|
||||
cpu_waitstates = temp_wait_states;
|
||||
cpu = temp_cpu;
|
||||
mem_size = temp_mem_size;
|
||||
memset(nvr_path, 0, sizeof(nvr_path));
|
||||
wcscpy(nvr_path, temp_nvr_path);
|
||||
cpu_use_dynarec = temp_dynarec;
|
||||
enable_external_fpu = temp_fpu;
|
||||
enable_sync = temp_sync;
|
||||
@@ -548,7 +542,6 @@ static BOOL CALLBACK win_settings_machine_proc(HWND hdlg, UINT message, WPARAM w
|
||||
int d = 0;
|
||||
LPTSTR lptsTemp;
|
||||
char *stransi;
|
||||
wchar_t *p;
|
||||
|
||||
switch (message)
|
||||
{
|
||||
@@ -600,9 +593,6 @@ static BOOL CALLBACK win_settings_machine_proc(HWND hdlg, UINT message, WPARAM w
|
||||
|
||||
win_settings_machine_recalc_machine(hdlg);
|
||||
|
||||
h = GetDlgItem(hdlg, IDC_EDIT_NVR_PATH);
|
||||
SendMessage(h, WM_SETTEXT, 0, (LPARAM) temp_nvr_path);
|
||||
|
||||
free(lptsTemp);
|
||||
|
||||
return TRUE;
|
||||
@@ -644,24 +634,6 @@ static BOOL CALLBACK win_settings_machine_proc(HWND hdlg, UINT message, WPARAM w
|
||||
|
||||
deviceconfig_open(hdlg, (void *)machine_getdevice(temp_machine));
|
||||
break;
|
||||
case IDC_BUTTON_NVR_PATH:
|
||||
p = BrowseFolder(temp_nvr_path, win_language_get_string_from_id(IDS_2056));
|
||||
if (wcscmp(p, L""))
|
||||
{
|
||||
memset(temp_nvr_path, 0, sizeof(temp_nvr_path));
|
||||
wcscpy(temp_nvr_path, p);
|
||||
if (temp_nvr_path[wcslen(temp_nvr_path) - 1] == L'/')
|
||||
{
|
||||
temp_nvr_path[wcslen(temp_nvr_path) - 1] = L'\\';
|
||||
}
|
||||
else if (temp_nvr_path[wcslen(temp_nvr_path) - 1] != L'\\')
|
||||
{
|
||||
temp_nvr_path[wcslen(temp_nvr_path)] = L'\\';
|
||||
}
|
||||
h = GetDlgItem(hdlg, IDC_EDIT_NVR_PATH);
|
||||
SendMessage(h, WM_SETTEXT, 0, (LPARAM) temp_nvr_path);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user