Added VM name display.

This commit is contained in:
OBattler
2021-09-02 23:34:15 +02:00
parent 3644329bb6
commit d17e53fc4b

View File

@@ -638,14 +638,13 @@ usage:
plat_append_filename(cfg_path, usr_path, p); plat_append_filename(cfg_path, usr_path, p);
/* /*
* Get the current directory's name * Get the current directory's name
* *
* At this point usr_path is perfectly initialized. * At this point usr_path is perfectly initialized.
* If no --vmname parameter specified we'll use the * If no --vmname parameter specified we'll use the
* working directory name as the VM's name. * working directory name as the VM's name.
*/ */
if (strlen(vm_name) == 0) if (strlen(vm_name) == 0) {
{
char ltemp[1024] = { '\0'}; char ltemp[1024] = { '\0'};
plat_get_dirname(ltemp, usr_path); plat_get_dirname(ltemp, usr_path);
strcpy(vm_name, plat_get_filename(ltemp)); strcpy(vm_name, plat_get_filename(ltemp));
@@ -660,6 +659,7 @@ usage:
strftime(temp, sizeof(temp), "%Y/%m/%d %H:%M:%S", info); strftime(temp, sizeof(temp), "%Y/%m/%d %H:%M:%S", info);
pclog("#\n# %ls v%ls logfile, created %s\n#\n", pclog("#\n# %ls v%ls logfile, created %s\n#\n",
EMU_NAME_W, EMU_VERSION_W, temp); EMU_NAME_W, EMU_VERSION_W, temp);
pclog("# VM: %s\n#\n", vm_name);
pclog("# Emulator path: %s\n", exe_path); pclog("# Emulator path: %s\n", exe_path);
pclog("# Userfiles path: %s\n", usr_path); pclog("# Userfiles path: %s\n", usr_path);
if (rom_path[0] != '\0') if (rom_path[0] != '\0')