diff --git a/src/86box.c b/src/86box.c index 3264a2959..4ad02ff1a 100644 --- a/src/86box.c +++ b/src/86box.c @@ -109,6 +109,7 @@ int confirm_exit_cmdl = 1; /* (O) do not ask for confirmation on quit if set t uint64_t unique_id = 0; uint64_t source_hwnd = 0; #endif +char rom_path[1024] = { '\0'}; /* (O) full path to ROMs */ char log_path[1024] = { '\0'}; /* (O) full path of logfile */ char vm_name[1024] = { '\0'}; /* (O) display name of the VM */ @@ -379,12 +380,13 @@ pc_log(const char *fmt, ...) int pc_init(int argc, char *argv[]) { - char path[2048]; + char path[2048], path2[2048]; char *cfg = NULL, *p; char temp[128]; struct tm *info; time_t now; - int c; + int c, ng; + int lvmp; uint32_t *uid, *shwnd; /* Grab the executable's full path. */ @@ -401,7 +403,10 @@ pc_init(int argc, char *argv[]) * could have been set to something else. */ plat_getcwd(usr_path, sizeof(usr_path) - 1); + plat_getcwd(rom_path, sizeof(rom_path) - 1); + memset(path, 0x00, sizeof(path)); + memset(path2, 0x00, sizeof(path)); for (c=1; ctex_mem[0], voodoo->texture_size*1024*1024, 1, f); - fclose(f); - if (voodoo->dual_tmus) - { - f = rom_fopen("texram2.dmp", "wb"); - fwrite(voodoo->tex_mem[1], voodoo->texture_size*1024*1024, 1, f); - fclose(f); - } -#endif */ - voodoo->fifo_thread_run = 0; thread_set_event(voodoo->wake_fifo_thread); diff --git a/src/win/Makefile.mingw b/src/win/Makefile.mingw index 5fe5790b0..56c7c26ba 100644 --- a/src/win/Makefile.mingw +++ b/src/win/Makefile.mingw @@ -838,7 +838,7 @@ LIBS += -static ifeq ($(AUTODEP), y) %.o: %.c @echo $< - $(CC) $(CFLAGS) $(DEPS) -c $< + @$(CC) $(CFLAGS) $(DEPS) -c $< %.o: %.cc @echo $<