more debug

This commit is contained in:
Jonathan Campbell
2015-10-14 06:50:10 +00:00
parent 0db9599548
commit a3ef9ba5dd
5 changed files with 18 additions and 0 deletions

View File

@@ -608,6 +608,8 @@ bool dpi_aware_enable = true;
std::string dosbox_title;
void DOSBOX_InitTickLoop() {
LOG(LOG_MISC,LOG_DEBUG)("Initializing tick loop management");
ticksRemain = 0;
ticksLocked = false;
ticksLast = GetTicks();
@@ -668,6 +670,8 @@ void Init_VGABIOS() {
}
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_UnlockSpeed2, MK_f11, MMOD2,"speedlock2","Speedlock2");

View File

@@ -786,6 +786,8 @@ void CAPTURE_Destroy(Section *sec) {
}
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"));
assert(section != NULL);
@@ -811,6 +813,8 @@ void HARDWARE_Destroy(Section * sec) {
}
void HARDWARE_Init() {
LOG(LOG_MISC,LOG_DEBUG)("HARDWARE_Init: initializing");
/* TODO: Hardware init. We moved capture init to it's own function. */
AddExitFunction(&HARDWARE_Destroy,true);
}

View File

@@ -497,6 +497,8 @@ void IO_Reset(Section * /*sec*/) { // Reset or power on
}
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 */
iof_queue.used=0;
IO_FreeReadHandler(0,IO_MA,IO_MAX);

View File

@@ -993,6 +993,8 @@ void A20GATE_ProgramStart(Program * * make) {
void Init_AddressLimitAndGateMask() {
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
// 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 */
if (a20_fake_changeable && a20_full_masking && !memory.a20.enabled)
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) {

View File

@@ -70,6 +70,9 @@ void MSG_Replace(const char * _name, const char* _val) {
void LoadMessageFile(const char * fname) {
if (!fname) return;
if(*fname=='\0') return;//empty string=no languagefile
LOG(LOG_MISC,LOG_DEBUG)("Loading message file %s",fname);
FILE * mfile=fopen(fname,"rt");
/* This should never happen and since other modules depend on this use a normal printf */
if (!mfile) {