Author Topic: backgroundtexture = TextureLoader.FromFile(device, backgroundFilename);  (Read 4135 times)

Offline votemike

  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
I get an error at this line.
What could be wrong? Anyone know?
The next bit of line says this...

catch
            {
                // We must be running from within Visual Studio. Relocate the
                // current directory and try again.
                System.IO.Directory.SetCurrentDirectory(
                    System.Windows.Forms.Application.StartupPath + @"\..\..\");

                backgroundtexture = TextureLoader.FromFile(device, backgroundFilename);
            }

Do I need to move a file?


Thanks