|
1
|
function scr_ossafe_initscr_ossafe_init
function scr_ossafe_init()
{
}
function scr_get_supported_demo_titles()
{
var titles = [];
if (scr_is_switch_os())
titles = [new scr_switch_title("n/a", new scr_save_data_file("DELTARUNESaveData", "deltarune_ch1.sav")), new scr_switch_title("n/a", new scr_save_data_file("DELTARUNESaveData", "deltarune_ch1.sav"))];
else if (os_type == os_ps4 || os_type == os_ps5)
titles = [new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNESaveData", "deltarune_ch1.sav")), new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNE", "deltarune_ch1.sav")), new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNESaveData", "deltarune_ch1.sav")), new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNE", "deltarune_ch1.sav")), new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNESaveData", "deltarune_ch1.sav")), new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNE", "deltarune_ch1.sav"))];
return titles;
}
function scr_get_supported_full_titles()
{
var titles = [];
if (os_get_config() == "SWITCH_OZ")
titles = [new scr_switch_title("n/a", new scr_save_data_file("DELTARUNE", "deltarune.sav"))];
else if (os_get_config() == "PS5" || os_get_config() == "PS5_TEST")
titles = [new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNE", "deltarune.sav"))];
return titles;
}
function scr_switch_title(arg0, arg1) constructor
{
app_id = arg0;
save_data_file = arg1;
}
function scr_ps4_title(arg0, arg1, arg2) constructor
{
title_id = arg0;
fingerprint = arg1;
save_data_file = arg2;
}
function scr_save_data_file(arg0, arg1) constructor
{
slottitle = arg0;
filename = arg1;
}
function scr_pending_save_data(arg0, arg1) constructor
{
title = arg0;
save_data = arg1;
}
function scr_is_demo_title(arg0)
{
if (scr_is_switch_os())
return arg0.app_id == "n/a" || arg0.app_id == "n/a";
else
return arg0.title_id == "n/a" || arg0.title_id == "n/a" || arg0.title_id == "n/a";
}
function scr_is_full_title(arg0)
{
if (scr_is_switch_os())
return arg0.app_id == "n/a";
else
return arg0.title_id == "n/a";
}
function scr_get_app_title(arg0)
{
var product_title = "N/A";
if (scr_is_demo_title(arg0))
{
if (scr_is_switch_os())
{
if (arg0.app_id == "n/a")
{
product_title = "DELTARUNE Chapter 1&2\n";
if (global.lang == "ja")
product_title = "『DELTARUNE Chapter 1&2』の\n";
}
else if (arg0.app_id == "n/a")
{
product_title = "DELTARUNE Chapter 1&2 Demo\n";
if (global.lang == "ja")
product_title = "『DELTARUNE Chapter 1&2 体験版』の\n";
}
}
else
{
product_title = "DELTARUNE Chapter 1&2 [Demo]\n";
if (global.lang == "ja")
product_title = "体験版『DELTARUNE Chapter 1&2』の\n";
}
}
else if (scr_is_full_title(arg0))
{
if (scr_is_switch_os())
{
product_title = "DELTARUNE [Nintendo Switch]\n";
if (global.lang == "ja")
product_title = "Nintendo Switch版『DELTARUNE』の\n";
}
else
... ()
|
|
2
|
{
|
|
3
|
}
|
|
4
|
|
|
5
|
function scr_get_supported_demo_titles()
|
|
6
|
{
|
|
7
|
var titles = [];
|
|
8
|
if (scr_is_switch_os())
|
|
9
|
titles = [new scr_switch_title("n/a", new scr_save_data_file("DELTARUNESaveData", "deltarune_ch1.sav")), new scr_switch_title("n/a", new scr_save_data_file("DELTARUNESaveData", "deltarune_ch1.sav"))];
|
|
10
|
else if (os_type == os_ps4 || os_type == os_ps5)
|
|
11
|
titles = [new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNESaveData", "deltarune_ch1.sav")), new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNE", "deltarune_ch1.sav")), new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNESaveData", "deltarune_ch1.sav")), new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNE", "deltarune_ch1.sav")), new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNESaveData", "deltarune_ch1.sav")), new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNE", "deltarune_ch1.sav"))];
|
|
12
|
return titles;
|
|
13
|
}
|
|
14
|
|
|
15
|
function scr_get_supported_full_titles()
|
|
16
|
{
|
|
17
|
var titles = [];
|
|
18
|
if (os_get_config() == "SWITCH_OZ")
|
|
19
|
titles = [new scr_switch_title("n/a", new scr_save_data_file("DELTARUNE", "deltarune.sav"))];
|
|
20
|
else if (os_get_config() == "PS5" || os_get_config() == "PS5_TEST")
|
|
21
|
titles = [new scr_ps4_title("n/a", "n/a", new scr_save_data_file("DELTARUNE", "deltarune.sav"))];
|
|
22
|
return titles;
|
|
23
|
}
|
|
24
|
|
|
25
|
function scr_switch_title(arg0, arg1) constructor
|
|
26
|
{
|
|
27
|
app_id = arg0;
|
|
28
|
save_data_file = arg1;
|
|
29
|
}
|
|
30
|
|
|
31
|
function scr_ps4_title(arg0, arg1, arg2) constructor
|
|
32
|
{
|
|
33
|
title_id = arg0;
|
|
34
|
fingerprint = arg1;
|
|
35
|
save_data_file = arg2;
|
|
36
|
}
|
|
37
|
|
|
38
|
function scr_save_data_file(arg0, arg1) constructor
|
|
39
|
{
|
|
40
|
slottitle = arg0;
|
|
41
|
filename = arg1;
|
|
42
|
}
|
|
43
|
|
|
44
|
function scr_pending_save_data(arg0, arg1) constructor
|
|
45
|
{
|
|
46
|
title = arg0;
|
|
47
|
save_data = arg1;
|
|
48
|
}
|
|
49
|
|
|
50
|
function scr_is_demo_title(arg0)
|
|
51
|
{
|
|
52
|
if (scr_is_switch_os())
|
|
53
|
return arg0.app_id == "n/a" || arg0.app_id == "n/a";
|
|
54
|
else
|
|
55
|
return arg0.title_id == "n/a" || arg0.title_id == "n/a" || arg0.title_id == "n/a";
|
|
56
|
}
|
|
57
|
|
|
58
|
function scr_is_full_title(arg0)
|
|
59
|
{
|
|
60
|
if (scr_is_switch_os())
|
|
61
|
return arg0.app_id == "n/a";
|
|
62
|
else
|
|
63
|
return arg0.title_id == "n/a";
|
|
64
|
}
|
|
65
|
|
|
66
|
function scr_get_app_title(arg0)
|
|
67
|
{
|
|
68
|
var product_title = "N/A";
|
|
69
|
if (scr_is_demo_title(arg0))
|
|
70
|
{
|
|
71
|
if (scr_is_switch_os())
|
|
72
|
{
|
|
73
|
if (arg0.app_id == "n/a")
|
|
74
|
{
|
|
75
|
product_title = "DELTARUNE Chapter 1&2\n";
|
|
76
|
if (global.lang == "ja")
|
|
77
|
product_title = "『DELTARUNE Chapter 1&2』の\n";
|
|
78
|
}
|
|
79
|
else if (arg0.app_id == "n/a")
|
|
80
|
{
|
|
81
|
product_title = "DELTARUNE Chapter 1&2 Demo\n";
|
|
82
|
if (global.lang == "ja")
|
|
83
|
product_title = "『DELTARUNE Chapter 1&2 体験版』の\n";
|
|
84
|
}
|
|
85
|
}
|
|
86
|
else
|
|
87
|
{
|
|
88
|
product_title = "DELTARUNE Chapter 1&2 [Demo]\n";
|
|
89
|
if (global.lang == "ja")
|
|
90
|
product_title = "体験版『DELTARUNE Chapter 1&2』の\n";
|
|
91
|
}
|
|
92
|
}
|
|
93
|
else if (scr_is_full_title(arg0))
|
|
94
|
{
|
|
95
|
if (scr_is_switch_os())
|
|
96
|
{
|
|
97
|
product_title = "DELTARUNE [Nintendo Switch]\n";
|
|
98
|
if (global.lang == "ja")
|
|
99
|
product_title = "Nintendo Switch版『DELTARUNE』の\n";
|
|
100
|
}
|
|
101
|
else
|
|
102
|
{
|
|
103
|
product_title = "DELTARUNE [PlayStation~4]#";
|
|
104
|
if (global.lang == "ja")
|
|
105
|
product_title = "PlayStation~4版『DELTARUNE』の#";
|
|
106
|
}
|
|
107
|
}
|
|
108
|
return product_title;
|
|
109
|
}
|
|
110
|
|
|
111
|
function scr_get_app_title_choice_text(arg0)
|
|
112
|
{
|
|
113
|
var product_title = "N/A";
|
|
114
|
if (scr_is_demo_title(arg0))
|
|
115
|
{
|
|
116
|
if (scr_is_switch_os())
|
|
117
|
{
|
|
118
|
if (arg0.app_id == "n/a")
|
|
119
|
{
|
|
120
|
product_title = "DELTARUNE Chapter 1&2 [2021 demo]";
|
|
121
|
if (global.lang == "ja")
|
|
122
|
product_title = "『DELTARUNE Chapter 1&2』(2021年)";
|
|
123
|
}
|
|
124
|
else if (arg0.app_id == "n/a")
|
|
125
|
{
|
|
126
|
product_title = "DELTARUNE Chapter 1&2 Demo [2025 demo]";
|
|
127
|
if (global.lang == "ja")
|
|
128
|
product_title = "『DELTARUNE Chapter 1&2 体験版』(2025年)";
|
|
129
|
}
|
|
130
|
}
|
|
131
|
else
|
|
132
|
{
|
|
133
|
product_title = "DELTARUNE Chapter 1&2 [Demo]";
|
|
134
|
if (global.lang == "ja")
|
|
135
|
product_title = "体験版『DELTARUNE Chapter 1&2』";
|
|
136
|
}
|
|
137
|
}
|
|
138
|
else if (scr_is_full_title(arg0))
|
|
139
|
{
|
|
140
|
if (scr_is_switch_os())
|
|
141
|
{
|
|
142
|
product_title = "DELTARUNE [Nintendo Switch]";
|
|
143
|
if (global.lang == "ja")
|
|
144
|
product_title = "『DELTARUNE』(Nintendo Switch版)";
|
|
145
|
}
|
|
146
|
else
|
|
147
|
{
|
|
148
|
product_title = "DELTARUNE [PlayStation~4]";
|
|
149
|
if (global.lang == "ja")
|
|
150
|
product_title = "PlayStation~4版『DELTARUNE』";
|
|
151
|
}
|
|
152
|
}
|
|
153
|
return product_title;
|
|
154
|
}
|