Relative paths and game speed

Issue #63 new
Former user created an issue

When I use a relative path for the executable's path (either in the games.js, or directly in the command line), it seems the game runs as fast as I can (between 400 and 1900 fps, depending of my computer's settings and whether I run it in fullscreen mode or not).

I tried with perfect cherry blossom, using the following command : thcrap_loader.exe en-fr.js ./Th07.exe (everything is in the current directory)

And the game runs correctly when I use the following command : thcrap_loader.exe en-fr.js "C:/Users/liron_b/Desktop/Touhou 07 - Perfect Cherry Blossom/Th07.exe"

The same bug happens on my other computer. I only tried with Windows 7.

Comments (1)

  1. nmlgc repo owner

    This is a "bug" in the command line parser of th07 itself, which seems to follow the DOS convention of using forward slashes to specify command line options. Simply use backslashes instead, and it should work.

    As a workaround, thcrap_loader converts all forward slashes in the executable path to backslashes. This is why your second command (with the full path) works as intended, not because you are using an absolute path there.

    I'd really like to fix this in the game itself, but that will require more research into how the command line parser actually works, and into all the options you can enable with it.

  2. Log in to comment