Skip to content

Commit

Permalink
fixes to enable runing test pluing
Browse files Browse the repository at this point in the history
  • Loading branch information
crystaldev3d committed Jan 26, 2024
1 parent a287abe commit 1adef66
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
7 changes: 6 additions & 1 deletion Launcher/Launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ void Launcher::Start()
#endif

auto engine = GetSubsystem<Engine>();
const StringVector loadedPlugins = engine->GetParameter(EP_PLUGINS).GetString().split(';');

//const StringVector loadedPlugins = engine->GetParameter(EP_PLUGINS).GetString().split(';');

// this a workaround coz engine->GetParameter(EP_PLUGINS).GetString().split(';'); loads the wrong list of plugins from user/appdata/config...
StringVector loadedPlugins;
loadedPlugins.push_back("TestProject");

auto pluginManager = GetSubsystem<PluginManager>();
pluginManager->SetPluginsLoaded(loadedPlugins);
Expand Down
4 changes: 2 additions & 2 deletions Project/Project.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"LaunchManager": {
"Configurations": [
{
"MainPlugin": "SampleProject",
"MainPlugin": "TestProject",
"Name": "Play From Here"
}
]
},
"PluginManager": {
"LoadedPlugins": [
"SampleProject"
"TestProject"
]
}
}
3 changes: 2 additions & 1 deletion ResourceRoot.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# - Data: project-specific files that are created and updated by a person.
# - Cache: project-specific files that are generated by the editor.

CoreData=../rbfx/bin/CoreData
#CoreData=../rbfx/bin/CoreData
CoreData=Project/CoreData
Data=Project/Data
Cache=Project/Cache
Binary file added StoreArt/Windows/appicon.aps
Binary file not shown.
3 changes: 3 additions & 0 deletions run-windowed-opengl.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build\bin\Debug\TestProjectLauncher.exe --opengl --windowed -x 1920 -y 1080 --pp C:/Projects/RBFX/test-project/Project
pause

2 changes: 2 additions & 0 deletions run-windowed-vulkan.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build\bin\Debug\TestProjectLauncher.exe --vulkan --windowed -x 1920 -y 1080 --pp C:/Projects/RBFX/test-project/Project
pause

0 comments on commit 1adef66

Please sign in to comment.