Skip to content

Commit

Permalink
MainController: strip whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
staticssleever668 committed May 4, 2021
1 parent c93a098 commit ab529c8
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/bms/player/beatoraja/MainController.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ public MainController(Path f, Config config, PlayerConfig player, BMSPlayerMode
}
}
}

}
ir = irarray.toArray(IRStatus.class);

switch(config.getAudioConfig().getDriver()) {
case PortAudio:
try {
Expand Down Expand Up @@ -266,7 +266,7 @@ public void changeState(MainStateType state) {
}
newState.create();
if(newState.getSkin() != null) {
newState.getSkin().prepare(newState);
newState.getSkin().prepare(newState);
}
current = newState;
starttime = System.nanoTime();
Expand All @@ -279,7 +279,7 @@ public void changeState(MainStateType state) {
Gdx.input.setInputProcessor(input.getKeyBoardInputProcesseor());
}
}

public MainState getCurrentState() {
return current;
}
Expand All @@ -299,7 +299,7 @@ public void create() {
generator = new FreeTypeFontGenerator(Gdx.files.internal("skin/default/VL-Gothic-Regular.ttf"));
FreeTypeFontParameter parameter = new FreeTypeFontParameter();
parameter.size = 24;
systemfont = generator.generateFont(parameter);
systemfont = generator.generateFont(parameter);
} catch (GdxRuntimeException e) {
Logger.getGlobal().severe("System Font1読み込み失敗");
}
Expand Down Expand Up @@ -378,7 +378,7 @@ public void create() {
});
download.start(null);
}

if(ir.length > 0) {
messageRenderer.addMessage(ir.length + " IR Connection Succeed" ,5000, Color.GREEN, 1);
}
Expand Down Expand Up @@ -628,7 +628,7 @@ public SystemSoundManager getSoundManager() {
public MusicDownloadProcessor getMusicDownloadProcessor(){
return download;
}

public MessageRenderer getMessageRenderer() {
return messageRenderer;
}
Expand Down Expand Up @@ -742,7 +742,7 @@ public void downloadIpfsMessageRenderer(String message) {
downloadIpfs.start();
}
}

public static String getVersion() {
return VERSION;
}
Expand Down Expand Up @@ -823,7 +823,7 @@ public void run() {

/**
* BGM、効果音セット管理用クラス
*
*
* @author exch
*/
public static class SystemSoundManager {
Expand All @@ -846,10 +846,10 @@ public static class SystemSoundManager {

public SystemSoundManager(Config config) {
if(config.getBgmpath() != null && config.getBgmpath().length() > 0) {
scan(Paths.get(config.getBgmpath()).toAbsolutePath(), bgms, "select.wav");
scan(Paths.get(config.getBgmpath()).toAbsolutePath(), bgms, "select.wav");
}
if(config.getSoundpath() != null && config.getSoundpath().length() > 0) {
scan(Paths.get(config.getSoundpath()).toAbsolutePath(), sounds, "clear.wav");
scan(Paths.get(config.getSoundpath()).toAbsolutePath(), sounds, "clear.wav");
}
Logger.getGlobal().info("検出されたBGM Set : " + bgms.size + " Sound Set : " + sounds.size);
}
Expand Down Expand Up @@ -883,16 +883,16 @@ private void scan(Path p, Array<Path> paths, String name) {
}
} catch (IOException e) {
}
}
}
}
}

public static class IRStatus {

public final IRConfig config;
public final IRConnection connection;
public final IRPlayerData player;

public IRStatus(IRConfig config, IRConnection connection, IRPlayerData player) {
this.config = config;
this.connection = connection;
Expand Down

0 comments on commit ab529c8

Please sign in to comment.