diff --git a/attic/librewolf-portable/.gitignore b/attic/librewolf-portable/.gitignore deleted file mode 100644 index 6c1d6fd..0000000 --- a/attic/librewolf-portable/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -librewolf-portable.aps -.vs -x64 \ No newline at end of file diff --git a/attic/librewolf-portable/README.md b/attic/librewolf-portable/README.md deleted file mode 100644 index 74cfdfe..0000000 --- a/attic/librewolf-portable/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# librewolf-portable - -Execute librewolf.exe -profile Profiles\Default \ No newline at end of file diff --git a/attic/librewolf-portable/Resource.h b/attic/librewolf-portable/Resource.h deleted file mode 100644 index a50d042..0000000 --- a/attic/librewolf-portable/Resource.h +++ /dev/null @@ -1,30 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by librewolf-portable.rc - -#define IDS_APP_TITLE 103 - -#define IDR_MAINFRAME 128 -#define IDD_LIBREWOLFPORTABLE_DIALOG 102 -#define IDD_ABOUTBOX 103 -#define IDM_ABOUT 104 -#define IDM_EXIT 105 -#define IDI_LIBREWOLFPORTABLE 107 -#define IDI_SMALL 108 -#define IDC_LIBREWOLFPORTABLE 109 -#define IDC_MYICON 2 -#ifndef IDC_STATIC -#define IDC_STATIC -1 -#endif -// Next default values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS - -#define _APS_NO_MFC 130 -#define _APS_NEXT_RESOURCE_VALUE 129 -#define _APS_NEXT_COMMAND_VALUE 32771 -#define _APS_NEXT_CONTROL_VALUE 1000 -#define _APS_NEXT_SYMED_VALUE 110 -#endif -#endif diff --git a/attic/librewolf-portable/build.bat b/attic/librewolf-portable/build.bat deleted file mode 100644 index 30e00ab..0000000 --- a/attic/librewolf-portable/build.bat +++ /dev/null @@ -1 +0,0 @@ -msbuild /t:Clean,Build /p:Configuration=Release \ No newline at end of file diff --git a/attic/librewolf-portable/librewolf-portable.aps b/attic/librewolf-portable/librewolf-portable.aps deleted file mode 100644 index 8faf56c..0000000 Binary files a/attic/librewolf-portable/librewolf-portable.aps and /dev/null differ diff --git a/attic/librewolf-portable/librewolf-portable.cpp b/attic/librewolf-portable/librewolf-portable.cpp deleted file mode 100644 index d9fa233..0000000 --- a/attic/librewolf-portable/librewolf-portable.cpp +++ /dev/null @@ -1,64 +0,0 @@ -// librewolf-portable.cpp : Run librewolf.exe with -profile parameter. -// - -#include - -int -fileExists(TCHAR* file) -{ - WIN32_FIND_DATA FindFileData; - HANDLE handle = FindFirstFile(file, &FindFileData); - int found = (handle != INVALID_HANDLE_VALUE); - - if (found) - FindClose(handle); - - return found; -} - - -int APIENTRY -wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow) -{ - //https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd - constexpr DWORD max_path = 32767; - static TCHAR path[max_path], dir[max_path], exe[max_path], cmdline[max_path]; - - GetModuleFileName(NULL, path, max_path); - *wcsrchr(path,L'\\') = L'\0'; - - wcscpy_s(dir, path); - wcscat_s(dir, L"\\Profiles\\Default"); - - wcscpy_s(exe, path); - wcscat_s(exe, L"\\librewolf.exe"); - if (!fileExists(exe)) { - wcscpy_s(exe, path); - wcscat_s(exe, L"\\LibreWolf\\librewolf.exe"); - if (!fileExists(exe)) { - MessageBox(NULL, L"Can\'t find librewolf.exe in the current or LibreWolf folder.", path, MB_OK); - return 1; - } - } - - wsprintf(cmdline, L"\"%s\" -profile \"%s\" %s", exe, dir, lpCmdLine); - - STARTUPINFOW siStartupInfo; - PROCESS_INFORMATION piProcessInfo; - memset(&siStartupInfo, 0, sizeof(siStartupInfo)); - memset(&piProcessInfo, 0, sizeof(piProcessInfo)); - siStartupInfo.cb = sizeof(siStartupInfo); - - if (!CreateProcess(exe, cmdline, NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &siStartupInfo, &piProcessInfo)) - { - DWORD i = GetLastError(); - wsprintf(dir, L"CreateProcess() failed with error %i", i); - MessageBox(NULL, dir, L"librewolf-portable", MB_OK); - return 1; - } - - CloseHandle(piProcessInfo.hProcess); - CloseHandle(piProcessInfo.hThread); - - return 0; -} diff --git a/attic/librewolf-portable/librewolf-portable.ico b/attic/librewolf-portable/librewolf-portable.ico deleted file mode 100644 index 30a72f1..0000000 Binary files a/attic/librewolf-portable/librewolf-portable.ico and /dev/null differ diff --git a/attic/librewolf-portable/librewolf-portable.rc b/attic/librewolf-portable/librewolf-portable.rc deleted file mode 100644 index fac1fc7..0000000 Binary files a/attic/librewolf-portable/librewolf-portable.rc and /dev/null differ diff --git a/attic/librewolf-portable/librewolf-portable.sln b/attic/librewolf-portable/librewolf-portable.sln deleted file mode 100644 index f7a2ea8..0000000 --- a/attic/librewolf-portable/librewolf-portable.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31424.327 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "librewolf-portable", "librewolf-portable.vcxproj", "{363A5584-2FEA-46A3-A52B-7254D932AABA}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {363A5584-2FEA-46A3-A52B-7254D932AABA}.Debug|x64.ActiveCfg = Debug|x64 - {363A5584-2FEA-46A3-A52B-7254D932AABA}.Debug|x64.Build.0 = Debug|x64 - {363A5584-2FEA-46A3-A52B-7254D932AABA}.Debug|x86.ActiveCfg = Debug|Win32 - {363A5584-2FEA-46A3-A52B-7254D932AABA}.Debug|x86.Build.0 = Debug|Win32 - {363A5584-2FEA-46A3-A52B-7254D932AABA}.Release|x64.ActiveCfg = Release|x64 - {363A5584-2FEA-46A3-A52B-7254D932AABA}.Release|x64.Build.0 = Release|x64 - {363A5584-2FEA-46A3-A52B-7254D932AABA}.Release|x86.ActiveCfg = Release|Win32 - {363A5584-2FEA-46A3-A52B-7254D932AABA}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {968E3E1E-9A31-4937-A7E9-FF45C074E14E} - EndGlobalSection -EndGlobal diff --git a/attic/librewolf-portable/librewolf-portable.vcxproj b/attic/librewolf-portable/librewolf-portable.vcxproj deleted file mode 100644 index ff2b0d1..0000000 --- a/attic/librewolf-portable/librewolf-portable.vcxproj +++ /dev/null @@ -1,160 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 16.0 - Win32Proj - {363a5584-2fea-46a3-a52b-7254d932aaba} - librewolfportable - 10.0 - - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - Application - true - v143 - Unicode - - - Application - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - true - - - false - - - true - - - false - - - - Level3 - true - WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - - - Windows - true - - - - - Level3 - true - true - true - WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - - - Windows - true - true - true - - - - - Level3 - true - _DEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - - - Windows - true - - - - - Level3 - true - true - true - NDEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - - - Windows - true - true - true - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/attic/librewolf-portable/librewolf-portable.vcxproj.filters b/attic/librewolf-portable/librewolf-portable.vcxproj.filters deleted file mode 100644 index b13c66c..0000000 --- a/attic/librewolf-portable/librewolf-portable.vcxproj.filters +++ /dev/null @@ -1,49 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - - - Source Files - - - - - Resource Files - - - - - Resource Files - - - Resource Files - - - \ No newline at end of file diff --git a/attic/librewolf-portable/librewolf-portable.vcxproj.user b/attic/librewolf-portable/librewolf-portable.vcxproj.user deleted file mode 100644 index 88a5509..0000000 --- a/attic/librewolf-portable/librewolf-portable.vcxproj.user +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/attic/librewolf-portable/targetver.h b/attic/librewolf-portable/targetver.h deleted file mode 100644 index bf75e08..0000000 --- a/attic/librewolf-portable/targetver.h +++ /dev/null @@ -1,6 +0,0 @@ -#pragma once - -// // Including SDKDDKVer.h defines the highest available Windows platform. -// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and -// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. -#include