Skip to content

Commit

Permalink
(Flatpak) Added necessary files.
Browse files Browse the repository at this point in the history
  • Loading branch information
innerviewer committed Aug 13, 2024
1 parent 72a4f07 commit 370fcb6
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Engine/Core/libs/Graphics
5 changes: 3 additions & 2 deletions Engine/Core/src/Core/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,16 @@ namespace SR_CORE_NS {
};

for (auto&& relativePath : potentialPaths) {
auto fullPath = m_applicationPath.Concat(relativePath);
auto&& fullPath = m_applicationPath.Concat(relativePath);

#ifdef SR_LINUX
if (fullPath.View().size() == 1) {
return false;
}
#endif

if (fullPath.Concat("Resources").Exists(SR_UTILS_NS::Path::Type::Folder)) {
fullPath = fullPath.Concat("Resources");
if (fullPath.Exists(SR_UTILS_NS::Path::Type::Folder)) {
m_resourcesPath = fullPath;
return true;
}
Expand Down
Binary file added Resources/Engine/Textures/dev.sparcles.SREngine
Binary file not shown.
9 changes: 9 additions & 0 deletions dev.sparcles.SREngine.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application

Name=SpaRcle Engine
Comment=Cross-platform 2D/3D game engine in C++.
Categories=Developer Tools;

Icon=dev.sparcles.SREngine
Exec=srengine-run.sh
41 changes: 41 additions & 0 deletions dev.sparcles.SREngine.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>dev.sparcles.SREngine</id>

<name>SpaRcle Engine</name>
<summary>Cross-platform 2D/3D game engine in C++</summary>

<project_license>MIT</project_license>
<metadata_license>MIT</metadata_license>

<description>
<p>
SpaRcle Engine is a game engine developed in C++.
It aims to establish a strong base for game creation and is currently in the early stages of development,
emphasizing the creation of a versatile and efficient architecture.
</p>
</description>

<launchable type="desktop-id">dev.sparcles.SREngine.desktop</launchable>

<developer id="dev.sparcles">
<name>SpaRcle Studio</name>
</developer>

<icon type="stock">dev.sparcles.SREngine</icon>

<url type="homepage">https://sparcles.dev</url>

<screenshots>
<screenshot type="default"><image>https://sparcles.dev/engine-editor-raptoid.png</image></screenshot>
<screenshot><image>https://sparcles.dev/engine-demo-scene.png</image></screenshot>
</screenshots>

<content_rating type="oars-1.1"></content_rating>

<update_contact>[email protected]</update_contact>

<releases>
<release version="0.0.7" date="2024-04-23"/>
</releases>
</component>

0 comments on commit 370fcb6

Please sign in to comment.