mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Branding inprogress
This commit is contained in:
parent
8b80d1e84e
commit
d745ac5721
120 changed files with 3184 additions and 261 deletions
|
|
@ -101,18 +101,18 @@ OpenKeyForReading(HKEY aKeyRoot, const nsAString& aKeyName, HKEY* aKey)
|
|||
// .htm .html .shtml .xht .xhtml
|
||||
// are mapped like so:
|
||||
//
|
||||
// HKCU\SOFTWARE\Classes\.<ext>\ (default) REG_SZ SerpentHTML
|
||||
// HKCU\SOFTWARE\Classes\.<ext>\ (default) REG_SZ HydraHTML
|
||||
//
|
||||
// as aliases to the class:
|
||||
//
|
||||
// HKCU\SOFTWARE\Classes\SerpentHTML\
|
||||
// HKCU\SOFTWARE\Classes\HydraHTML\
|
||||
// DefaultIcon (default) REG_SZ <apppath>,1
|
||||
// shell\open\command (default) REG_SZ <apppath> -osint -url "%1"
|
||||
// shell\open\ddeexec (default) REG_SZ <empty string>
|
||||
//
|
||||
// - Windows Vista and above Protocol Handler
|
||||
//
|
||||
// HKCU\SOFTWARE\Classes\SerpentURL\ (default) REG_SZ <appname> URL
|
||||
// HKCU\SOFTWARE\Classes\HydraURL\ (default) REG_SZ <appname> URL
|
||||
// EditFlags REG_DWORD 2
|
||||
// FriendlyTypeName REG_SZ <appname> URL
|
||||
// DefaultIcon (default) REG_SZ <apppath>,1
|
||||
|
|
@ -157,7 +157,7 @@ typedef struct {
|
|||
} SETTING;
|
||||
|
||||
// Find a way to unhardcode this
|
||||
#define APP_REG_NAME L"Serpent"
|
||||
#define APP_REG_NAME L"Hydra"
|
||||
#define VAL_FILE_ICON "%APPPATH%,1"
|
||||
#define VAL_OPEN "\"%APPPATH%\" -osint -url \"%1\""
|
||||
#define OLD_VAL_OPEN "\"%APPPATH%\" -requestPending -osint -url \"%1\""
|
||||
|
|
@ -183,10 +183,10 @@ static SETTING gSettings[] = {
|
|||
// File Handler Class
|
||||
// ***keep this as the first entry because when aForAllTypes is not set below
|
||||
// it will skip over this check.***
|
||||
{ MAKE_KEY_NAME1("SerpentHTML", SOC), VAL_OPEN, OLD_VAL_OPEN },
|
||||
{ MAKE_KEY_NAME1("HydraHTML", SOC), VAL_OPEN, OLD_VAL_OPEN },
|
||||
|
||||
// Protocol Handler Class - for Vista and above
|
||||
{ MAKE_KEY_NAME1("SerpentURL", SOC), VAL_OPEN, OLD_VAL_OPEN },
|
||||
{ MAKE_KEY_NAME1("HydraURL", SOC), VAL_OPEN, OLD_VAL_OPEN },
|
||||
|
||||
// Protocol Handlers
|
||||
{ MAKE_KEY_NAME1("HTTP", DI), VAL_FILE_ICON },
|
||||
|
|
@ -200,10 +200,10 @@ static SETTING gSettings[] = {
|
|||
// are incorrect they are fixed without notifying the user.
|
||||
static SETTING gDDESettings[] = {
|
||||
// File Handler Class
|
||||
{ MAKE_KEY_NAME1("Software\\Classes\\SerpentHTML", SOD) },
|
||||
{ MAKE_KEY_NAME1("Software\\Classes\\HydraHTML", SOD) },
|
||||
|
||||
// Protocol Handler Class - for Vista and above
|
||||
{ MAKE_KEY_NAME1("Software\\Classes\\SerpentURL", SOD) },
|
||||
{ MAKE_KEY_NAME1("Software\\Classes\\HydraURL", SOD) },
|
||||
|
||||
// Protocol Handlers
|
||||
{ MAKE_KEY_NAME1("Software\\Classes\\FTP", SOD) },
|
||||
|
|
@ -340,7 +340,7 @@ IsAARDefault(const RefPtr<IApplicationAssociationRegistration>& pAAR,
|
|||
return false;
|
||||
}
|
||||
|
||||
LPCWSTR progID = isProtocol ? L"SerpentURL" : L"SerpentHTML";
|
||||
LPCWSTR progID = isProtocol ? L"HydraURL" : L"HydraHTML";
|
||||
bool isDefault = !wcsicmp(registeredApp, progID);
|
||||
CoTaskMemFree(registeredApp);
|
||||
|
||||
|
|
@ -397,8 +397,8 @@ nsWindowsShellService::CancelPortableMode()
|
|||
|
||||
/*
|
||||
* Query's the AAR for the default status.
|
||||
* This only checks for SerpentURL and if aCheckAllTypes is set, then
|
||||
* it also checks for SerpentHTML. Note that those ProgIDs are shared
|
||||
* This only checks for HydraURL and if aCheckAllTypes is set, then
|
||||
* it also checks for HydraHTML. Note that those ProgIDs are shared
|
||||
* by all Basilisk browsers.
|
||||
*/
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue