Bug Fix for Project settings
by Anthony Rosenbaum · in Torque Game Builder · 04/20/2009 (11:35 am) · 0 replies
In our project we use a verticle display 768 x 1024, odd right, well to get the preview in the TGB tool to play nice I had to track down a bug in t2dCoreDeploy.ed.cs spefically [b]T2DProject::updateGameConfig/b]
Change
to this
Boolean return is hooked to nothing but it is a way out of the function. Basically we are saying, do we have configuation from project? Yes? Good do not generate a new set of configuration and write over my commonConfig.xml
You Welcome!
Change
function T2DProject::updateGameConfig( %this )
{
%gameConfig = expandFilename("^project/common/commonConfig.xml");
if( !isfile( %gameConfig ) )
return false;to this
function T2DProject::updateGameConfig( %this )
{
%gameConfig = expandFilename("^project/common/commonConfig.xml");
// > pg fix
if( isfile( %gameConfig ) )
return true;
//< pg fixBoolean return is hooked to nothing but it is a way out of the function. Basically we are saying, do we have configuation from project? Yes? Good do not generate a new set of configuration and write over my commonConfig.xml
You Welcome!
About the author