debug.cfg 3.72 KB
Newer Older
longpanda's avatar
longpanda committed
1
2


longpanda's avatar
longpanda committed
3
submenu 'Check plugin json configuration (ventoy.json)' --class=debug_json {
longpanda's avatar
update  
longpanda committed
4
    menuentry 'Check global control plugin configuration' --class=debug_control {
longpanda's avatar
longpanda committed
5
        set pager=1
longpanda's avatar
longpanda committed
6
        vt_check_plugin_json $vt_plugin_path control $vtoy_iso_part
longpanda's avatar
longpanda committed
7
8
9
10
11
12
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
longpanda's avatar
longpanda committed
13
    menuentry 'Check theme plugin configuration' --class=debug_theme {
longpanda's avatar
longpanda committed
14
        set pager=1
longpanda's avatar
longpanda committed
15
        vt_check_plugin_json $vt_plugin_path theme $vtoy_iso_part
longpanda's avatar
longpanda committed
16
17
18
19
20
21
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
longpanda's avatar
longpanda committed
22
    menuentry 'Check auto install plugin configuration' --class=debug_autoinstall {
longpanda's avatar
longpanda committed
23
        set pager=1
longpanda's avatar
longpanda committed
24
        vt_check_plugin_json $vt_plugin_path auto_install $vtoy_iso_part
longpanda's avatar
longpanda committed
25
26
27
28
29
30
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
longpanda's avatar
longpanda committed
31
    menuentry 'Check persistence plugin configuration' --class=debug_persistence {
longpanda's avatar
longpanda committed
32
        set pager=1
longpanda's avatar
longpanda committed
33
        vt_check_plugin_json $vt_plugin_path persistence $vtoy_iso_part
longpanda's avatar
longpanda committed
34
35
36
37
38
39
40
41
42
        
        echo -e "\n############### dump persistence ###############"
        vt_dump_persistence
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
longpanda's avatar
longpanda committed
43
    menuentry 'Check menu alias plugin configuration' --class=debug_menualias {
longpanda's avatar
longpanda committed
44
        set pager=1
longpanda's avatar
longpanda committed
45
        vt_check_plugin_json $vt_plugin_path menu_alias $vtoy_iso_part
longpanda's avatar
longpanda committed
46
47
48
49
50
51
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }
    
longpanda's avatar
longpanda committed
52
53
    menuentry 'Check menu class plugin configuration' --class=debug_menuclass {
        set pager=1
longpanda's avatar
longpanda committed
54
        vt_check_plugin_json $vt_plugin_path menu_class $vtoy_iso_part
longpanda's avatar
longpanda committed
55
56
57
58
        
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
longpanda's avatar
longpanda committed
59
60
61
62
63
64
    }  

    menuentry 'Check injection plugin configuration' --class=debug_injection {
        set pager=1
        vt_check_plugin_json $vt_plugin_path injection $vtoy_iso_part
        
longpanda's avatar
longpanda committed
65
66
67
68
69
70
71
72
73
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    } 

    menuentry 'Check auto memdisk plugin configuration' --class=debug_automemdisk {
        set pager=1
        vt_check_plugin_json $vt_plugin_path auto_memdisk $vtoy_iso_part
        
longpanda's avatar
longpanda committed
74
75
76
77
        echo -e "\npress ENTER to exit ..."
        read vtInputKey
        unset pager
    }      
longpanda's avatar
longpanda committed
78
79
    
    menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
longpanda's avatar
longpanda committed
80
81
82
83
        echo 'Return ...'
    }
}

longpanda's avatar
update  
longpanda committed
84

longpanda's avatar
longpanda committed
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
submenu "Resolution Configuration" --class=debug_resolution {
    menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
        echo 'Return ...'
    }
    
    vt_update_cur_video_mode VT_CUR_MODE
    set vdid=0
    while [ $vdid -lt $VTOY_VIDEO_MODE_NUM ]; do
        vt_get_video_mode $vdid vtCurMode
        
        unset vtActive
        if [ "$vtCurMode" = "$VT_CUR_MODE" ]; then
            set vtActive="[*]"
        fi
        
        menuentry "$vtCurMode $vtActive" --class=debug_videomode VTOY_RUN_RET {
            terminal_output console
            set gfxmode=$1
            terminal_output gfxterm
        }

        vt_incr vdid 1
    done
}



longpanda's avatar
update  
longpanda committed
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
if [ "$grub_platform" != "pc" ]; then
    submenu 'Ventoy UEFI Utilities' --class=debug_util {
        menuentry 'Fixup Windows BlinitializeLibrary Failure' {
            chainloader ${vtoy_path}/vtoyutil_x64.efi env_param=${env_param} ${vtdebug_flag} feature=fix_windows_mmap
            boot
            echo -e "\npress ENTER to exit ..."
            read vtInputKey
        }

        menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
            echo 'Return ...'
        }
    }
fi

longpanda's avatar
longpanda committed
127
menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {
longpanda's avatar
longpanda committed
128
129
    echo 'Return ...'
}