Applied a typo-fixing mainline PCem commit to 808x.c;
Temporarily reverted serial port and serial mouse code back to the old one until the new code is fixed; Fixed nvr_path handling - the NVR path no longer gets messed up at hard reset.
This commit is contained in:
12
src/pc.c
12
src/pc.c
@@ -953,15 +953,21 @@ void loadconfig(wchar_t *fn)
|
||||
bugger_enabled = config_get_int(NULL, "bugger_enabled", 0);
|
||||
}
|
||||
|
||||
wchar_t temp_nvr_path[1024];
|
||||
|
||||
wchar_t *nvr_concat(wchar_t *to_concat)
|
||||
{
|
||||
char *p = (char *) nvr_path;
|
||||
char *p;
|
||||
|
||||
memset(temp_nvr_path, 0, 2048);
|
||||
wcscpy(temp_nvr_path, nvr_path);
|
||||
|
||||
p = (char *) temp_nvr_path;
|
||||
p += (path_len * 2);
|
||||
wchar_t *wp = (wchar_t *) p;
|
||||
|
||||
memset(wp, 0, (1024 - path_len) * 2);
|
||||
wcscpy(wp, to_concat);
|
||||
return nvr_path;
|
||||
return temp_nvr_path;
|
||||
}
|
||||
|
||||
void saveconfig()
|
||||
|
||||
Reference in New Issue
Block a user