Skip to content

Commit

Permalink
Add warning about unsupported PC-98 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kichikuou committed Jan 16, 2025
1 parent 7a19520 commit 30b2c1e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 13 additions & 1 deletion shell/shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,26 @@ class System35Shell {
zoom.recalcAspectRatio();
}

setWindowTitle(title: string) {
setWindowTitle(title: string, gameId?: string) {
let colon = title.indexOf(':');
if (colon !== -1) {
title = title.slice(colon + 1).trim();
texthook.setTitle(title);
$('.navbar-brand').textContent = title;
gtag('event', 'GameStart', { GameTitle: title, event_category: 'Game', event_label: title });
}
switch (gameId) {
case 'dalk':
case 'gakuen_king':
case 'rance':
case 'rance2':
case 'rance3':
case 'rance4':
case 'toushin':
case 'toushin2':
addToast(message.pc98_images_cant_be_used, 'warning');
break;
}
}

showMouseMoveEffect(x: number, y: number) {
Expand Down
2 changes: 2 additions & 0 deletions shell/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const dictionary_en = {
no_ald_in_zip: 'No game files (*SA.ALD or *.DAT) in the zip file.',
no_gamedata_dir: 'No GAMEDATA folder in the image.',
floppy_images_cant_be_used: 'Floppy disk images cannot be loaded.',
pc98_images_cant_be_used: 'PC-98 version of this game is not supported. Please use the Windows version.',
restart_confirmation: 'Restart the game?',
restore_success: 'Save files has been restored successfully.',
restore_failure: 'Save files could not be restored.',
Expand All @@ -27,6 +28,7 @@ const dictionary_ja: Dictionary = {
no_ald_in_zip: 'ZIP内にゲームデータ (*SA.ALD または *.DATファイル) が見つかりません。',
no_gamedata_dir: 'イメージ内にGAMEDATAフォルダが見つかりません。',
floppy_images_cant_be_used: 'フロッピーディスクイメージは読み込めません。Windows版のデータを使用してください。',
pc98_images_cant_be_used: 'このゲームのPC-98版はサポート対象外です。Windows版のデータを使用してください。',
restart_confirmation: 'ゲームを再起動しますか?',
restore_success: 'セーブデータの復元に成功しました。',
restore_failure: 'セーブデータを復元できませんでした。',
Expand Down
2 changes: 1 addition & 1 deletion system3-sdl2

0 comments on commit 30b2c1e

Please sign in to comment.