Skip to content

Commit

Permalink
fixed loop for XGM2
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane-D committed May 15, 2024
1 parent 307d1c2 commit 8e96e4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified bin/xgm2tool.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions tools/xgm2tool/src/sgdk/xgm2tool/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public class Launcher extends JFrame
{
final static String VERSION = "1.02";
final static String VERSION = "1.03";

final static int SYSTEM_AUTO = -1;
final static int SYSTEM_NTSC = 0;
Expand Down Expand Up @@ -285,7 +285,7 @@ private static XGM loadXGM(String file) throws IOException

private static void showUsage()
{
System.out.println("XGM2Tool 1.0 - Stephane Dallongeville - copyright 2024");
System.out.println("XGM2Tool " + VERSION + " - Stephane Dallongeville - copyright 2024");
System.out.println("");
System.out.println("Usage: java -jar xgmtool.jar inputFile(s) outputFile <options>");
System.out.println("");
Expand Down
2 changes: 1 addition & 1 deletion tools/xgm2tool/src/sgdk/xgm2tool/format/VGM.java
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ private void parse()
while (off < offsetEnd)
{
// check for loop start
if ((loopTimeSt == -1) && (loopStart != 0) && (off >= loopStart) && (loopLenInSample != 0))
if ((loopTimeSt == -1) && (loopStart != 0) && (off >= loopStart))
{
commands.add(new VGMCommand.LoopStartCommand());
loopTimeSt = time;
Expand Down

0 comments on commit 8e96e4a

Please sign in to comment.