Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hedger committed Oct 25, 2023
1 parent 3079eeb commit 54e8711
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions applications/services/loader/loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ typedef struct {
/**
* @brief Start application
* @param[in] instance loader instance
* @param[in] name application name
* @param[in] name application name or id
* @param[in] args application arguments
* @param[out] error_message detailed error message, can be NULL
* @return LoaderStatus
Expand All @@ -40,7 +40,7 @@ LoaderStatus
/**
* @brief Start application with GUI error message
* @param[in] instance loader instance
* @param[in] name application name
* @param[in] name application name or id
* @param[in] args application arguments
* @return LoaderStatus
*/
Expand Down
1 change: 1 addition & 0 deletions scripts/fbt_tools/fbt_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def dolphin_emitter(target, source, env):
if env["DOLPHIN_RES_TYPE"] == "external":
target = [target_base_dir.File("manifest.txt")]
## A detailed list of files to be generated
# Preserve original paths, do .png -> .bm conversion
target.extend(
map(
lambda node: target_base_dir.File(
Expand Down
2 changes: 0 additions & 2 deletions scripts/fbt_tools/fbt_extapps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import itertools
import os
import pathlib
import shutil
from dataclasses import dataclass, field
from typing import Dict, List, Optional

Expand Down
11 changes: 4 additions & 7 deletions scripts/fbt_tools/fbt_resources.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# import os
# import subprocess

import os
import shutil

Expand All @@ -11,7 +8,7 @@
from SCons.Node.FS import Dir, File


def resources_dist_emitter(target, source, env):
def _resources_dist_emitter(target, source, env):
resources_root = env.Dir(env["RESOURCES_ROOT"])

target = []
Expand Down Expand Up @@ -53,7 +50,7 @@ def resources_dist_emitter(target, source, env):
return (target, source)


def resources_dist_action(target, source, env):
def _resources_dist_action(target, source, env):
shutil.rmtree(env.Dir(env["RESOURCES_ROOT"]).abspath, ignore_errors=True)
for src, target in zip(source, target):
os.makedirs(os.path.dirname(target.path), exist_ok=True)
Expand All @@ -75,10 +72,10 @@ def generate(env, **kw):
BUILDERS={
"ResourcesDist": Builder(
action=Action(
resources_dist_action,
_resources_dist_action,
"${RESOURCEDISTCOMSTR}",
),
emitter=resources_dist_emitter,
emitter=_resources_dist_emitter,
),
"ManifestBuilder": Builder(
action=Action(
Expand Down
1 change: 0 additions & 1 deletion site_scons/extapps.scons
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ appenv.AppendUnique(
@dataclass
class FlipperExtAppBuildArtifacts:
application_map: dict = field(default_factory=dict)
# resources_dist: NodeList = field(default_factory=NodeList)
sdk_tree: NodeList = field(default_factory=NodeList)


Expand Down

0 comments on commit 54e8711

Please sign in to comment.