--- nono/lib/monitor_id.pl 2026/04/29 17:05:26 1.1.1.5 +++ nono/lib/monitor_id.pl 2026/04/29 17:05:48 1.1.1.6 @@ -27,6 +27,12 @@ $hdrfile =~ s/txt$/h/; $srcfile =~ s/txt$/cpp/; + # 先頭に一つダミーエントリを入れる。 + # (あまりサポートしてないけど) wxMac ではメニュー ID が 0 だと死ぬので。 + $id = "ID_MONITOR_zeroth_dummy_for_wxmac"; + $mon_defs .= "\t$id = 0,\n"; + $mon_body .= "\t{ $id, },\n"; + open(IN, $infile) || die "Cannot open infile: ${infile}\n"; while () { # Remove comments.