File tree Expand file tree Collapse file tree 1 file changed +20
-9
lines changed
src/bms/player/beatoraja/play/bga Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -129,16 +129,27 @@ public synchronized void setModel(BMSModel model) {
129
129
if (index != -1 ) {
130
130
fex = name .substring (index + 1 ).toLowerCase ();
131
131
}
132
- if (fex != null && !(Arrays .asList (mov_extension ).contains (fex ))){
133
- f = dpath .resolve (name );
134
- }else if (fex != null ){
135
- name = name .substring (0 , index );
136
- for (String mov : mov_extension ) {
137
- final Path mpgfile = dpath .resolve (name + "." + mov );
138
- if (Files .exists (mpgfile )) {
139
- f = mpgfile ;
140
- break ;
132
+ if (fex != null ) {
133
+ if (Arrays .asList (mov_extension ).contains (fex )){
134
+ name = name .substring (0 , index );
135
+ for (String mov : mov_extension ) {
136
+ final Path mpgfile = dpath .resolve (name + "." + mov );
137
+ if (Files .exists (mpgfile )) {
138
+ f = mpgfile ;
139
+ break ;
140
+ }
141
+ }
142
+ }else if (Arrays .asList (BGImageProcessor .pic_extension ).contains (fex )){
143
+ name = name .substring (0 , index );
144
+ for (String pic : BGImageProcessor .pic_extension ) {
145
+ final Path picfile = dpath .resolve (name + "." + pic );
146
+ if (Files .exists (picfile )) {
147
+ f = picfile ;
148
+ break ;
149
+ }
141
150
}
151
+ }else {
152
+ f = dpath .resolve (name );
142
153
}
143
154
}
144
155
}
You can’t perform that action at this time.
0 commit comments