Wiimote Project

Wiimote Projects => Wiimote Desktop VR/Head Tracking => Topic started by: votemike on June 13, 2008, 06:00:02 AM

Title: backgroundtexture = TextureLoader.FromFile(device, backgroundFilename);
Post by: votemike on June 13, 2008, 06:00:02 AM
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