File tree Expand file tree Collapse file tree 3 files changed +22
-16
lines changed Expand file tree Collapse file tree 3 files changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ function build_stats() {
33
33
local dest=" $__tmpdir /stats"
34
34
mkUserDir " $dest "
35
35
36
+ # ignore platform flags to get info for all packages
37
+ __ignore_flags=1
38
+ rp_registerAllModules
39
+
36
40
echo " $( _get_package_data_stats) " > " $dest /packages.csv"
37
41
echo " $( _get_commit_data_stats) " > " $dest /commit.csv"
38
42
Original file line number Diff line number Diff line change 10
10
#
11
11
12
12
declare -A __mod_id_to_idx
13
- __mod_idx=()
14
- __mod_id=()
15
- __mod_type=()
16
- __mod_desc=()
17
- __mod_help=()
18
- __mod_licence=()
19
- __mod_section=()
20
- __mod_flags=()
21
-
22
13
declare -A __sections
23
14
__sections[core]=" core"
24
15
__sections[main]=" main"
@@ -393,12 +384,14 @@ function rp_registerModule() {
393
384
local flag
394
385
local valid=1
395
386
396
- for flag in " ${flags[@]} " ; do
397
- if [[ " $flag " =~ ^\! (.+) ]] && isPlatform " ${BASH_REMATCH[1]} " ; then
398
- valid=0
399
- break
400
- fi
401
- done
387
+ if [[ " $__ignore_flags " -ne 1 ]]; then
388
+ for flag in " ${flags[@]} " ; do
389
+ if [[ " $flag " =~ ^\! (.+) ]] && isPlatform " ${BASH_REMATCH[1]} " ; then
390
+ valid=0
391
+ break
392
+ fi
393
+ done
394
+ fi
402
395
403
396
if [[ " $valid " -eq 1 ]]; then
404
397
__mod_idx+=(" $module_idx " )
@@ -425,6 +418,15 @@ function rp_registerModuleDir() {
425
418
}
426
419
427
420
function rp_registerAllModules() {
421
+ __mod_idx=()
422
+ __mod_id=()
423
+ __mod_type=()
424
+ __mod_desc=()
425
+ __mod_help=()
426
+ __mod_licence=()
427
+ __mod_section=()
428
+ __mod_flags=()
429
+
428
430
rp_registerModuleDir 100 " emulators"
429
431
rp_registerModuleDir 200 " libretrocores"
430
432
rp_registerModuleDir 300 " ports"
Original file line number Diff line number Diff line change 10
10
#
11
11
12
12
rp_module_id=" resetromdirs"
13
- rp_module_desc=" Reset ownership/permissions of $romdir "
13
+ rp_module_desc=" Reset ownership/permissions of RetroPie/roms directory "
14
14
rp_module_section=" config"
15
15
16
16
function gui_resetromdirs() {
You can’t perform that action at this time.
0 commit comments