Skip to content

Commit

Permalink
Debug from VisualStudio Fix
Browse files Browse the repository at this point in the history
This creates some extra main.cs files into the project folder for VS
2013 and VS2015.  This allow the debug mode of VS to be used without
having to modify the default user settings created by VS.
  • Loading branch information
greenfire27 committed Dec 23, 2015
1 parent 5dc2b42 commit 19f0ffa
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.LSOverride
/tmp/*
/preferences.cs
/engine/**/preferences.cs
*.dso
*.edso
*.user
Expand Down
25 changes: 25 additions & 0 deletions engine/compilers/VisualStudio 2013/main.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------

// This file simply points to the real main.cs file in the root of the working directory.
// This is needed if the project is run in debug mode from within VisualStudio.
exec("../../../main.cs");
25 changes: 25 additions & 0 deletions engine/compilers/VisualStudio 2015/main.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------

// This file simply points to the real main.cs file in the root of the working directory.
// This is needed if the project is run in debug mode from within VisualStudio.
exec("../../../main.cs");
4 changes: 2 additions & 2 deletions main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
AssetDatabase.IgnoreAutoUnload = true;

// Scan modules.
ModuleDatabase.scanModules( "modules" );
ModuleDatabase.scanModules( "./modules" );

// Load AppCore module.
ModuleDatabase.LoadExplicit( "AppCore" );
Expand All @@ -75,4 +75,4 @@ function androidBackButton(%val)
quit();
}

}
}

0 comments on commit 19f0ffa

Please sign in to comment.