In other hand this create difficulties similar to modular submenu (and futher modular language strings) - no common id exists. And so module-specific settings are unavailable from core and scripts. Possible real example: One of planed module is script-based configurable menu main purpose of which is quick modes switching (selected mode call script which tune config for scene. Similar to camera programs, but much more controlable). Now many config options become unreachable from scripts.
But I'm not sure I can see a reason why you would ever want to script any of the internal settings for any of the modules I've updated (sokoban level, zebra colors, etc).
In this makefile there is a commnet about order as follows:CFLAGS+=$(CTHUMB) -mlong-calls# warning: library order matters!LDLIBS= -lgccLDOPTS=-nostdlib -Wl,--allow-shlib-undefined -Wl,-T,$(topdir)tools/link-boot.ldLDOPTS+=-Wl,-N,-Ttext,0x0016ee30 -r -Wl,-dOBJS=../gui_calendar.o ../gui_bench.o ../gui_4wins.o ../gui_mastermind.o ../gui_reversi.o \ ../gui_sokoban.o ../gui_read.o ../gui_debug.o ../gui_tetris.o ../gui_snake.o ../gui_games.o ../dng.oMy question, does this refer to just the "OBJS=../" or to the elf's that follow further down the file and where do i get the order? Dave1116
I can understand wanting to save/restore shooting parameters and perhaps CHDK overrides.But I'm not sure I can see a reason why you would ever want to script any of the internal settings for any of the modules I've updated (sokoban level, zebra colors, etc).
1. What is purpose of addition to module_load.c below? 278 if ( callback ) 279 callback( (void**) modules[idx]->_module_exportlist ); This if case mean "module load request but module is already loaded". Only one additional things that we need is sanity unload request (module is unloaded ~40 msec after this is requested) so it is theoretically possible situation when module request for its unload, but something in other thread request its loading right after.But no re-binding required because module is already binded.
2. Most libraries could be safely unloaded automatically (they just will be loaded again when reqiured) but some of them can't.In which conditions could happens automatical unloading:a) When gui mode switched to GUI_MODE_NONE then core unload all modules without MODULE_FLAG_DISABLE_AUTOUNLOAD flagb) When user leave module submenu then module also is unloaded.What bad thing happens:a) DNG library. MODULE_FLAG_DISABLE_AUTOUNLOAD is cleaned so it will be unloaded after user go to menu or just alt mode. Bad things happened: - badpixel file is loaded only on CHDK start(config read) or dng bool menu item switched. So it will be lost and no badpixel removal will be applied to following raws.- perfomance impact (library will be loaded inside shooting process instead of loading on start+ possible loading badpixel in _module_loader to fix first problem also take time and use probably unsafe fopen)b) EDGEOVR. Shouldn't be unloaded ever. But it will be when enter and leave its submenuBad things happened:- Current edge picture will be lost (release_1_0 never lost this picture. even if turn off edgeovr temporary)- Memory leak because no free allocated resources in _module_unloaderSimple solution: Move edgebuf into core
I'm not sure why did you set flag MODULE_FLAG_DISABLE_AUTOUNLOAD for zebra, but would like to note just in case that this flag will not prevent unloading when leave its submenu.
Quote from: philmoz on 11 / January / 2012, 14:00:59I can understand wanting to save/restore shooting parameters and perhaps CHDK overrides.But I'm not sure I can see a reason why you would ever want to script any of the internal settings for any of the modules I've updated (sokoban level, zebra colors, etc). The split of configuration I see critical. Internal settings are not the problems. But we have extra developed commands to read and save of the configuration data. With get/set_config_value we have a easy way for setting different configurations - see this script. E.g. a special script configuration for a pano function with edgeoverlay is no longer possible.msl
Started by DataGhost
« 1 2 ... 14 15 »
Started by philmoz
« 1 2 3 »
General Discussion and Assistance
Started by koshy
General Discussion and Assistance
Started by kurtdc30
Started by TimPeTwo