mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-20 12:55:55 +08:00
more debug
This commit is contained in:
@@ -608,6 +608,8 @@ bool dpi_aware_enable = true;
|
|||||||
std::string dosbox_title;
|
std::string dosbox_title;
|
||||||
|
|
||||||
void DOSBOX_InitTickLoop() {
|
void DOSBOX_InitTickLoop() {
|
||||||
|
LOG(LOG_MISC,LOG_DEBUG)("Initializing tick loop management");
|
||||||
|
|
||||||
ticksRemain = 0;
|
ticksRemain = 0;
|
||||||
ticksLocked = false;
|
ticksLocked = false;
|
||||||
ticksLast = GetTicks();
|
ticksLast = GetTicks();
|
||||||
@@ -668,6 +670,8 @@ void Init_VGABIOS() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DOSBOX_RealInit() {
|
void DOSBOX_RealInit() {
|
||||||
|
LOG(LOG_MISC,LOG_DEBUG)("DOSBOX_RealInit: loading settings and initializing");
|
||||||
|
|
||||||
MAPPER_AddHandler(DOSBOX_UnlockSpeed, MK_f12, MMOD2,"speedlock","Speedlock");
|
MAPPER_AddHandler(DOSBOX_UnlockSpeed, MK_f12, MMOD2,"speedlock","Speedlock");
|
||||||
MAPPER_AddHandler(DOSBOX_UnlockSpeed2, MK_f11, MMOD2,"speedlock2","Speedlock2");
|
MAPPER_AddHandler(DOSBOX_UnlockSpeed2, MK_f11, MMOD2,"speedlock2","Speedlock2");
|
||||||
|
|
||||||
|
@@ -786,6 +786,8 @@ void CAPTURE_Destroy(Section *sec) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CAPTURE_Init() {
|
void CAPTURE_Init() {
|
||||||
|
LOG(LOG_MISC,LOG_DEBUG)("Initializing screenshot and A/V capture system");
|
||||||
|
|
||||||
Section_prop *section = static_cast<Section_prop *>(control->GetSection("dosbox"));
|
Section_prop *section = static_cast<Section_prop *>(control->GetSection("dosbox"));
|
||||||
assert(section != NULL);
|
assert(section != NULL);
|
||||||
|
|
||||||
@@ -811,6 +813,8 @@ void HARDWARE_Destroy(Section * sec) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HARDWARE_Init() {
|
void HARDWARE_Init() {
|
||||||
|
LOG(LOG_MISC,LOG_DEBUG)("HARDWARE_Init: initializing");
|
||||||
|
|
||||||
/* TODO: Hardware init. We moved capture init to it's own function. */
|
/* TODO: Hardware init. We moved capture init to it's own function. */
|
||||||
AddExitFunction(&HARDWARE_Destroy,true);
|
AddExitFunction(&HARDWARE_Destroy,true);
|
||||||
}
|
}
|
||||||
|
@@ -497,6 +497,8 @@ void IO_Reset(Section * /*sec*/) { // Reset or power on
|
|||||||
}
|
}
|
||||||
|
|
||||||
void IO_Init() {
|
void IO_Init() {
|
||||||
|
LOG(LOG_MISC,LOG_DEBUG)("Initializing I/O port handler system");
|
||||||
|
|
||||||
/* init the ports, rather than risk I/O jumping to random code */
|
/* init the ports, rather than risk I/O jumping to random code */
|
||||||
iof_queue.used=0;
|
iof_queue.used=0;
|
||||||
IO_FreeReadHandler(0,IO_MA,IO_MAX);
|
IO_FreeReadHandler(0,IO_MA,IO_MAX);
|
||||||
|
@@ -993,6 +993,8 @@ void A20GATE_ProgramStart(Program * * make) {
|
|||||||
void Init_AddressLimitAndGateMask() {
|
void Init_AddressLimitAndGateMask() {
|
||||||
Section_prop * section=static_cast<Section_prop *>(control->GetSection("dosbox"));
|
Section_prop * section=static_cast<Section_prop *>(control->GetSection("dosbox"));
|
||||||
|
|
||||||
|
LOG(LOG_MISC,LOG_DEBUG)("Initializing address limit/gate system");
|
||||||
|
|
||||||
// TODO: this option should be handled by the CPU init since it concerns emulation
|
// TODO: this option should be handled by the CPU init since it concerns emulation
|
||||||
// of older 386 and 486 boards with fewer than 32 address lines:
|
// of older 386 and 486 boards with fewer than 32 address lines:
|
||||||
//
|
//
|
||||||
@@ -1024,6 +1026,9 @@ void Init_AddressLimitAndGateMask() {
|
|||||||
/* update alias pagemask according to A20 gate */
|
/* update alias pagemask according to A20 gate */
|
||||||
if (a20_fake_changeable && a20_full_masking && !memory.a20.enabled)
|
if (a20_fake_changeable && a20_full_masking && !memory.a20.enabled)
|
||||||
memory.mem_alias_pagemask &= ~0x100;
|
memory.mem_alias_pagemask &= ~0x100;
|
||||||
|
|
||||||
|
/* log */
|
||||||
|
LOG(LOG_MISC,LOG_DEBUG)("Memory: address_bits=%u alias_pagemask=%lx",(unsigned int)memory.address_bits,(unsigned long)memory.mem_alias_pagemask);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShutDownRAM(Section * sec) {
|
void ShutDownRAM(Section * sec) {
|
||||||
|
@@ -70,6 +70,9 @@ void MSG_Replace(const char * _name, const char* _val) {
|
|||||||
void LoadMessageFile(const char * fname) {
|
void LoadMessageFile(const char * fname) {
|
||||||
if (!fname) return;
|
if (!fname) return;
|
||||||
if(*fname=='\0') return;//empty string=no languagefile
|
if(*fname=='\0') return;//empty string=no languagefile
|
||||||
|
|
||||||
|
LOG(LOG_MISC,LOG_DEBUG)("Loading message file %s",fname);
|
||||||
|
|
||||||
FILE * mfile=fopen(fname,"rt");
|
FILE * mfile=fopen(fname,"rt");
|
||||||
/* This should never happen and since other modules depend on this use a normal printf */
|
/* This should never happen and since other modules depend on this use a normal printf */
|
||||||
if (!mfile) {
|
if (!mfile) {
|
||||||
|
Reference in New Issue
Block a user