├── .gitattributes ├── .github └── workflows │ └── main.yml ├── .gitignore ├── FlashLauncher ├── App.config ├── FodyWeavers.xml ├── FrmOptions.Designer.cs ├── FrmOptions.cs ├── FrmOptions.resx ├── HabboLauncher.csproj ├── Images │ ├── FlashLauncher.ico │ ├── air.png │ ├── brazil.png │ ├── habbox.png │ ├── origins.png │ ├── spain.png │ ├── unity.png │ └── us_flag.png ├── Json │ ├── ClientUrls.cs │ └── Versions.cs ├── MainFrm.Designer.cs ├── MainFrm.cs ├── MainFrm.resx ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── Resources │ ├── IntegerScaler_x64.exe │ └── IntegerScaler_x86.exe ├── Utilities │ ├── IntegerScalerManager.cs │ ├── Launcher.cs │ ├── RegUtil.cs │ ├── SelfUpdater.cs │ ├── Settings.cs │ ├── UpdateResult.cs │ └── Updater.cs └── packages.config ├── HabboLauncher.sln ├── LICENSE.txt └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Publish 2 | on: 3 | release: 4 | types: [published] 5 | 6 | workflow_dispatch: 7 | 8 | jobs: 9 | release: 10 | name: Release 11 | runs-on: windows-latest 12 | 13 | steps: 14 | - name: Checkout Code 15 | uses: actions/checkout@v2 16 | 17 | - name: Setup NuGet 18 | uses: NuGet/setup-nuget@v1.0.5 19 | 20 | - name: Restore NuGet Packages 21 | run: nuget restore HabboLauncher.sln 22 | 23 | - name: Add msbuild to PATH 24 | uses: microsoft/setup-msbuild@v1.0.2 25 | 26 | - name: Build Desktop App 27 | run: msbuild HabboLauncher.sln /p:Configuration=Release 28 | 29 | - name: Release 30 | uses: softprops/action-gh-release@v1 31 | with: 32 | files: FlashLauncher\bin\Release\HabboLauncher.exe 33 | env: 34 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 35 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Oo]ut/ 33 | [Ll]og/ 34 | [Ll]ogs/ 35 | 36 | # Visual Studio 2015/2017 cache/options directory 37 | .vs/ 38 | # Uncomment if you have tasks that create the project's static files in wwwroot 39 | #wwwroot/ 40 | 41 | # Visual Studio 2017 auto generated files 42 | Generated\ Files/ 43 | 44 | # MSTest test Results 45 | [Tt]est[Rr]esult*/ 46 | [Bb]uild[Ll]og.* 47 | 48 | # NUnit 49 | *.VisualState.xml 50 | TestResult.xml 51 | nunit-*.xml 52 | 53 | # Build Results of an ATL Project 54 | [Dd]ebugPS/ 55 | [Rr]eleasePS/ 56 | dlldata.c 57 | 58 | # Benchmark Results 59 | BenchmarkDotNet.Artifacts/ 60 | 61 | # .NET Core 62 | project.lock.json 63 | project.fragment.lock.json 64 | artifacts/ 65 | 66 | # ASP.NET Scaffolding 67 | ScaffoldingReadMe.txt 68 | 69 | # StyleCop 70 | StyleCopReport.xml 71 | 72 | # Files built by Visual Studio 73 | *_i.c 74 | *_p.c 75 | *_h.h 76 | *.ilk 77 | *.meta 78 | *.obj 79 | *.iobj 80 | *.pch 81 | *.pdb 82 | *.ipdb 83 | *.pgc 84 | *.pgd 85 | *.rsp 86 | *.sbr 87 | *.tlb 88 | *.tli 89 | *.tlh 90 | *.tmp 91 | *.tmp_proj 92 | *_wpftmp.csproj 93 | *.log 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio LightSwitch build output 298 | **/*.HTMLClient/GeneratedArtifacts 299 | **/*.DesktopClient/GeneratedArtifacts 300 | **/*.DesktopClient/ModelManifest.xml 301 | **/*.Server/GeneratedArtifacts 302 | **/*.Server/ModelManifest.xml 303 | _Pvt_Extensions 304 | 305 | # Paket dependency manager 306 | .paket/paket.exe 307 | paket-files/ 308 | 309 | # FAKE - F# Make 310 | .fake/ 311 | 312 | # CodeRush personal settings 313 | .cr/personal 314 | 315 | # Python Tools for Visual Studio (PTVS) 316 | __pycache__/ 317 | *.pyc 318 | 319 | # Cake - Uncomment if you are using it 320 | # tools/** 321 | # !tools/packages.config 322 | 323 | # Tabs Studio 324 | *.tss 325 | 326 | # Telerik's JustMock configuration file 327 | *.jmconfig 328 | 329 | # BizTalk build output 330 | *.btp.cs 331 | *.btm.cs 332 | *.odx.cs 333 | *.xsd.cs 334 | 335 | # OpenCover UI analysis results 336 | OpenCover/ 337 | 338 | # Azure Stream Analytics local run output 339 | ASALocalRun/ 340 | 341 | # MSBuild Binary and Structured Log 342 | *.binlog 343 | 344 | # NVidia Nsight GPU debugger configuration file 345 | *.nvuser 346 | 347 | # MFractors (Xamarin productivity tool) working folder 348 | .mfractor/ 349 | 350 | # Local History for Visual Studio 351 | .localhistory/ 352 | 353 | # BeatPulse healthcheck temp database 354 | healthchecksdb 355 | 356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 357 | MigrationBackup/ 358 | 359 | # Ionide (cross platform F# VS Code tools) working folder 360 | .ionide/ 361 | 362 | # Fody - auto-generated XML schema 363 | FodyWeavers.xsd -------------------------------------------------------------------------------- /FlashLauncher/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /FlashLauncher/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /FlashLauncher/FrmOptions.Designer.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace HabboLauncher 3 | { 4 | partial class FrmOptions 5 | { 6 | /// 7 | /// Required designer variable. 8 | /// 9 | private System.ComponentModel.IContainer components = null; 10 | 11 | /// 12 | /// Clean up any resources being used. 13 | /// 14 | /// true if managed resources should be disposed; otherwise, false. 15 | protected override void Dispose(bool disposing) 16 | { 17 | if (disposing && (components != null)) 18 | { 19 | components.Dispose(); 20 | } 21 | base.Dispose(disposing); 22 | } 23 | 24 | #region Windows Form Designer generated code 25 | 26 | /// 27 | /// Required method for Designer support - do not modify 28 | /// the contents of this method with the code editor. 29 | /// 30 | private void InitializeComponent() 31 | { 32 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmOptions)); 33 | this.lblAutoLaunchDelay = new System.Windows.Forms.Label(); 34 | this.numAutoLaunchDelay = new System.Windows.Forms.NumericUpDown(); 35 | this.lblGEarthPath = new System.Windows.Forms.Label(); 36 | this.txtGEarthPath = new System.Windows.Forms.TextBox(); 37 | this.btnGEarthBrowse = new System.Windows.Forms.Button(); 38 | this.chkLaunchGEarth = new System.Windows.Forms.CheckBox(); 39 | this.btnSave = new System.Windows.Forms.Button(); 40 | this.ofd = new System.Windows.Forms.OpenFileDialog(); 41 | this.chkIgnoreClientUpdates = new System.Windows.Forms.CheckBox(); 42 | this.defaultOriginsServer = new System.Windows.Forms.ComboBox(); 43 | this.lblDefaultOriginsServer = new System.Windows.Forms.Label(); 44 | this.chkOriginsXL = new System.Windows.Forms.CheckBox(); 45 | this.btnGEarthOriginsBrowse = new System.Windows.Forms.Button(); 46 | this.txtGEarthOriginsPath = new System.Windows.Forms.TextBox(); 47 | this.lblGEarthOriginsPath = new System.Windows.Forms.Label(); 48 | this.lblIgnoreUpdatesFor = new System.Windows.Forms.Label(); 49 | this.chkIgnoreUpdateShockwave = new System.Windows.Forms.CheckBox(); 50 | this.chkIgnoreUpdateHabbox = new System.Windows.Forms.CheckBox(); 51 | this.chkIgnoreUpdateUnity = new System.Windows.Forms.CheckBox(); 52 | this.chkIgnoreUpdateFlash = new System.Windows.Forms.CheckBox(); 53 | this.txtCustomSwfFlash = new System.Windows.Forms.TextBox(); 54 | this.lblCustomSwf = new System.Windows.Forms.Label(); 55 | this.chkUseCustomSwf = new System.Windows.Forms.CheckBox(); 56 | this.chkLaunchIntegerScaler = new System.Windows.Forms.CheckBox(); 57 | ((System.ComponentModel.ISupportInitialize)(this.numAutoLaunchDelay)).BeginInit(); 58 | this.SuspendLayout(); 59 | // 60 | // lblAutoLaunchDelay 61 | // 62 | this.lblAutoLaunchDelay.AutoSize = true; 63 | this.lblAutoLaunchDelay.Location = new System.Drawing.Point(9, 14); 64 | this.lblAutoLaunchDelay.Name = "lblAutoLaunchDelay"; 65 | this.lblAutoLaunchDelay.Size = new System.Drawing.Size(97, 13); 66 | this.lblAutoLaunchDelay.TabIndex = 0; 67 | this.lblAutoLaunchDelay.Text = "Auto-launch Delay:"; 68 | // 69 | // numAutoLaunchDelay 70 | // 71 | this.numAutoLaunchDelay.Location = new System.Drawing.Point(115, 12); 72 | this.numAutoLaunchDelay.Maximum = new decimal(new int[] { 73 | 10, 74 | 0, 75 | 0, 76 | 0}); 77 | this.numAutoLaunchDelay.Name = "numAutoLaunchDelay"; 78 | this.numAutoLaunchDelay.Size = new System.Drawing.Size(138, 20); 79 | this.numAutoLaunchDelay.TabIndex = 1; 80 | this.numAutoLaunchDelay.Value = new decimal(new int[] { 81 | 3, 82 | 0, 83 | 0, 84 | 0}); 85 | // 86 | // lblGEarthPath 87 | // 88 | this.lblGEarthPath.AutoSize = true; 89 | this.lblGEarthPath.Location = new System.Drawing.Point(8, 48); 90 | this.lblGEarthPath.Name = "lblGEarthPath"; 91 | this.lblGEarthPath.Size = new System.Drawing.Size(71, 13); 92 | this.lblGEarthPath.TabIndex = 2; 93 | this.lblGEarthPath.Text = "G-Earth Path:"; 94 | // 95 | // txtGEarthPath 96 | // 97 | this.txtGEarthPath.Location = new System.Drawing.Point(12, 69); 98 | this.txtGEarthPath.Name = "txtGEarthPath"; 99 | this.txtGEarthPath.Size = new System.Drawing.Size(241, 20); 100 | this.txtGEarthPath.TabIndex = 2; 101 | // 102 | // btnGEarthBrowse 103 | // 104 | this.btnGEarthBrowse.Location = new System.Drawing.Point(163, 43); 105 | this.btnGEarthBrowse.Name = "btnGEarthBrowse"; 106 | this.btnGEarthBrowse.Size = new System.Drawing.Size(90, 23); 107 | this.btnGEarthBrowse.TabIndex = 3; 108 | this.btnGEarthBrowse.Text = "Browse"; 109 | this.btnGEarthBrowse.UseVisualStyleBackColor = true; 110 | this.btnGEarthBrowse.Click += new System.EventHandler(this.btnGEarthBrowse_Click); 111 | // 112 | // chkLaunchGEarth 113 | // 114 | this.chkLaunchGEarth.AutoSize = true; 115 | this.chkLaunchGEarth.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 116 | this.chkLaunchGEarth.Location = new System.Drawing.Point(11, 291); 117 | this.chkLaunchGEarth.Name = "chkLaunchGEarth"; 118 | this.chkLaunchGEarth.Size = new System.Drawing.Size(104, 17); 119 | this.chkLaunchGEarth.TabIndex = 4; 120 | this.chkLaunchGEarth.Text = "Launch G-Earth:"; 121 | this.chkLaunchGEarth.UseVisualStyleBackColor = true; 122 | // 123 | // btnSave 124 | // 125 | this.btnSave.Location = new System.Drawing.Point(177, 398); 126 | this.btnSave.Name = "btnSave"; 127 | this.btnSave.Size = new System.Drawing.Size(75, 23); 128 | this.btnSave.TabIndex = 5; 129 | this.btnSave.Text = "Save"; 130 | this.btnSave.UseVisualStyleBackColor = true; 131 | this.btnSave.Click += new System.EventHandler(this.btnSave_Click); 132 | // 133 | // ofd 134 | // 135 | this.ofd.Filter = "G-Earth Executable|G-Earth.exe"; 136 | // 137 | // chkIgnoreClientUpdates 138 | // 139 | this.chkIgnoreClientUpdates.AutoSize = true; 140 | this.chkIgnoreClientUpdates.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 141 | this.chkIgnoreClientUpdates.Location = new System.Drawing.Point(11, 314); 142 | this.chkIgnoreClientUpdates.Name = "chkIgnoreClientUpdates"; 143 | this.chkIgnoreClientUpdates.Size = new System.Drawing.Size(145, 17); 144 | this.chkIgnoreClientUpdates.TabIndex = 6; 145 | this.chkIgnoreClientUpdates.Text = "Ignore All Client Updates:"; 146 | this.chkIgnoreClientUpdates.UseVisualStyleBackColor = true; 147 | // 148 | // defaultOriginsServer 149 | // 150 | this.defaultOriginsServer.FormattingEnabled = true; 151 | this.defaultOriginsServer.Items.AddRange(new object[] { 152 | "None (You will select)", 153 | "English", 154 | "Portuguese", 155 | "Spanish"}); 156 | this.defaultOriginsServer.Location = new System.Drawing.Point(12, 221); 157 | this.defaultOriginsServer.Name = "defaultOriginsServer"; 158 | this.defaultOriginsServer.Size = new System.Drawing.Size(241, 21); 159 | this.defaultOriginsServer.TabIndex = 7; 160 | // 161 | // lblDefaultOriginsServer 162 | // 163 | this.lblDefaultOriginsServer.AutoSize = true; 164 | this.lblDefaultOriginsServer.Location = new System.Drawing.Point(9, 205); 165 | this.lblDefaultOriginsServer.Name = "lblDefaultOriginsServer"; 166 | this.lblDefaultOriginsServer.Size = new System.Drawing.Size(113, 13); 167 | this.lblDefaultOriginsServer.TabIndex = 8; 168 | this.lblDefaultOriginsServer.Text = "Default Origins Server:"; 169 | // 170 | // chkOriginsXL 171 | // 172 | this.chkOriginsXL.AutoSize = true; 173 | this.chkOriginsXL.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 174 | this.chkOriginsXL.Location = new System.Drawing.Point(11, 248); 175 | this.chkOriginsXL.Name = "chkOriginsXL"; 176 | this.chkOriginsXL.Size = new System.Drawing.Size(77, 17); 177 | this.chkOriginsXL.TabIndex = 9; 178 | this.chkOriginsXL.Text = "Origins XL:"; 179 | this.chkOriginsXL.UseVisualStyleBackColor = true; 180 | // 181 | // btnGEarthOriginsBrowse 182 | // 183 | this.btnGEarthOriginsBrowse.Location = new System.Drawing.Point(163, 148); 184 | this.btnGEarthOriginsBrowse.Name = "btnGEarthOriginsBrowse"; 185 | this.btnGEarthOriginsBrowse.Size = new System.Drawing.Size(90, 23); 186 | this.btnGEarthOriginsBrowse.TabIndex = 12; 187 | this.btnGEarthOriginsBrowse.Text = "Browse"; 188 | this.btnGEarthOriginsBrowse.UseVisualStyleBackColor = true; 189 | this.btnGEarthOriginsBrowse.Click += new System.EventHandler(this.btnGEarthOriginsBrowse_Click); 190 | // 191 | // txtGEarthOriginsPath 192 | // 193 | this.txtGEarthOriginsPath.Location = new System.Drawing.Point(12, 174); 194 | this.txtGEarthOriginsPath.Name = "txtGEarthOriginsPath"; 195 | this.txtGEarthOriginsPath.Size = new System.Drawing.Size(241, 20); 196 | this.txtGEarthOriginsPath.TabIndex = 10; 197 | // 198 | // lblGEarthOriginsPath 199 | // 200 | this.lblGEarthOriginsPath.AutoSize = true; 201 | this.lblGEarthOriginsPath.Location = new System.Drawing.Point(9, 153); 202 | this.lblGEarthOriginsPath.Name = "lblGEarthOriginsPath"; 203 | this.lblGEarthOriginsPath.Size = new System.Drawing.Size(152, 13); 204 | this.lblGEarthOriginsPath.TabIndex = 11; 205 | this.lblGEarthOriginsPath.Text = "G-Earth Origins Path (optional):"; 206 | // 207 | // lblIgnoreUpdatesFor 208 | // 209 | this.lblIgnoreUpdatesFor.AutoSize = true; 210 | this.lblIgnoreUpdatesFor.Location = new System.Drawing.Point(12, 334); 211 | this.lblIgnoreUpdatesFor.Name = "lblIgnoreUpdatesFor"; 212 | this.lblIgnoreUpdatesFor.Size = new System.Drawing.Size(98, 13); 213 | this.lblIgnoreUpdatesFor.TabIndex = 13; 214 | this.lblIgnoreUpdatesFor.Text = "Ignore Updates for:"; 215 | // 216 | // chkIgnoreUpdateShockwave 217 | // 218 | this.chkIgnoreUpdateShockwave.AutoSize = true; 219 | this.chkIgnoreUpdateShockwave.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 220 | this.chkIgnoreUpdateShockwave.Location = new System.Drawing.Point(33, 356); 221 | this.chkIgnoreUpdateShockwave.Name = "chkIgnoreUpdateShockwave"; 222 | this.chkIgnoreUpdateShockwave.Size = new System.Drawing.Size(58, 17); 223 | this.chkIgnoreUpdateShockwave.TabIndex = 14; 224 | this.chkIgnoreUpdateShockwave.Text = "Origins"; 225 | this.chkIgnoreUpdateShockwave.UseVisualStyleBackColor = true; 226 | // 227 | // chkIgnoreUpdateHabbox 228 | // 229 | this.chkIgnoreUpdateHabbox.AutoSize = true; 230 | this.chkIgnoreUpdateHabbox.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 231 | this.chkIgnoreUpdateHabbox.Location = new System.Drawing.Point(28, 373); 232 | this.chkIgnoreUpdateHabbox.Name = "chkIgnoreUpdateHabbox"; 233 | this.chkIgnoreUpdateHabbox.Size = new System.Drawing.Size(63, 17); 234 | this.chkIgnoreUpdateHabbox.TabIndex = 15; 235 | this.chkIgnoreUpdateHabbox.Text = "Habbox"; 236 | this.chkIgnoreUpdateHabbox.UseVisualStyleBackColor = true; 237 | // 238 | // chkIgnoreUpdateUnity 239 | // 240 | this.chkIgnoreUpdateUnity.AutoSize = true; 241 | this.chkIgnoreUpdateUnity.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 242 | this.chkIgnoreUpdateUnity.Location = new System.Drawing.Point(110, 356); 243 | this.chkIgnoreUpdateUnity.Name = "chkIgnoreUpdateUnity"; 244 | this.chkIgnoreUpdateUnity.Size = new System.Drawing.Size(50, 17); 245 | this.chkIgnoreUpdateUnity.TabIndex = 16; 246 | this.chkIgnoreUpdateUnity.Text = "Unity"; 247 | this.chkIgnoreUpdateUnity.UseVisualStyleBackColor = true; 248 | // 249 | // chkIgnoreUpdateFlash 250 | // 251 | this.chkIgnoreUpdateFlash.AutoSize = true; 252 | this.chkIgnoreUpdateFlash.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 253 | this.chkIgnoreUpdateFlash.Location = new System.Drawing.Point(109, 373); 254 | this.chkIgnoreUpdateFlash.Name = "chkIgnoreUpdateFlash"; 255 | this.chkIgnoreUpdateFlash.Size = new System.Drawing.Size(51, 17); 256 | this.chkIgnoreUpdateFlash.TabIndex = 17; 257 | this.chkIgnoreUpdateFlash.Text = "Flash"; 258 | this.chkIgnoreUpdateFlash.UseVisualStyleBackColor = true; 259 | // 260 | // txtCustomSwfFlash 261 | // 262 | this.txtCustomSwfFlash.Location = new System.Drawing.Point(11, 117); 263 | this.txtCustomSwfFlash.Name = "txtCustomSwfFlash"; 264 | this.txtCustomSwfFlash.Size = new System.Drawing.Size(241, 20); 265 | this.txtCustomSwfFlash.TabIndex = 18; 266 | this.txtCustomSwfFlash.Leave += new System.EventHandler(this.txtCustomSwfFlash_Leave); 267 | // 268 | // lblCustomSwf 269 | // 270 | this.lblCustomSwf.AutoSize = true; 271 | this.lblCustomSwf.Location = new System.Drawing.Point(8, 101); 272 | this.lblCustomSwf.Name = "lblCustomSwf"; 273 | this.lblCustomSwf.Size = new System.Drawing.Size(72, 13); 274 | this.lblCustomSwf.TabIndex = 19; 275 | this.lblCustomSwf.Text = "Custom SWF:"; 276 | // 277 | // chkUseCustomSwf 278 | // 279 | this.chkUseCustomSwf.AutoSize = true; 280 | this.chkUseCustomSwf.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 281 | this.chkUseCustomSwf.Location = new System.Drawing.Point(184, 100); 282 | this.chkUseCustomSwf.Name = "chkUseCustomSwf"; 283 | this.chkUseCustomSwf.Size = new System.Drawing.Size(68, 17); 284 | this.chkUseCustomSwf.TabIndex = 20; 285 | this.chkUseCustomSwf.Text = "Enabled:"; 286 | this.chkUseCustomSwf.UseVisualStyleBackColor = true; 287 | this.chkUseCustomSwf.CheckedChanged += new System.EventHandler(this.chkUseCustomSwf_CheckedChanged); 288 | // 289 | // chkLaunchIntegerScaler 290 | // 291 | this.chkLaunchIntegerScaler.AutoSize = true; 292 | this.chkLaunchIntegerScaler.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; 293 | this.chkLaunchIntegerScaler.Location = new System.Drawing.Point(11, 268); 294 | this.chkLaunchIntegerScaler.Name = "chkLaunchIntegerScaler"; 295 | this.chkLaunchIntegerScaler.Size = new System.Drawing.Size(92, 17); 296 | this.chkLaunchIntegerScaler.TabIndex = 21; 297 | this.chkLaunchIntegerScaler.Text = "Integer Scale:"; 298 | this.chkLaunchIntegerScaler.UseVisualStyleBackColor = true; 299 | // 300 | // FrmOptions 301 | // 302 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 303 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 304 | this.ClientSize = new System.Drawing.Size(261, 433); 305 | this.Controls.Add(this.chkLaunchIntegerScaler); 306 | this.Controls.Add(this.chkUseCustomSwf); 307 | this.Controls.Add(this.lblCustomSwf); 308 | this.Controls.Add(this.txtCustomSwfFlash); 309 | this.Controls.Add(this.chkIgnoreUpdateFlash); 310 | this.Controls.Add(this.chkIgnoreUpdateUnity); 311 | this.Controls.Add(this.chkIgnoreUpdateHabbox); 312 | this.Controls.Add(this.chkIgnoreUpdateShockwave); 313 | this.Controls.Add(this.lblIgnoreUpdatesFor); 314 | this.Controls.Add(this.btnGEarthOriginsBrowse); 315 | this.Controls.Add(this.txtGEarthOriginsPath); 316 | this.Controls.Add(this.lblGEarthOriginsPath); 317 | this.Controls.Add(this.chkOriginsXL); 318 | this.Controls.Add(this.lblDefaultOriginsServer); 319 | this.Controls.Add(this.defaultOriginsServer); 320 | this.Controls.Add(this.chkIgnoreClientUpdates); 321 | this.Controls.Add(this.btnSave); 322 | this.Controls.Add(this.chkLaunchGEarth); 323 | this.Controls.Add(this.btnGEarthBrowse); 324 | this.Controls.Add(this.txtGEarthPath); 325 | this.Controls.Add(this.lblGEarthPath); 326 | this.Controls.Add(this.numAutoLaunchDelay); 327 | this.Controls.Add(this.lblAutoLaunchDelay); 328 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; 329 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 330 | this.Name = "FrmOptions"; 331 | this.Text = "HabboLauncher: Options"; 332 | ((System.ComponentModel.ISupportInitialize)(this.numAutoLaunchDelay)).EndInit(); 333 | this.ResumeLayout(false); 334 | this.PerformLayout(); 335 | 336 | } 337 | 338 | #endregion 339 | 340 | private System.Windows.Forms.Label lblAutoLaunchDelay; 341 | private System.Windows.Forms.NumericUpDown numAutoLaunchDelay; 342 | private System.Windows.Forms.Label lblGEarthPath; 343 | private System.Windows.Forms.TextBox txtGEarthPath; 344 | private System.Windows.Forms.Button btnGEarthBrowse; 345 | private System.Windows.Forms.CheckBox chkLaunchGEarth; 346 | private System.Windows.Forms.Button btnSave; 347 | private System.Windows.Forms.OpenFileDialog ofd; 348 | private System.Windows.Forms.CheckBox chkIgnoreClientUpdates; 349 | private System.Windows.Forms.ComboBox defaultOriginsServer; 350 | private System.Windows.Forms.Label lblDefaultOriginsServer; 351 | private System.Windows.Forms.CheckBox chkOriginsXL; 352 | private System.Windows.Forms.Button btnGEarthOriginsBrowse; 353 | private System.Windows.Forms.TextBox txtGEarthOriginsPath; 354 | private System.Windows.Forms.Label lblGEarthOriginsPath; 355 | private System.Windows.Forms.Label lblIgnoreUpdatesFor; 356 | private System.Windows.Forms.CheckBox chkIgnoreUpdateShockwave; 357 | private System.Windows.Forms.CheckBox chkIgnoreUpdateHabbox; 358 | private System.Windows.Forms.CheckBox chkIgnoreUpdateUnity; 359 | private System.Windows.Forms.CheckBox chkIgnoreUpdateFlash; 360 | private System.Windows.Forms.TextBox txtCustomSwfFlash; 361 | private System.Windows.Forms.Label lblCustomSwf; 362 | private System.Windows.Forms.CheckBox chkUseCustomSwf; 363 | private System.Windows.Forms.CheckBox chkLaunchIntegerScaler; 364 | } 365 | } -------------------------------------------------------------------------------- /FlashLauncher/FrmOptions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Net; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using System.Windows.Forms; 11 | 12 | namespace HabboLauncher 13 | { 14 | public partial class FrmOptions : Form 15 | { 16 | 17 | private bool _isHandlingSwfLeave = false; 18 | 19 | public FrmOptions() 20 | { 21 | InitializeComponent(); 22 | 23 | txtGEarthPath.Text = Program.Settings.GEarthPath; 24 | ofd.FileName = Program.Settings.GEarthPath; 25 | chkLaunchGEarth.Checked = Program.Settings.LaunchGEarth; 26 | chkIgnoreClientUpdates.Checked = Program.Settings.IgnoreClientUpdates; 27 | chkIgnoreUpdateFlash.Checked = Program.Settings.IgnoreClientUpdatesFlash; 28 | chkIgnoreUpdateUnity.Checked = Program.Settings.IgnoreClientUpdatesUnity; 29 | chkIgnoreUpdateShockwave.Checked = Program.Settings.IgnoreClientUpdatesOrigins; 30 | chkIgnoreUpdateHabbox.Checked = Program.Settings.IgnoreClientUpdatesHabbox; 31 | chkOriginsXL.Checked = Program.Settings.OriginsXL; 32 | defaultOriginsServer.SelectedIndex = Program.Settings.DefaultOriginsServer; 33 | txtGEarthOriginsPath.Text = Program.Settings.GEarthOriginsPath; 34 | chkLaunchIntegerScaler.Checked = Program.Settings.LaunchIntegerScaler; 35 | txtCustomSwfFlash.Text = Program.Settings.CustomSWFLink; 36 | chkUseCustomSwf.Checked = Program.Settings.UseCustomSwf; 37 | numAutoLaunchDelay.Value = Program.Settings.AutoLaunchDelay; 38 | 39 | // Wire up mutual exclusivity between XL and IntegerScaler 40 | chkOriginsXL.CheckedChanged += chkOriginsXL_CheckedChanged; 41 | chkLaunchIntegerScaler.CheckedChanged += chkLaunchIntegerScaler_CheckedChanged_Mutual; 42 | } 43 | 44 | protected override CreateParams CreateParams 45 | { 46 | get 47 | { 48 | var cp = base.CreateParams; 49 | cp.ExStyle |= 8; // Turn on WS_EX_TOPMOST 50 | return cp; 51 | } 52 | } 53 | 54 | private void btnGEarthBrowse_Click(object sender, EventArgs e) 55 | { 56 | 57 | var result = ofd.ShowDialog(); 58 | if (result == DialogResult.OK && ofd.CheckFileExists) 59 | { 60 | txtGEarthPath.Text = ofd.FileName; 61 | } 62 | } 63 | 64 | private void btnSave_Click(object sender, EventArgs e) 65 | { 66 | if ((int)numAutoLaunchDelay.Value < 3) 67 | { 68 | var result = MessageBox.Show("An auto-launch value lower than 3 seconds may make it impossible to open the options menu.\r\nYou can still manually edit the settings.json file to reset this value.\r\n\r\nAre you sure you wish to continue?", "HabboLauncher - Alert", MessageBoxButtons.YesNo); 69 | if (result == DialogResult.No) 70 | { 71 | return; 72 | } 73 | } 74 | 75 | if (defaultOriginsServer.SelectedIndex > 0) 76 | { 77 | MessageBox.Show("Now once you click on Habbo Origins on the launcher it will open by default on the selected server."); 78 | } 79 | else 80 | { 81 | defaultOriginsServer.SelectedIndex = 0; 82 | } 83 | 84 | Program.Settings.DefaultOriginsServer = defaultOriginsServer.SelectedIndex; 85 | Program.Settings.GEarthPath = txtGEarthPath.Text; 86 | Program.Settings.GEarthOriginsPath = txtGEarthOriginsPath.Text; 87 | Program.Settings.OriginsXL = chkOriginsXL.Checked; 88 | Program.Settings.LaunchIntegerScaler = chkLaunchIntegerScaler.Checked; 89 | Program.Settings.LaunchGEarth = chkLaunchGEarth.Checked; 90 | Program.Settings.IgnoreClientUpdates = chkIgnoreClientUpdates.Checked; 91 | Program.Settings.IgnoreClientUpdatesFlash = chkIgnoreUpdateFlash.Checked; 92 | Program.Settings.IgnoreClientUpdatesHabbox = chkIgnoreUpdateHabbox.Checked; 93 | Program.Settings.IgnoreClientUpdatesOrigins = chkIgnoreUpdateShockwave.Checked; 94 | Program.Settings.IgnoreClientUpdatesUnity = chkIgnoreUpdateUnity.Checked; 95 | Program.Settings.AutoLaunchDelay = (int)numAutoLaunchDelay.Value; 96 | Program.Settings.CustomSWFLink = txtCustomSwfFlash.Text; 97 | Program.Settings.UseCustomSwf = chkUseCustomSwf.Checked; 98 | 99 | Program.Settings.SaveSettings(); 100 | 101 | if (Application.OpenForms["MainFrm"] is MainFrm MainFrm) 102 | { 103 | MainFrm.validateSettings(chkLaunchGEarth.Checked, chkUseCustomSwf.Checked); 104 | } 105 | 106 | 107 | Close(); 108 | } 109 | 110 | private void btnGEarthOriginsBrowse_Click(object sender, EventArgs e) 111 | { 112 | var result = ofd.ShowDialog(); 113 | if (result == DialogResult.OK && ofd.CheckFileExists) 114 | { 115 | txtGEarthOriginsPath.Text = ofd.FileName; 116 | } 117 | } 118 | 119 | private async void txtCustomSwfFlash_Leave(object sender, EventArgs e) 120 | { 121 | if (_isHandlingSwfLeave) 122 | return; 123 | 124 | _isHandlingSwfLeave = true; 125 | 126 | try 127 | { 128 | if (string.IsNullOrEmpty(txtCustomSwfFlash.Text)) 129 | return; 130 | 131 | if (txtCustomSwfFlash.Text == Program.Settings.CustomSWFLink) 132 | return; 133 | 134 | if (!Uri.TryCreate(txtCustomSwfFlash.Text, UriKind.Absolute, out Uri uriResult) || 135 | (uriResult.Scheme != Uri.UriSchemeHttp && uriResult.Scheme != Uri.UriSchemeHttps)) 136 | { 137 | return; 138 | } 139 | 140 | chkUseCustomSwf.Checked = false; 141 | Program.Settings.UseCustomSwf = false; 142 | 143 | DialogResult result = MessageBox.Show( 144 | "Please ensure that you only use trusted SWF files.\n\n" + 145 | "Running unverified or modified SWF files can pose serious security risks, including the execution of malicious code on your computer.\n\n" + 146 | "Use this feature with caution. We are not responsible for any damage or misuse resulting from custom SWF files.\n\nBy pressing OK, this program will download the file from the Link you typed", 147 | "HabboLauncher ~ Alert", 148 | MessageBoxButtons.OKCancel, 149 | MessageBoxIcon.Warning 150 | ); 151 | 152 | if (result == DialogResult.OK) 153 | { 154 | btnSave.Enabled = false; 155 | try 156 | { 157 | await Program.Updater.DownloadCustomSWF(txtCustomSwfFlash.Text); 158 | chkUseCustomSwf.Checked = true; 159 | } 160 | catch (Exception ex) 161 | { 162 | MessageBox.Show( 163 | $"An error occurred while downloading the file: {ex.Message}\n\n" + 164 | "Make sure you are using a downloadable link to the SWF.\n\n" + 165 | "For instance:\n" + 166 | "https://github.com/LilithRainbows/HabboAirPlus/raw/refs/heads/main/HabboAir.swf", 167 | "HabboLauncher ~ Download Error", 168 | MessageBoxButtons.OK, 169 | MessageBoxIcon.Error 170 | ); 171 | } 172 | btnSave.Enabled = true; 173 | } 174 | } 175 | finally 176 | { 177 | _isHandlingSwfLeave = false; 178 | } 179 | } 180 | 181 | private void chkUseCustomSwf_CheckedChanged(object sender, EventArgs e) 182 | { 183 | if (string.IsNullOrWhiteSpace(txtCustomSwfFlash.Text)) 184 | return; 185 | 186 | if (txtCustomSwfFlash.Text == Program.Settings.CustomSWFLink) 187 | return; 188 | 189 | if (!Uri.TryCreate(txtCustomSwfFlash.Text, UriKind.Absolute, out Uri uriResult) || 190 | (uriResult.Scheme != Uri.UriSchemeHttp && uriResult.Scheme != Uri.UriSchemeHttps)) 191 | { 192 | return; 193 | } 194 | 195 | Program.Settings.UseCustomSwf = chkUseCustomSwf.Checked; 196 | 197 | Task.Run(() => 198 | { 199 | Launcher.ChangeFlashSwf(); 200 | }); 201 | } 202 | 203 | private void chkLaunchIntegerScaler_CheckedChanged(object sender, EventArgs e) 204 | { 205 | Program.Settings.LaunchIntegerScaler = chkLaunchIntegerScaler.Checked; 206 | Program.Settings.SaveSettings(); 207 | } 208 | 209 | private void chkOriginsXL_CheckedChanged(object sender, EventArgs e) 210 | { 211 | if (chkOriginsXL.Checked && chkLaunchIntegerScaler.Checked) 212 | { 213 | chkLaunchIntegerScaler.CheckedChanged -= chkLaunchIntegerScaler_CheckedChanged_Mutual; 214 | chkLaunchIntegerScaler.Checked = false; 215 | chkLaunchIntegerScaler.CheckedChanged += chkLaunchIntegerScaler_CheckedChanged_Mutual; 216 | } 217 | } 218 | 219 | private void chkLaunchIntegerScaler_CheckedChanged_Mutual(object sender, EventArgs e) 220 | { 221 | if (chkLaunchIntegerScaler.Checked && chkOriginsXL.Checked) 222 | { 223 | chkOriginsXL.CheckedChanged -= chkOriginsXL_CheckedChanged; 224 | chkOriginsXL.Checked = false; 225 | chkOriginsXL.CheckedChanged += chkOriginsXL_CheckedChanged; 226 | } 227 | } 228 | 229 | 230 | } 231 | } 232 | -------------------------------------------------------------------------------- /FlashLauncher/HabboLauncher.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | preview 7 | false 8 | 9 | 10 | publish\ 11 | true 12 | Disk 13 | false 14 | Foreground 15 | 7 16 | Days 17 | false 18 | false 19 | true 20 | 0 21 | 1.0.0.%2a 22 | false 23 | true 24 | 25 | 26 | Debug 27 | AnyCPU 28 | {6EDBA6F9-A795-4E8B-B8FB-C631B071ADDC} 29 | WinExe 30 | HabboLauncher 31 | HabboLauncher 32 | v4.8 33 | 512 34 | true 35 | true 36 | 37 | 38 | 39 | AnyCPU 40 | true 41 | full 42 | false 43 | bin\Debug\ 44 | DEBUG;TRACE 45 | prompt 46 | 4 47 | 48 | 49 | AnyCPU 50 | pdbonly 51 | true 52 | bin\Release\ 53 | TRACE 54 | prompt 55 | 4 56 | 57 | 58 | 59 | 60 | 61 | Images\FlashLauncher.ico 62 | 63 | 64 | 65 | ..\packages\Costura.Fody.5.7.0\lib\netstandard1.0\Costura.dll 66 | 67 | 68 | ..\packages\Microsoft.Win32.Primitives.4.3.0\lib\net46\Microsoft.Win32.Primitives.dll 69 | True 70 | True 71 | 72 | 73 | ..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll 74 | 75 | 76 | ..\packages\Octokit.6.2.1\lib\netstandard2.0\Octokit.dll 77 | 78 | 79 | 80 | ..\packages\System.AppContext.4.3.0\lib\net463\System.AppContext.dll 81 | True 82 | True 83 | 84 | 85 | ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll 86 | 87 | 88 | 89 | ..\packages\System.Console.4.3.1\lib\net46\System.Console.dll 90 | True 91 | True 92 | 93 | 94 | 95 | ..\packages\System.Diagnostics.DiagnosticSource.7.0.2\lib\net462\System.Diagnostics.DiagnosticSource.dll 96 | 97 | 98 | ..\packages\System.Diagnostics.Tracing.4.3.0\lib\net462\System.Diagnostics.Tracing.dll 99 | True 100 | True 101 | 102 | 103 | 104 | ..\packages\System.Globalization.Calendars.4.3.0\lib\net46\System.Globalization.Calendars.dll 105 | True 106 | True 107 | 108 | 109 | ..\packages\System.IO.4.3.0\lib\net462\System.IO.dll 110 | True 111 | True 112 | 113 | 114 | ..\packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll 115 | True 116 | True 117 | 118 | 119 | 120 | ..\packages\System.IO.Compression.ZipFile.4.3.0\lib\net46\System.IO.Compression.ZipFile.dll 121 | True 122 | True 123 | 124 | 125 | ..\packages\System.IO.FileSystem.4.3.0\lib\net46\System.IO.FileSystem.dll 126 | True 127 | True 128 | 129 | 130 | ..\packages\System.IO.FileSystem.Primitives.4.3.0\lib\net46\System.IO.FileSystem.Primitives.dll 131 | True 132 | True 133 | 134 | 135 | ..\packages\System.Linq.4.3.0\lib\net463\System.Linq.dll 136 | True 137 | True 138 | 139 | 140 | ..\packages\System.Linq.Expressions.4.3.0\lib\net463\System.Linq.Expressions.dll 141 | True 142 | True 143 | 144 | 145 | ..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll 146 | 147 | 148 | ..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll 149 | True 150 | True 151 | 152 | 153 | ..\packages\System.Net.Sockets.4.3.0\lib\net46\System.Net.Sockets.dll 154 | True 155 | True 156 | 157 | 158 | 159 | ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll 160 | 161 | 162 | ..\packages\System.Reflection.4.3.0\lib\net462\System.Reflection.dll 163 | True 164 | True 165 | 166 | 167 | ..\packages\System.Runtime.4.3.1\lib\net462\System.Runtime.dll 168 | True 169 | True 170 | 171 | 172 | ..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll 173 | 174 | 175 | ..\packages\System.Runtime.Extensions.4.3.1\lib\net462\System.Runtime.Extensions.dll 176 | True 177 | True 178 | 179 | 180 | ..\packages\System.Runtime.InteropServices.4.3.0\lib\net463\System.Runtime.InteropServices.dll 181 | True 182 | True 183 | 184 | 185 | ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll 186 | True 187 | True 188 | 189 | 190 | 191 | ..\packages\System.Security.Cryptography.Algorithms.4.3.1\lib\net463\System.Security.Cryptography.Algorithms.dll 192 | True 193 | True 194 | 195 | 196 | ..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll 197 | True 198 | True 199 | 200 | 201 | ..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll 202 | True 203 | True 204 | 205 | 206 | ..\packages\System.Security.Cryptography.X509Certificates.4.3.2\lib\net461\System.Security.Cryptography.X509Certificates.dll 207 | True 208 | True 209 | 210 | 211 | ..\packages\System.Text.RegularExpressions.4.3.1\lib\net463\System.Text.RegularExpressions.dll 212 | True 213 | True 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | ..\packages\System.Xml.ReaderWriter.4.3.1\lib\net46\System.Xml.ReaderWriter.dll 224 | True 225 | True 226 | 227 | 228 | 229 | 230 | Form 231 | 232 | 233 | FrmOptions.cs 234 | 235 | 236 | 237 | 238 | 239 | Form 240 | 241 | 242 | MainFrm.cs 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | False 270 | Microsoft .NET Framework 4.8 %28x86 and x64%29 271 | true 272 | 273 | 274 | False 275 | .NET Framework 3.5 SP1 276 | false 277 | 278 | 279 | 280 | 281 | FrmOptions.cs 282 | 283 | 284 | MainFrm.cs 285 | 286 | 287 | 288 | 289 | 290 | 291 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | -------------------------------------------------------------------------------- /FlashLauncher/Images/FlashLauncher.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottstamp/HabboLauncher/084a3a1078f1c07ebd49185694709af84508b14c/FlashLauncher/Images/FlashLauncher.ico -------------------------------------------------------------------------------- /FlashLauncher/Images/air.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottstamp/HabboLauncher/084a3a1078f1c07ebd49185694709af84508b14c/FlashLauncher/Images/air.png -------------------------------------------------------------------------------- /FlashLauncher/Images/brazil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottstamp/HabboLauncher/084a3a1078f1c07ebd49185694709af84508b14c/FlashLauncher/Images/brazil.png -------------------------------------------------------------------------------- /FlashLauncher/Images/habbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottstamp/HabboLauncher/084a3a1078f1c07ebd49185694709af84508b14c/FlashLauncher/Images/habbox.png -------------------------------------------------------------------------------- /FlashLauncher/Images/origins.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottstamp/HabboLauncher/084a3a1078f1c07ebd49185694709af84508b14c/FlashLauncher/Images/origins.png -------------------------------------------------------------------------------- /FlashLauncher/Images/spain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottstamp/HabboLauncher/084a3a1078f1c07ebd49185694709af84508b14c/FlashLauncher/Images/spain.png -------------------------------------------------------------------------------- /FlashLauncher/Images/unity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottstamp/HabboLauncher/084a3a1078f1c07ebd49185694709af84508b14c/FlashLauncher/Images/unity.png -------------------------------------------------------------------------------- /FlashLauncher/Images/us_flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottstamp/HabboLauncher/084a3a1078f1c07ebd49185694709af84508b14c/FlashLauncher/Images/us_flag.png -------------------------------------------------------------------------------- /FlashLauncher/Json/ClientUrls.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace HabboLauncher.Json 4 | { 5 | public class ClientUrls 6 | { 7 | [JsonProperty(PropertyName = "windows-version")] public string WindowsVersion { get; set; } 8 | [JsonProperty(PropertyName = "flash-windows-version")] public string FlashWindowsVersion { get; set; } 9 | [JsonProperty(PropertyName = "unity-windows")] public string UnityWindows { get; set; } 10 | [JsonProperty(PropertyName = "flash-osx-version")] public string FlashOsxVersion { get; set; } 11 | [JsonProperty(PropertyName = "osx-version")] public string OsxVersion { get; set; } 12 | [JsonProperty(PropertyName = "flash-windows")] public string FlashWindows { get; set; } 13 | [JsonProperty(PropertyName = "flash-osx")] public string FlashOsx { get; set; } 14 | [JsonProperty(PropertyName = "unity-osx-version")] public string UnityOsxVersion { get; set; } 15 | [JsonProperty(PropertyName = "unity-windows-version")] public string UnityWindowsVersion { get; set; } 16 | [JsonProperty(PropertyName = "shockwave-windows")] public string ShockwaveWindows { get; set; } 17 | [JsonProperty(PropertyName = "shockwave-osx")] public string ShockwaveOsx { get; set; } 18 | [JsonProperty(PropertyName = "shockwave-windows-version")] public string ShockwaveWindowsVersion { get; set; } 19 | [JsonProperty(PropertyName = "shockwave-osx-version")] public string ShockwaveOsxVersion { get; set; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /FlashLauncher/Json/Versions.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using Newtonsoft.Json.Converters; 3 | using System; 4 | using System.Collections.Generic; 5 | 6 | namespace HabboLauncher.Json 7 | { 8 | public class Versions 9 | { 10 | public List Installations { get; set; } = new List(); 11 | public LastCheck LastCheck { get; set; } = new LastCheck(); 12 | } 13 | 14 | public class Installation 15 | { 16 | public string Version { get; set; } 17 | public string Path { get; set; } 18 | public string Client { get; set; } 19 | public long LastModified { get; set; } 20 | } 21 | 22 | public class LastCheck 23 | { 24 | public CheckInfo Habbox { get; set; } 25 | public CheckInfo Unity { get; set; } 26 | public CheckInfo Air { get; set; } 27 | public CheckInfo Shockwave { get; set; } 28 | public long Time { get; set; } 29 | } 30 | 31 | public class CheckInfo 32 | { 33 | public string Version { get; set; } 34 | public string Path { get; set; } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /FlashLauncher/MainFrm.Designer.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace HabboLauncher 3 | { 4 | partial class MainFrm 5 | { 6 | /// 7 | /// Required designer variable. 8 | /// 9 | private System.ComponentModel.IContainer components = null; 10 | 11 | /// 12 | /// Clean up any resources being used. 13 | /// 14 | /// true if managed resources should be disposed; otherwise, false. 15 | protected override void Dispose(bool disposing) 16 | { 17 | if (disposing && (components != null)) 18 | { 19 | components.Dispose(); 20 | } 21 | base.Dispose(disposing); 22 | } 23 | 24 | #region Windows Form Designer generated code 25 | 26 | /// 27 | /// Required method for Designer support - do not modify 28 | /// the contents of this method with the code editor. 29 | /// 30 | private void InitializeComponent() 31 | { 32 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)); 33 | this.chkAutoLaunch = new System.Windows.Forms.CheckBox(); 34 | this.txtCode = new System.Windows.Forms.TextBox(); 35 | this.btnOptions = new System.Windows.Forms.Button(); 36 | this.btnLaunchFlash = new System.Windows.Forms.Button(); 37 | this.chkLaunchGearth = new System.Windows.Forms.CheckBox(); 38 | this.btnLaunchHabbox = new System.Windows.Forms.Button(); 39 | this.btnLaunchOriginsUS = new System.Windows.Forms.Button(); 40 | this.btnLaunchOriginsBR = new System.Windows.Forms.Button(); 41 | this.btnLaunchOriginsES = new System.Windows.Forms.Button(); 42 | this.btnLaunchHabboOrigins = new System.Windows.Forms.Button(); 43 | this.btnLaunchUnity = new System.Windows.Forms.Button(); 44 | this.ssInfo = new System.Windows.Forms.StatusStrip(); 45 | this.lblVersionLink = new System.Windows.Forms.ToolStripStatusLabel(); 46 | this.tssOptions = new System.Windows.Forms.ToolStripStatusLabel(); 47 | this.chkUseCustomSwf = new System.Windows.Forms.CheckBox(); 48 | this.clearInstalls = new System.Windows.Forms.ToolStripStatusLabel(); 49 | this.ssInfo.SuspendLayout(); 50 | this.SuspendLayout(); 51 | // 52 | // chkAutoLaunch 53 | // 54 | this.chkAutoLaunch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 55 | this.chkAutoLaunch.AutoSize = true; 56 | this.chkAutoLaunch.Location = new System.Drawing.Point(9, 257); 57 | this.chkAutoLaunch.Name = "chkAutoLaunch"; 58 | this.chkAutoLaunch.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 59 | this.chkAutoLaunch.Size = new System.Drawing.Size(92, 17); 60 | this.chkAutoLaunch.TabIndex = 2; 61 | this.chkAutoLaunch.Text = "Auto: AIR (5s)"; 62 | this.chkAutoLaunch.UseVisualStyleBackColor = true; 63 | this.chkAutoLaunch.CheckedChanged += new System.EventHandler(this.chkAutoLaunch_CheckedChanged); 64 | // 65 | // txtCode 66 | // 67 | this.txtCode.Location = new System.Drawing.Point(12, 12); 68 | this.txtCode.Name = "txtCode"; 69 | this.txtCode.Size = new System.Drawing.Size(312, 20); 70 | this.txtCode.TabIndex = 3; 71 | this.txtCode.TextChanged += new System.EventHandler(this.txtCode_TextChanged); 72 | // 73 | // btnOptions 74 | // 75 | this.btnOptions.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 76 | this.btnOptions.Location = new System.Drawing.Point(361, 249); 77 | this.btnOptions.Name = "btnOptions"; 78 | this.btnOptions.Size = new System.Drawing.Size(75, 21); 79 | this.btnOptions.TabIndex = 5; 80 | this.btnOptions.Text = "Options"; 81 | this.btnOptions.UseVisualStyleBackColor = true; 82 | this.btnOptions.Click += new System.EventHandler(this.btnOptions_Click); 83 | // 84 | // btnLaunchFlash 85 | // 86 | this.btnLaunchFlash.Enabled = false; 87 | this.btnLaunchFlash.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 88 | this.btnLaunchFlash.Image = ((System.Drawing.Image)(resources.GetObject("btnLaunchFlash.Image"))); 89 | this.btnLaunchFlash.Location = new System.Drawing.Point(12, 48); 90 | this.btnLaunchFlash.Name = "btnLaunchFlash"; 91 | this.btnLaunchFlash.Size = new System.Drawing.Size(153, 100); 92 | this.btnLaunchFlash.TabIndex = 0; 93 | this.btnLaunchFlash.UseVisualStyleBackColor = true; 94 | this.btnLaunchFlash.Click += new System.EventHandler(this.btnLaunchFlash_Click); 95 | // 96 | // chkLaunchGearth 97 | // 98 | this.chkLaunchGearth.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 99 | this.chkLaunchGearth.AutoSize = true; 100 | this.chkLaunchGearth.Location = new System.Drawing.Point(107, 257); 101 | this.chkLaunchGearth.Name = "chkLaunchGearth"; 102 | this.chkLaunchGearth.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 103 | this.chkLaunchGearth.Size = new System.Drawing.Size(101, 17); 104 | this.chkLaunchGearth.TabIndex = 7; 105 | this.chkLaunchGearth.Text = "Launch G-Earth"; 106 | this.chkLaunchGearth.UseVisualStyleBackColor = false; 107 | this.chkLaunchGearth.CheckedChanged += new System.EventHandler(this.chkLaunchGearth_CheckedChanged); 108 | // 109 | // btnLaunchHabbox 110 | // 111 | this.btnLaunchHabbox.BackColor = System.Drawing.Color.Transparent; 112 | this.btnLaunchHabbox.Enabled = false; 113 | this.btnLaunchHabbox.Image = ((System.Drawing.Image)(resources.GetObject("btnLaunchHabbox.Image"))); 114 | this.btnLaunchHabbox.Location = new System.Drawing.Point(171, 154); 115 | this.btnLaunchHabbox.Name = "btnLaunchHabbox"; 116 | this.btnLaunchHabbox.Size = new System.Drawing.Size(153, 100); 117 | this.btnLaunchHabbox.TabIndex = 11; 118 | this.btnLaunchHabbox.UseVisualStyleBackColor = false; 119 | this.btnLaunchHabbox.Click += new System.EventHandler(this.btnLaunchHabbox_Click); 120 | // 121 | // btnLaunchOriginsUS 122 | // 123 | this.btnLaunchOriginsUS.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 124 | this.btnLaunchOriginsUS.Image = ((System.Drawing.Image)(resources.GetObject("btnLaunchOriginsUS.Image"))); 125 | this.btnLaunchOriginsUS.Location = new System.Drawing.Point(12, 184); 126 | this.btnLaunchOriginsUS.Name = "btnLaunchOriginsUS"; 127 | this.btnLaunchOriginsUS.Size = new System.Drawing.Size(48, 40); 128 | this.btnLaunchOriginsUS.TabIndex = 12; 129 | this.btnLaunchOriginsUS.UseVisualStyleBackColor = true; 130 | this.btnLaunchOriginsUS.Click += new System.EventHandler(this.btnLaunchOriginsUS_Click); 131 | // 132 | // btnLaunchOriginsBR 133 | // 134 | this.btnLaunchOriginsBR.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 135 | this.btnLaunchOriginsBR.Image = ((System.Drawing.Image)(resources.GetObject("btnLaunchOriginsBR.Image"))); 136 | this.btnLaunchOriginsBR.Location = new System.Drawing.Point(66, 184); 137 | this.btnLaunchOriginsBR.Name = "btnLaunchOriginsBR"; 138 | this.btnLaunchOriginsBR.Size = new System.Drawing.Size(48, 40); 139 | this.btnLaunchOriginsBR.TabIndex = 13; 140 | this.btnLaunchOriginsBR.UseVisualStyleBackColor = true; 141 | this.btnLaunchOriginsBR.Click += new System.EventHandler(this.btnLaunchOriginsBR_Click); 142 | // 143 | // btnLaunchOriginsES 144 | // 145 | this.btnLaunchOriginsES.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 146 | this.btnLaunchOriginsES.Image = ((System.Drawing.Image)(resources.GetObject("btnLaunchOriginsES.Image"))); 147 | this.btnLaunchOriginsES.Location = new System.Drawing.Point(117, 184); 148 | this.btnLaunchOriginsES.Name = "btnLaunchOriginsES"; 149 | this.btnLaunchOriginsES.Size = new System.Drawing.Size(48, 40); 150 | this.btnLaunchOriginsES.TabIndex = 14; 151 | this.btnLaunchOriginsES.UseVisualStyleBackColor = true; 152 | this.btnLaunchOriginsES.Click += new System.EventHandler(this.btnLaunchOriginsES_Click); 153 | // 154 | // btnLaunchHabboOrigins 155 | // 156 | this.btnLaunchHabboOrigins.BackColor = System.Drawing.Color.Transparent; 157 | this.btnLaunchHabboOrigins.Cursor = System.Windows.Forms.Cursors.Hand; 158 | this.btnLaunchHabboOrigins.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 159 | this.btnLaunchHabboOrigins.Image = ((System.Drawing.Image)(resources.GetObject("btnLaunchHabboOrigins.Image"))); 160 | this.btnLaunchHabboOrigins.Location = new System.Drawing.Point(12, 154); 161 | this.btnLaunchHabboOrigins.Name = "btnLaunchHabboOrigins"; 162 | this.btnLaunchHabboOrigins.Size = new System.Drawing.Size(153, 100); 163 | this.btnLaunchHabboOrigins.TabIndex = 10; 164 | this.btnLaunchHabboOrigins.UseVisualStyleBackColor = false; 165 | this.btnLaunchHabboOrigins.Click += new System.EventHandler(this.btnLaunchHabboOrigins_Click); 166 | // 167 | // btnLaunchUnity 168 | // 169 | this.btnLaunchUnity.BackColor = System.Drawing.Color.Transparent; 170 | this.btnLaunchUnity.Enabled = false; 171 | this.btnLaunchUnity.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 172 | this.btnLaunchUnity.Image = ((System.Drawing.Image)(resources.GetObject("btnLaunchUnity.Image"))); 173 | this.btnLaunchUnity.Location = new System.Drawing.Point(171, 48); 174 | this.btnLaunchUnity.Name = "btnLaunchUnity"; 175 | this.btnLaunchUnity.Size = new System.Drawing.Size(153, 100); 176 | this.btnLaunchUnity.TabIndex = 9; 177 | this.btnLaunchUnity.UseVisualStyleBackColor = false; 178 | this.btnLaunchUnity.Click += new System.EventHandler(this.btnLaunchUnity_Click); 179 | // 180 | // ssInfo 181 | // 182 | this.ssInfo.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 183 | this.lblVersionLink, 184 | this.clearInstalls, 185 | this.tssOptions}); 186 | this.ssInfo.Location = new System.Drawing.Point(0, 277); 187 | this.ssInfo.Name = "ssInfo"; 188 | this.ssInfo.Size = new System.Drawing.Size(336, 22); 189 | this.ssInfo.SizingGrip = false; 190 | this.ssInfo.TabIndex = 4; 191 | // 192 | // lblVersionLink 193 | // 194 | this.lblVersionLink.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; 195 | this.lblVersionLink.IsLink = true; 196 | this.lblVersionLink.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); 197 | this.lblVersionLink.Name = "lblVersionLink"; 198 | this.lblVersionLink.Size = new System.Drawing.Size(37, 17); 199 | this.lblVersionLink.Text = "v0.0.0"; 200 | this.lblVersionLink.Click += new System.EventHandler(this.lblVersionLink_Click); 201 | // 202 | // tssOptions 203 | // 204 | this.tssOptions.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; 205 | this.tssOptions.IsLink = true; 206 | this.tssOptions.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); 207 | this.tssOptions.Margin = new System.Windows.Forms.Padding(0); 208 | this.tssOptions.Name = "tssOptions"; 209 | this.tssOptions.Size = new System.Drawing.Size(49, 22); 210 | this.tssOptions.Text = "Options"; 211 | this.tssOptions.Click += new System.EventHandler(this.tssOptions_Click); 212 | // 213 | // chkUseCustomSwf 214 | // 215 | this.chkUseCustomSwf.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 216 | this.chkUseCustomSwf.AutoSize = true; 217 | this.chkUseCustomSwf.Location = new System.Drawing.Point(214, 257); 218 | this.chkUseCustomSwf.Name = "chkUseCustomSwf"; 219 | this.chkUseCustomSwf.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 220 | this.chkUseCustomSwf.Size = new System.Drawing.Size(110, 17); 221 | this.chkUseCustomSwf.TabIndex = 15; 222 | this.chkUseCustomSwf.Text = "Use Custom SWF"; 223 | this.chkUseCustomSwf.UseVisualStyleBackColor = false; 224 | this.chkUseCustomSwf.CheckedChanged += new System.EventHandler(this.chkUseCustomSwf_CheckedChanged); 225 | // 226 | // clearInstalls 227 | // 228 | this.clearInstalls.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; 229 | this.clearInstalls.IsLink = true; 230 | this.clearInstalls.Margin = new System.Windows.Forms.Padding(175, 3, 0, 2); 231 | this.clearInstalls.Name = "clearInstalls"; 232 | this.clearInstalls.Size = new System.Drawing.Size(73, 17); 233 | this.clearInstalls.Text = "Clear Installs"; 234 | this.clearInstalls.Click += new System.EventHandler(this.clearInstalls_Click); 235 | // 236 | // MainFrm 237 | // 238 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 239 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 240 | this.ClientSize = new System.Drawing.Size(336, 299); 241 | this.Controls.Add(this.chkUseCustomSwf); 242 | this.Controls.Add(this.ssInfo); 243 | this.Controls.Add(this.btnLaunchOriginsES); 244 | this.Controls.Add(this.btnLaunchOriginsBR); 245 | this.Controls.Add(this.btnLaunchOriginsUS); 246 | this.Controls.Add(this.btnLaunchHabbox); 247 | this.Controls.Add(this.btnLaunchHabboOrigins); 248 | this.Controls.Add(this.btnLaunchUnity); 249 | this.Controls.Add(this.chkLaunchGearth); 250 | this.Controls.Add(this.btnOptions); 251 | this.Controls.Add(this.chkAutoLaunch); 252 | this.Controls.Add(this.txtCode); 253 | this.Controls.Add(this.btnLaunchFlash); 254 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 255 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 256 | this.MaximizeBox = false; 257 | this.Name = "MainFrm"; 258 | this.Text = "Habbo Launcher"; 259 | this.Load += new System.EventHandler(this.MainFrm_Load); 260 | this.ssInfo.ResumeLayout(false); 261 | this.ssInfo.PerformLayout(); 262 | this.ResumeLayout(false); 263 | this.PerformLayout(); 264 | 265 | } 266 | 267 | #endregion 268 | 269 | private System.Windows.Forms.Button btnLaunchFlash; 270 | private System.Windows.Forms.CheckBox chkAutoLaunch; 271 | private System.Windows.Forms.TextBox txtCode; 272 | private System.Windows.Forms.Button btnOptions; 273 | private System.Windows.Forms.CheckBox chkLaunchGearth; 274 | private System.Windows.Forms.Button btnLaunchUnity; 275 | private System.Windows.Forms.Button btnLaunchHabboOrigins; 276 | private System.Windows.Forms.Button btnLaunchHabbox; 277 | private System.Windows.Forms.Button btnLaunchOriginsUS; 278 | private System.Windows.Forms.Button btnLaunchOriginsBR; 279 | private System.Windows.Forms.Button btnLaunchOriginsES; 280 | private System.Windows.Forms.StatusStrip ssInfo; 281 | private System.Windows.Forms.ToolStripStatusLabel lblVersionLink; 282 | private System.Windows.Forms.ToolStripStatusLabel tssOptions; 283 | private System.Windows.Forms.CheckBox chkUseCustomSwf; 284 | private System.Windows.Forms.ToolStripStatusLabel clearInstalls; 285 | } 286 | } -------------------------------------------------------------------------------- /FlashLauncher/MainFrm.cs: -------------------------------------------------------------------------------- 1 | using HabboLauncher.Utilities; 2 | using System; 3 | using System.Diagnostics; 4 | using System.Drawing; 5 | using System.IO; 6 | using System.Text.RegularExpressions; 7 | using System.Threading.Tasks; 8 | using System.Web; 9 | using System.Web.UI.WebControls; 10 | using System.Windows.Forms; 11 | using static System.Windows.Forms.VisualStyles.VisualStyleElement; 12 | 13 | namespace HabboLauncher 14 | { 15 | public partial class MainFrm : Form 16 | { 17 | private readonly Regex tokenRe = new Regex(@"^([\w]+)\.([\w-]+\.V4)"); 18 | private const string txtCodePlaceholder = "Login Code"; 19 | private string server = "", ticket = ""; 20 | private SelfUpdater SelfUpdater; 21 | private bool closing = false; 22 | 23 | 24 | 25 | public MainFrm(string[] args) 26 | { 27 | InitializeComponent(); 28 | btnLaunchOriginsBR.Hide(); 29 | btnLaunchOriginsES.Hide(); 30 | btnLaunchOriginsUS.Hide(); 31 | 32 | txtCode.Text = txtCodePlaceholder; 33 | txtCode.ForeColor = Color.Gray; 34 | 35 | txtCode.GotFocus += RemovePlaceholder; 36 | txtCode.LostFocus += SetPlaceholder; 37 | 38 | FormClosing += (s, e) => closing = true; 39 | 40 | if (args.Length == 1) 41 | { 42 | var uriQuery = HttpUtility.ParseQueryString(new Uri(args[0]).Query); 43 | server = uriQuery.Get("server"); 44 | ticket = uriQuery.Get("token"); 45 | 46 | txtCode.Text = $"{server}.{ticket}"; 47 | } 48 | } 49 | 50 | protected override CreateParams CreateParams 51 | { 52 | get 53 | { 54 | var cp = base.CreateParams; 55 | cp.ExStyle |= 8; // Turn on WS_EX_TOPMOST 56 | return cp; 57 | } 58 | } 59 | 60 | public void SetVersionText(string text) 61 | { 62 | Invoke((MethodInvoker)delegate 63 | { 64 | lblVersionLink.Text = $"v{text}"; 65 | }); 66 | } 67 | 68 | public void DisableAutoLaunch() 69 | { 70 | chkAutoLaunch.Invoke((MethodInvoker)delegate 71 | { 72 | chkAutoLaunch.Checked = false; 73 | }); 74 | } 75 | 76 | private void HandleAutoLaunch() 77 | { 78 | if (Program.Settings.AutoLaunch) 79 | { 80 | chkAutoLaunch.Checked = true; 81 | if (Program.Settings.LastLaunched == "unity") 82 | { 83 | chkAutoLaunch.Text = $"Auto: Unity ({Program.Settings.AutoLaunchDelay}s)"; 84 | 85 | Task.Run(() => 86 | { 87 | for (var i = Program.Settings.AutoLaunchDelay; i >= 0; i--) 88 | { 89 | if (!chkAutoLaunch.Checked || closing) return; 90 | if (i == 0 && chkAutoLaunch.Checked && btnLaunchUnity.Enabled) 91 | { 92 | btnLaunchUnity_Click(null, null); 93 | } 94 | else 95 | { 96 | Invoke((MethodInvoker)delegate 97 | { 98 | chkAutoLaunch.Text = $"Auto: Unity ({i}s)"; 99 | }); 100 | 101 | Task.Delay(1000).Wait(); 102 | } 103 | } 104 | }); 105 | } 106 | else if (Program.Settings.LastLaunched == "air") 107 | { 108 | chkAutoLaunch.Text = $"Auto: AIR ({Program.Settings.AutoLaunchDelay}s)"; 109 | 110 | Task.Run(() => 111 | { 112 | for (var i = Program.Settings.AutoLaunchDelay; i >= 0; i--) 113 | { 114 | if (!chkAutoLaunch.Checked || closing) return; 115 | if (i == 0 && btnLaunchFlash.Enabled) 116 | { 117 | btnLaunchFlash_Click(null, null); 118 | } 119 | else 120 | { 121 | Invoke((MethodInvoker)delegate 122 | { 123 | chkAutoLaunch.Text = $"Auto: AIR ({i}s)"; 124 | }); 125 | 126 | Task.Delay(1000).Wait(); 127 | } 128 | } 129 | }); 130 | } 131 | else if (Program.Settings.LastLaunched == "habbox") 132 | { 133 | chkAutoLaunch.Text = $"Auto: Habbox ({Program.Settings.AutoLaunchDelay}s)"; 134 | 135 | Task.Run(() => 136 | { 137 | for (var i = Program.Settings.AutoLaunchDelay; i >= 0; i--) 138 | { 139 | if (!chkAutoLaunch.Checked || closing) return; 140 | if (i == 0 && btnLaunchFlash.Enabled) 141 | { 142 | btnLaunchHabbox_Click(null, null); 143 | } 144 | else 145 | { 146 | Invoke((MethodInvoker)delegate 147 | { 148 | chkAutoLaunch.Text = $"Auto: Habbox ({i}s)"; 149 | }); 150 | 151 | Task.Delay(1000).Wait(); 152 | } 153 | } 154 | }); 155 | } 156 | } 157 | } 158 | 159 | private void btnLaunchFlash_Click(object sender, EventArgs e) 160 | { 161 | Program.Settings.LastLaunched = "air"; 162 | Program.Settings.SaveSettings(); 163 | 164 | Task.Run(() => 165 | { 166 | Launcher.LaunchFlashClient(server, ticket, Program.Settings.LaunchGEarth); 167 | 168 | Invoke((MethodInvoker)delegate 169 | { 170 | Close(); 171 | }); 172 | }); 173 | } 174 | 175 | private void btnLaunchUnity_Click(object sender, EventArgs e) 176 | { 177 | Program.Settings.LastLaunched = "unity"; 178 | Program.Settings.SaveSettings(); 179 | Launcher.LaunchUnityClient(server, ticket); 180 | 181 | Invoke((MethodInvoker)delegate 182 | { 183 | Close(); 184 | }); 185 | } 186 | 187 | private void txtCode_TextChanged(object sender, EventArgs e) 188 | { 189 | var m = tokenRe.Match(txtCode.Text); 190 | 191 | if (m.Success) 192 | { 193 | server = m.Groups[1].Value; 194 | ticket = m.Groups[2].Value; 195 | 196 | if (server != null && (server == "hhxd" || server == "hhxp")) 197 | { 198 | btnLaunchFlash.Enabled = false; 199 | btnLaunchUnity.Enabled = false; 200 | btnLaunchHabbox.Enabled = true; 201 | } 202 | else 203 | { 204 | btnLaunchFlash.Enabled = true; 205 | btnLaunchUnity.Enabled = true; 206 | btnLaunchHabbox.Enabled = false; 207 | } 208 | } 209 | else 210 | { 211 | btnLaunchFlash.Enabled = false; 212 | btnLaunchUnity.Enabled = false; 213 | btnLaunchHabbox.Enabled = false; 214 | } 215 | } 216 | 217 | private void chkAutoLaunch_CheckedChanged(object sender, EventArgs e) 218 | { 219 | chkAutoLaunch.Text = "Auto: Last choice (unset)"; 220 | Program.Settings.AutoLaunch = chkAutoLaunch.Checked; 221 | Program.Settings.SaveSettings(); 222 | } 223 | 224 | private void lblVersionLink_Click(object sender, EventArgs e) 225 | { 226 | Process.Start("https://github.com/scottstamp/HabboLauncher/releases/latest"); 227 | } 228 | 229 | private void btnOptions_Click(object sender, EventArgs e) 230 | { 231 | DisableAutoLaunch(); 232 | var frmOptions = new FrmOptions(); 233 | frmOptions.ShowDialog(); 234 | } 235 | 236 | private void btnLaunchHabbox_Click(object sender, EventArgs e) 237 | { 238 | Program.Settings.LastLaunched = "habbox"; 239 | Program.Settings.SaveSettings(); 240 | Launcher.LaunchHabboxClient(server, ticket); 241 | 242 | Invoke((MethodInvoker)delegate 243 | { 244 | Close(); 245 | }); 246 | } 247 | 248 | private void tssOptions_Click(object sender, EventArgs e) 249 | { 250 | DisableAutoLaunch(); 251 | var frmOptions = new FrmOptions(); 252 | frmOptions.ShowDialog(); 253 | } 254 | 255 | private void chkLaunchGearth_CheckedChanged(object sender, EventArgs e) 256 | { 257 | Program.Settings.LaunchGEarth = chkLaunchGearth.Checked; 258 | Program.Settings.SaveSettings(); 259 | } 260 | 261 | private void btnLaunchHabboOrigins_Click(object sender, EventArgs e) 262 | { 263 | 264 | if (Program.Settings.DefaultOriginsServer == 0) 265 | { 266 | btnLaunchHabboOrigins.Hide(); 267 | btnLaunchOriginsBR.Show(); 268 | btnLaunchOriginsES.Show(); 269 | btnLaunchOriginsUS.Show(); 270 | return; 271 | } 272 | 273 | if(Program.Settings.DefaultOriginsServer == 1) 274 | { 275 | launchOriginsClient("us"); 276 | } 277 | 278 | if (Program.Settings.DefaultOriginsServer == 2) 279 | { 280 | launchOriginsClient("br"); 281 | } 282 | 283 | if (Program.Settings.DefaultOriginsServer == 3) 284 | { 285 | launchOriginsClient("es"); 286 | } 287 | 288 | } 289 | 290 | private void launchOriginsClient(string server) 291 | { 292 | try 293 | { 294 | Program.Settings.LastLaunched = "shockwave"; 295 | Program.Settings.SaveSettings(); 296 | 297 | Task.Run(() => 298 | { 299 | Launcher.LaunchOriginsClient(server, Program.Settings.LaunchGEarth, Program.Settings.OriginsXL, Program.Settings.LaunchIntegerScaler); 300 | 301 | Invoke((MethodInvoker)delegate 302 | { 303 | Close(); 304 | }); 305 | }); 306 | 307 | } 308 | catch (Exception ex) 309 | { 310 | MessageBox.Show(ex.Message); 311 | } 312 | } 313 | 314 | 315 | private void btnLaunchOriginsUS_Click(object sender, EventArgs e) 316 | { 317 | Program.Settings.DefaultOriginsServer = 1; 318 | launchOriginsClient("us"); 319 | } 320 | 321 | private void btnLaunchOriginsBR_Click(object sender, EventArgs e) 322 | { 323 | Program.Settings.DefaultOriginsServer = 2; 324 | launchOriginsClient("br"); 325 | } 326 | 327 | private void btnLaunchOriginsES_Click(object sender, EventArgs e) 328 | { 329 | Program.Settings.DefaultOriginsServer = 3; 330 | launchOriginsClient("es"); 331 | } 332 | 333 | private void MainFrm_Load(object sender, EventArgs e) 334 | { 335 | SelfUpdater = new SelfUpdater(this); 336 | chkLaunchGearth.Checked = Program.Settings.LaunchGEarth; 337 | chkUseCustomSwf.Checked = Program.Settings.UseCustomSwf; 338 | HandleAutoLaunch(); 339 | } 340 | 341 | private void chkUseCustomSwf_CheckedChanged(object sender, EventArgs e) 342 | { 343 | Program.Settings.UseCustomSwf = chkUseCustomSwf.Checked; 344 | 345 | Task.Run(() => 346 | { 347 | Launcher.ChangeFlashSwf(); 348 | }); 349 | } 350 | 351 | public void validateSettings(bool launchGearth, bool useCustomSwf) 352 | { 353 | chkLaunchGearth.Checked = launchGearth; 354 | chkUseCustomSwf.Checked = useCustomSwf; 355 | } 356 | 357 | private void RemovePlaceholder(object sender, EventArgs e) 358 | { 359 | if (txtCode.Text == txtCodePlaceholder) 360 | { 361 | txtCode.Text = ""; 362 | txtCode.ForeColor = Color.Black; 363 | } 364 | 365 | } 366 | 367 | private void clearInstalls_Click(object sender, EventArgs e) 368 | { 369 | DialogResult result = MessageBox.Show( 370 | "This will clear all installed client files and force a fresh reinstall on next launch.\n\n" + 371 | "The following will be cleared:\n" + 372 | "• All downloaded client versions (AIR, Unity, Habbox, Origins)\n" + 373 | "• Version cache file (versions.json)\n" + 374 | "• Temporary download files\n\n" + 375 | "Your settings and custom SWF files will NOT be affected.\n\n" + 376 | "Do you want to proceed?", 377 | "Clear Installs", 378 | MessageBoxButtons.YesNo, 379 | MessageBoxIcon.Warning 380 | ); 381 | 382 | if (result == DialogResult.Yes) 383 | { 384 | try 385 | { 386 | string downloadsPath = Path.Combine(Program.AppCacheDir, "downloads"); 387 | if (Directory.Exists(downloadsPath)) 388 | { 389 | Directory.Delete(downloadsPath, true); 390 | } 391 | 392 | string versionsPath = Path.Combine(Program.AppCacheDir, "versions.json"); 393 | if (File.Exists(versionsPath)) 394 | { 395 | File.Delete(versionsPath); 396 | } 397 | 398 | // Clear shockwave-habbo temp folders generated by this client 399 | string tempPath = Path.GetTempPath(); 400 | string[] shockwaveTempDirs = Directory.GetDirectories(tempPath, "shockwave-habbo*", SearchOption.TopDirectoryOnly); 401 | foreach (string dir in shockwaveTempDirs) 402 | { 403 | try 404 | { 405 | Directory.Delete(dir, true); 406 | } 407 | catch 408 | { 409 | // Ignore if folder is in use or can't be deleted 410 | } 411 | } 412 | 413 | MessageBox.Show( 414 | "All client installations have been cleared successfully.\n\n" + 415 | "The application will now restart and download fresh client files.", 416 | "Clear Complete", 417 | MessageBoxButtons.OK, 418 | MessageBoxIcon.Information 419 | ); 420 | 421 | Application.Restart(); 422 | Environment.Exit(0); 423 | } 424 | catch (Exception ex) 425 | { 426 | MessageBox.Show( 427 | $"An error occurred while clearing installations:\n\n{ex.Message}", 428 | "Error", 429 | MessageBoxButtons.OK, 430 | MessageBoxIcon.Error 431 | ); 432 | } 433 | } 434 | } 435 | 436 | private void SetPlaceholder(object sender, EventArgs e) 437 | { 438 | if (string.IsNullOrWhiteSpace(txtCode.Text)) 439 | { 440 | txtCode.Text = txtCodePlaceholder; 441 | txtCode.ForeColor = Color.Gray; 442 | } 443 | } 444 | } 445 | } 446 | -------------------------------------------------------------------------------- /FlashLauncher/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.IO; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace HabboLauncher 8 | { 9 | class Program 10 | { 11 | public static readonly string AppDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Programs", "habbo-electron-launcher"); 12 | public static readonly string AppCacheDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Habbo Launcher"); 13 | 14 | //public static readonly string AppDir = Path.Combine("D:\\", "Programs", "habbo-electron-launcher"); 15 | //public static readonly string AppCacheDir = Path.Combine("D:\\", "Programs", "habbo-electron-launcher", "Habbo Launcher"); 16 | 17 | public static Updater Updater; 18 | public static Settings Settings; 19 | 20 | [STAThread] 21 | static void Main(string[] args) 22 | { 23 | 24 | CreateOriginalDirectories(); 25 | 26 | Updater = new(); 27 | Settings = Settings.LoadSettings(); 28 | 29 | if (!CheckExecutingDirectory()) return; 30 | if (!Settings.IgnoreClientUpdates) 31 | ShowUpdatePrompt(Updater.CheckForUpdate()); 32 | 33 | if(Settings.UseCustomSwf && !string.IsNullOrWhiteSpace(Settings.CustomSWFLink)) 34 | { 35 | Task.Run(async () => 36 | { 37 | await Updater.CheckForSwfUpdates(); 38 | }); 39 | } 40 | 41 | Application.EnableVisualStyles(); 42 | Application.SetCompatibleTextRenderingDefault(false); 43 | Application.Run(new MainFrm(args)); 44 | } 45 | 46 | static void CreateOriginalDirectories() 47 | { 48 | if (!Directory.Exists(AppDir)) Directory.CreateDirectory(AppDir); 49 | if (!Directory.Exists(AppCacheDir)) Directory.CreateDirectory(AppCacheDir); 50 | } 51 | 52 | public static void CopyDirectory(string sourceDir, string targetDir) 53 | { 54 | foreach (var dir in Directory.GetDirectories(sourceDir, "*", SearchOption.AllDirectories)) 55 | { 56 | string relPath = dir.Substring(sourceDir.Length).TrimStart(Path.DirectorySeparatorChar); 57 | Directory.CreateDirectory(Path.Combine(targetDir, relPath)); 58 | } 59 | 60 | foreach (var file in Directory.GetFiles(sourceDir, "*.*", SearchOption.AllDirectories)) 61 | { 62 | string relPath = file.Substring(sourceDir.Length).TrimStart(Path.DirectorySeparatorChar); 63 | string destFile = Path.Combine(targetDir, relPath); 64 | File.Copy(file, destFile, true); 65 | } 66 | } 67 | 68 | static bool CheckExecutingDirectory() 69 | { 70 | if (Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName) == AppDir) 71 | { 72 | RegUtil.RegisterProtocol(Process.GetCurrentProcess().MainModule.FileName); 73 | } 74 | else 75 | { 76 | var result = MessageBox.Show($"HabboLauncher was executed outside of \"{AppDir}\", copy to this folder?", "HabboLauncher ~ Info", MessageBoxButtons.YesNo); 77 | if (result == DialogResult.Yes) 78 | { 79 | var currentPath = Process.GetCurrentProcess().MainModule.FileName; 80 | var installPath = Path.Combine(AppDir, "Habbo Launcher.exe"); 81 | 82 | if (!File.Exists(Path.Combine(AppDir, "Habbo Launcher.exe.old")) && File.Exists(installPath)) 83 | File.Move(Path.Combine(AppDir, "Habbo Launcher.exe"), Path.Combine(AppDir, "Habbo Launcher.exe.old")); 84 | 85 | File.Copy(currentPath, installPath, File.Exists(installPath)); 86 | 87 | RegUtil.RegisterProtocol(Path.Combine(AppDir, "Habbo Launcher.exe")); 88 | MessageBox.Show("Copied successfully. You may now launch Habbo from the website as normal.", "HabboLauncher ~ Info", MessageBoxButtons.OK); 89 | return false; 90 | } 91 | } 92 | 93 | return true; 94 | } 95 | 96 | static void ShowUpdatePrompt(UpdateResult result) 97 | { 98 | if (Settings.IgnoreClientUpdates && !result.Required) return; 99 | 100 | bool needFlash = result.FlashUpdate && (!Settings.IgnoreClientUpdatesFlash || result.Required); 101 | bool needUnity = result.UnityUpdate && (!Settings.IgnoreClientUpdatesUnity || result.Required); 102 | bool needHabbox = result.HabboxUpdate && (!Settings.IgnoreClientUpdatesHabbox || result.Required); 103 | bool needShockwave = result.ShockwaveUpdate && (!Settings.IgnoreClientUpdatesOrigins || result.Required); 104 | 105 | if (!needFlash && !needUnity && !needHabbox && !needShockwave) 106 | return; 107 | 108 | var message = result.Required 109 | ? "Existing client files were not found, please click yes to download client files and continue." 110 | : "Updates are available for the following clients. Would you like to download them?"; 111 | 112 | var details = ""; 113 | if (needFlash) details += $"\r\n\r\nFlash (AIR): {Updater.LastCheckFlashUrl}"; 114 | if (needUnity) details += $"\r\n\r\nUnity: {Updater.LastCheckUnityUrl}"; 115 | if (needHabbox) details += $"\r\n\r\nHabbox: {Updater.LastCheckHabboxUrl}"; 116 | if (needShockwave) details += $"\r\n\r\nOrigins: {Updater.LastCheckShockwaveUrl}"; 117 | 118 | if (MessageBox.Show(message + details, "HabboLauncher ~ Update", MessageBoxButtons.YesNo) == DialogResult.Yes) 119 | { 120 | if (needFlash) Updater.DownloadAirClient(); 121 | if (needUnity) Updater.DownloadUnityClient(); 122 | if (needHabbox) Updater.DownloadHabboxClient(); 123 | if (needShockwave) Updater.DownloadShockwaveClient(); 124 | } 125 | } 126 | } 127 | } -------------------------------------------------------------------------------- /FlashLauncher/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("FlashLauncher")] 9 | [assembly: AssemblyDescription("Replacement for official launcher to default to AIR client")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Elbrah")] 12 | [assembly: AssemblyProduct("FlashLauncher")] 13 | [assembly: AssemblyCopyright("Copyright Elbrah © 2023")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("6edba6f9-a795-4e8b-b8fb-c631b071addc")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.6.0")] 36 | [assembly: AssemblyFileVersion("1.0.6.0")] 37 | -------------------------------------------------------------------------------- /FlashLauncher/Resources/IntegerScaler_x64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottstamp/HabboLauncher/084a3a1078f1c07ebd49185694709af84508b14c/FlashLauncher/Resources/IntegerScaler_x64.exe -------------------------------------------------------------------------------- /FlashLauncher/Resources/IntegerScaler_x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scottstamp/HabboLauncher/084a3a1078f1c07ebd49185694709af84508b14c/FlashLauncher/Resources/IntegerScaler_x86.exe -------------------------------------------------------------------------------- /FlashLauncher/Utilities/IntegerScalerManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.IO; 4 | using System.Reflection; 5 | using System.Windows.Forms; 6 | 7 | namespace HabboLauncher.Utilities 8 | { 9 | public static class IntegerScalerManager 10 | { 11 | private static readonly string IntegerScalerDir = Path.Combine( 12 | Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), 13 | "Habbo Launcher", 14 | "IntegerScaler" 15 | ); 16 | 17 | private static string GetIntegerScalerExecutableName() 18 | { 19 | return Environment.Is64BitOperatingSystem ? "IntegerScaler_x64.exe" : "IntegerScaler_x86.exe"; 20 | } 21 | 22 | private static string GetIntegerScalerPath() 23 | { 24 | return Path.Combine(IntegerScalerDir, GetIntegerScalerExecutableName()); 25 | } 26 | 27 | /// 28 | /// Gets optimal IntegerScaler arguments based on screen resolution 29 | /// 30 | private static string GetOptimalArguments() 31 | { 32 | var primaryScreen = Screen.PrimaryScreen; 33 | var screenWidth = primaryScreen.Bounds.Width; 34 | var screenHeight = primaryScreen.Bounds.Height; 35 | 36 | // Configuration for fullscreen integer scaling with auto-enable: 37 | // -fractional: allows fractional scales to better fill the screen 38 | // -clipcursor: keeps mouse cursor within game window for immersive experience 39 | // -bg 0,0,0: black background for proper fullscreen feel 40 | // -scale 3000: automatically enables scaling after 3 seconds 41 | var args = "-fractional -clipcursor -bg 0,0,0 -scale 3000"; 42 | 43 | return args; 44 | } 45 | 46 | /// 47 | /// Ensures IntegerScaler is extracted to the AppData directory 48 | /// 49 | public static void EnsureIntegerScalerExtracted() 50 | { 51 | try 52 | { 53 | Directory.CreateDirectory(IntegerScalerDir); 54 | 55 | string targetPath = GetIntegerScalerPath(); 56 | string resourceName = GetIntegerScalerExecutableName(); 57 | 58 | // Always extract to ensure we have the latest version 59 | ExtractEmbeddedResource(resourceName, targetPath); 60 | } 61 | catch (Exception ex) 62 | { 63 | Debug.WriteLine($"Error extracting IntegerScaler: {ex.Message}"); 64 | } 65 | } 66 | 67 | /// 68 | /// Extracts an embedded resource to a file 69 | /// 70 | private static void ExtractEmbeddedResource(string resourceName, string targetPath) 71 | { 72 | var assembly = Assembly.GetExecutingAssembly(); 73 | string fullResourceName = $"HabboLauncher.Resources.{resourceName}"; 74 | 75 | using (Stream resourceStream = assembly.GetManifestResourceStream(fullResourceName)) 76 | { 77 | if (resourceStream == null) 78 | { 79 | throw new Exception($"Could not find embedded resource: {fullResourceName}"); 80 | } 81 | 82 | using (FileStream fileStream = new FileStream(targetPath, FileMode.Create, FileAccess.Write)) 83 | { 84 | resourceStream.CopyTo(fileStream); 85 | } 86 | } 87 | } 88 | 89 | /// 90 | /// Launches IntegerScaler with optimized arguments for user's resolution 91 | /// 92 | public static void LaunchIntegerScaler() 93 | { 94 | try 95 | { 96 | EnsureIntegerScalerExtracted(); 97 | 98 | string integerScalerPath = GetIntegerScalerPath(); 99 | 100 | if (!File.Exists(integerScalerPath)) 101 | { 102 | throw new Exception("IntegerScaler executable not found after extraction."); 103 | } 104 | 105 | string arguments = GetOptimalArguments(); 106 | 107 | Process.Start(new ProcessStartInfo(integerScalerPath) 108 | { 109 | WorkingDirectory = IntegerScalerDir, 110 | Arguments = arguments 111 | }); 112 | } 113 | catch (Exception ex) 114 | { 115 | Debug.WriteLine($"Error launching IntegerScaler: {ex.Message}"); 116 | throw; 117 | } 118 | } 119 | 120 | /// 121 | /// Checks if IntegerScaler process is already running 122 | /// 123 | public static bool IsIntegerScalerRunning() 124 | { 125 | try 126 | { 127 | string exeName = Path.GetFileNameWithoutExtension(GetIntegerScalerExecutableName()); 128 | var processes = Process.GetProcessesByName(exeName); 129 | return processes.Length > 0; 130 | } 131 | catch 132 | { 133 | return false; 134 | } 135 | } 136 | } 137 | } 138 | -------------------------------------------------------------------------------- /FlashLauncher/Utilities/Launcher.cs: -------------------------------------------------------------------------------- 1 | using HabboLauncher.Utilities; 2 | using System; 3 | using System.Diagnostics; 4 | using System.IO; 5 | using System.Text.RegularExpressions; 6 | using System.Threading.Tasks; 7 | using System.Windows.Forms; 8 | using System.Xml; 9 | 10 | namespace HabboLauncher 11 | { 12 | public class Launcher 13 | { 14 | private static readonly string appXmlPath = Path.Combine(Program.Updater.FlashInstall.Path, "META-INF", "AIR", "application.xml"); 15 | 16 | private static void SetFlashApplicationId(string ticket) 17 | { 18 | string avatarId; 19 | var m = Regex.Match(ticket, @"[a-z0-9\-]+-([0-9]+)", RegexOptions.IgnoreCase); 20 | if (m.Success) 21 | avatarId = m.Groups[1].Value; 22 | else 23 | avatarId = Guid.NewGuid().ToString("N"); 24 | 25 | var doc = new XmlDocument(); 26 | doc.Load(appXmlPath); 27 | doc["application"]["id"].InnerText = $"com.sulake.habboair.{avatarId}"; 28 | doc["application"]["initialWindow"]["title"].InnerText = $"Habbo"; 29 | doc.Save(appXmlPath); 30 | } 31 | 32 | public static void ChangeFlashSwf() 33 | { 34 | var extractedPath = Path.Combine(Program.AppCacheDir, "downloads", "air", Program.Updater.lastCheckData.FlashWindowsVersion); 35 | var swfPath = Path.Combine(extractedPath, "HabboAir.swf"); 36 | var backupSwfFile = Path.Combine(extractedPath, "HabboAir.original.swf"); 37 | var customSwfFile = Path.Combine(extractedPath, "HabboAir.custom.swf"); 38 | 39 | if (!Program.Settings.UseCustomSwf) 40 | { 41 | if (File.Exists(backupSwfFile)) 42 | { 43 | File.Copy(backupSwfFile, swfPath, true); 44 | } 45 | return; 46 | } 47 | 48 | if (File.Exists(customSwfFile)) 49 | { 50 | File.Copy(customSwfFile, swfPath, true); 51 | } 52 | 53 | } 54 | 55 | public static void LaunchFlashClient(string server, string ticket, bool withGEarth = true) 56 | { 57 | SetFlashApplicationId(ticket); 58 | 59 | if (withGEarth && File.Exists(Program.Settings.GEarthPath)) 60 | { 61 | Process.Start(new ProcessStartInfo(Path.GetFileName(Program.Settings.GEarthPath)) 62 | { 63 | WorkingDirectory = Path.GetDirectoryName(Program.Settings.GEarthPath), 64 | Arguments = "-c flash" 65 | }); 66 | 67 | Task.Delay(1000).Wait(); 68 | } 69 | 70 | Process.Start(new ProcessStartInfo("Habbo.exe") 71 | { 72 | WorkingDirectory = Program.Updater.FlashInstall.Path, 73 | Arguments = $"-server {server} -ticket \"{ticket}\"" 74 | }); 75 | } 76 | 77 | public static void LaunchUnityClient(string server, string ticket) 78 | { 79 | Process.Start(new ProcessStartInfo("habbo2020-global-prod.exe") 80 | { 81 | WorkingDirectory = Path.Combine(Program.Updater.UnityInstall.Path, "StandaloneWindows"), 82 | Arguments = $"-server {server} -ticket \"{ticket}\"" 83 | }); 84 | } 85 | 86 | public static void LaunchHabboxClient(string server, string ticket) 87 | { 88 | Process.Start(new ProcessStartInfo("habbo2020-global-prod.exe") 89 | { 90 | WorkingDirectory = Path.Combine(Program.Updater.HabboxInstall.Path, "StandaloneWindows"), 91 | Arguments = $"-server {server} -ticket \"{ticket}\"" 92 | }); 93 | } 94 | 95 | public static void LaunchOriginsClient(string server, bool withGEarth = true, bool isXl = false, bool withIntegerScaler = false) 96 | { 97 | // Clean up old shockwave-habbo temp folders before creating a new one 98 | CleanupOldOriginsTempFolders(); 99 | 100 | if (withIntegerScaler) 101 | { 102 | try 103 | { 104 | // Only launch if not already running 105 | if (!IntegerScalerManager.IsIntegerScalerRunning()) 106 | { 107 | IntegerScalerManager.LaunchIntegerScaler(); 108 | Task.Delay(1000).Wait(); 109 | } 110 | } 111 | catch (Exception ex) 112 | { 113 | MessageBox.Show($"Failed to launch IntegerScaler: {ex.Message}", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); 114 | } 115 | } 116 | 117 | if (withGEarth && File.Exists(Program.Settings.GEarthOriginsPath)) 118 | { 119 | Process.Start(new ProcessStartInfo(Path.GetFileName(Program.Settings.GEarthOriginsPath)) 120 | { 121 | WorkingDirectory = Path.GetDirectoryName(Program.Settings.GEarthOriginsPath), 122 | Arguments = "-c origins" 123 | }); 124 | 125 | Task.Delay(1000).Wait(); 126 | }else if (withGEarth && File.Exists(Program.Settings.GEarthPath)) 127 | { 128 | Process.Start(new ProcessStartInfo(Path.GetFileName(Program.Settings.GEarthPath)) 129 | { 130 | WorkingDirectory = Path.GetDirectoryName(Program.Settings.GEarthPath), 131 | Arguments = "-c origins" 132 | }); 133 | 134 | Task.Delay(1000).Wait(); 135 | } 136 | 137 | string tempDir = Path.Combine(Path.GetTempPath(), "shockwave-habbo-" + Guid.NewGuid().ToString("N")); 138 | Directory.CreateDirectory(tempDir); 139 | 140 | string sourceDir = Program.Updater.ShockwaveInstall.Path; 141 | Program.CopyDirectory(sourceDir, tempDir); 142 | 143 | string xlString = isXl ? "-xl" : ""; 144 | 145 | string exePath = Path.Combine(tempDir, $"HabboHotel-o{server}{xlString}.exe"); 146 | if (File.Exists(exePath)) 147 | { 148 | Process.Start(new ProcessStartInfo(exePath) 149 | { 150 | WorkingDirectory = tempDir, 151 | Arguments = "" 152 | }); 153 | } 154 | else 155 | { 156 | MessageBox.Show($"Executable not found in temp folder: {exePath}", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 157 | } 158 | } 159 | 160 | /// 161 | /// Cleans up old shockwave-habbo temp folders that are not in use 162 | /// 163 | private static void CleanupOldOriginsTempFolders() 164 | { 165 | try 166 | { 167 | string tempPath = Path.GetTempPath(); 168 | string[] shockwaveTempDirs = Directory.GetDirectories(tempPath, "shockwave-habbo-*", SearchOption.TopDirectoryOnly); 169 | 170 | foreach (string dir in shockwaveTempDirs) 171 | { 172 | try 173 | { 174 | // Check if any process is using files in this directory 175 | if (!IsDirectoryInUse(dir)) 176 | { 177 | Directory.Delete(dir, true); 178 | } 179 | } 180 | catch 181 | { 182 | // Ignore errors - folder might be in use or locked 183 | } 184 | } 185 | } 186 | catch 187 | { 188 | // Ignore errors during cleanup - not critical 189 | } 190 | } 191 | 192 | /// 193 | /// Checks if any files in the directory are currently in use by a process 194 | /// 195 | private static bool IsDirectoryInUse(string directory) 196 | { 197 | try 198 | { 199 | // Try to get all executable files in the directory 200 | string[] exeFiles = Directory.GetFiles(directory, "*.exe", SearchOption.TopDirectoryOnly); 201 | 202 | foreach (string exeFile in exeFiles) 203 | { 204 | string exeName = Path.GetFileNameWithoutExtension(exeFile); 205 | 206 | // Check if any process with this name is running 207 | Process[] processes = Process.GetProcessesByName(exeName); 208 | foreach (Process proc in processes) 209 | { 210 | try 211 | { 212 | // Check if the process executable path matches this directory 213 | if (proc.MainModule?.FileName?.StartsWith(directory, StringComparison.OrdinalIgnoreCase) == true) 214 | { 215 | return true; // Directory is in use 216 | } 217 | } 218 | catch 219 | { 220 | // Access denied or process terminated - continue checking 221 | } 222 | } 223 | } 224 | 225 | return false; // No processes found using this directory 226 | } 227 | catch 228 | { 229 | // If we can't determine, assume it's in use to be safe 230 | return true; 231 | } 232 | } 233 | 234 | } 235 | } 236 | -------------------------------------------------------------------------------- /FlashLauncher/Utilities/RegUtil.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Win32; 2 | 3 | namespace HabboLauncher 4 | { 5 | public static class RegUtil 6 | { 7 | public static void RegisterProtocol(string path) 8 | { 9 | var key = Registry.ClassesRoot.OpenSubKey("habbo", true); 10 | if (key == null) 11 | { 12 | key = Registry.ClassesRoot.CreateSubKey("habbo"); 13 | key.SetValue(string.Empty, "URL:habbo"); 14 | key.SetValue("URL Protocol", string.Empty); 15 | 16 | key = key.CreateSubKey(@"shell\open\command"); 17 | key.SetValue(string.Empty, $"\"{path}\" \"%1\""); 18 | } 19 | else 20 | { 21 | key.SetValue(string.Empty, "URL:habbo"); 22 | key.SetValue("URL Protocol", string.Empty); 23 | } 24 | 25 | var subKey = key.OpenSubKey(@"shell\open\command", true); 26 | if (subKey == null) 27 | subKey = key.CreateSubKey(@"shell\open\command"); 28 | 29 | subKey.SetValue(string.Empty, $"\"{path}\" \"%1\""); 30 | subKey.Dispose(); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /FlashLauncher/Utilities/SelfUpdater.cs: -------------------------------------------------------------------------------- 1 | using Octokit; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Diagnostics; 5 | using System.Linq; 6 | using System.Reflection; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace HabboLauncher.Utilities 12 | { 13 | public class SelfUpdater 14 | { 15 | private readonly MainFrm MainFrm; 16 | 17 | public Version LocalVersion { get; set; } 18 | public Release Latest { get; set; } 19 | public Release Current { get; set; } 20 | 21 | public SelfUpdater(MainFrm mainFrm) 22 | { 23 | MainFrm = mainFrm; 24 | 25 | LocalVersion = new Version(FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion); 26 | MainFrm.SetVersionText(LocalVersion.ToString(3)); 27 | 28 | var git = new GitHubClient(new ProductHeaderValue("HabboLauncher")); 29 | git.Repository.Release.GetAll("scottstamp", "HabboLauncher").ContinueWith(GrabbedReleases); 30 | } 31 | 32 | private void GrabbedReleases(Task> getReleasesTask) 33 | { 34 | IReadOnlyList releases = getReleasesTask.Result; 35 | Latest = releases.FirstOrDefault(); 36 | 37 | if (Latest == null) return; 38 | 39 | foreach (Release release in releases) 40 | { 41 | string version = release.TagName.Substring(1); 42 | if (version == LocalVersion.ToString(3)) 43 | { 44 | Current = release; 45 | break; 46 | } 47 | } 48 | 49 | if (Current == null) 50 | { 51 | Current = Latest; 52 | } 53 | 54 | if (!Latest.Prerelease && new Version(Latest.TagName.Substring(1)) > LocalVersion) 55 | { 56 | if (Program.Settings.PromptSelfUpdate) 57 | { 58 | MainFrm.DisableAutoLaunch(); 59 | 60 | if (MessageBox.Show($"A launcher update has been found, would you like to be taken to the download page? ({Latest.TagName})", 61 | "HabboLauncher ~ Alert", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) 62 | { 63 | Process.Start(Latest.HtmlUrl); 64 | } 65 | } 66 | } 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /FlashLauncher/Utilities/Settings.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using System.IO; 3 | 4 | namespace HabboLauncher 5 | { 6 | public class Settings 7 | { 8 | public string Lang { get; set; } = "en"; 9 | 10 | public bool LaunchGEarth { get; set; } = false; 11 | public string GEarthPath { get; set; } = @""; 12 | public string GEarthOriginsPath { get; set; } = @""; 13 | public bool LaunchIntegerScaler { get; set; } = false; 14 | public string CustomSWFLink { get; set; } = @""; 15 | public bool UseCustomSwf { get; set; } = false; 16 | public bool IgnoreClientUpdates { get; set; } = false; 17 | public string LastLaunched { get; set; } = "air"; 18 | public bool AutoLaunch { get; set; } = false; 19 | public int AutoLaunchDelay { get; set; } = 5; 20 | public int DefaultOriginsServer { get; set; } = 0; 21 | public bool PromptSelfUpdate { get; set; } = true; 22 | public bool OriginsXL { get; set; } = false; 23 | public bool IgnoreClientUpdatesOrigins { get; set; } = false; 24 | public bool IgnoreClientUpdatesHabbox { get; set; } = false; 25 | public bool IgnoreClientUpdatesFlash { get; set; } = false; 26 | public bool IgnoreClientUpdatesUnity { get; set; } = false; 27 | 28 | public static Settings LoadSettings() 29 | { 30 | var path = Path.Combine(Program.AppCacheDir, "settings.json"); 31 | if (File.Exists(path)) 32 | { 33 | var json = File.ReadAllText(Path.Combine(Program.AppCacheDir, "settings.json")); 34 | var settings = JsonConvert.DeserializeObject(json); 35 | settings.Lang ??= "en"; 36 | settings.LastLaunched ??= "air"; 37 | 38 | return settings; 39 | } 40 | else 41 | { 42 | var settings = new Settings(); 43 | settings.SaveSettings(); 44 | return settings; 45 | } 46 | } 47 | 48 | public void SaveSettings() 49 | { 50 | File.WriteAllText(Path.Combine(Program.AppCacheDir, "settings.json"), JsonConvert.SerializeObject(this)); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /FlashLauncher/Utilities/UpdateResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace HabboLauncher 8 | { 9 | public class UpdateResult 10 | { 11 | public bool FlashUpdate, UnityUpdate, HabboxUpdate, ShockwaveUpdate, Required; 12 | 13 | public UpdateResult() { } 14 | public UpdateResult(bool flashUpdate, bool unityUpdate, bool habboxUpdate, bool shockwaveUpdate, bool required = false) 15 | { 16 | FlashUpdate = flashUpdate; 17 | UnityUpdate = unityUpdate; 18 | HabboxUpdate = habboxUpdate; 19 | ShockwaveUpdate = shockwaveUpdate; 20 | Required = required; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /FlashLauncher/Utilities/Updater.cs: -------------------------------------------------------------------------------- 1 | using HabboLauncher.Json; 2 | using Newtonsoft.Json; 3 | using System; 4 | using System.IO; 5 | using System.IO.Compression; 6 | using System.Linq; 7 | using System.Net; 8 | using System.Net.Http; 9 | using System.Security.Cryptography; 10 | using System.Threading.Tasks; 11 | using System.Windows.Forms; 12 | 13 | namespace HabboLauncher 14 | { 15 | public class Updater 16 | { 17 | private Versions versionCache; 18 | public ClientUrls lastCheckData; 19 | private ClientUrls lastCheckDataHabbox; 20 | private ClientUrls lastCheckDataShockwave; 21 | private readonly WebClient webClient = new(); 22 | 23 | public Installation FlashInstall => 24 | versionCache.Installations.FirstOrDefault(i => i.Client == "air" && i.Version == versionCache.LastCheck.Air.Version); 25 | public Installation UnityInstall => 26 | versionCache.Installations.FirstOrDefault(i => i.Client == "unity" && i.Version == versionCache.LastCheck.Unity.Version); 27 | public Installation HabboxInstall => 28 | versionCache.Installations.FirstOrDefault(i => i.Client == "habbox" && i.Version == versionCache.LastCheck.Habbox.Version); 29 | public Installation ShockwaveInstall => 30 | versionCache.Installations.FirstOrDefault(i => i.Client == "shockwave" && i.Version == versionCache.LastCheck.Shockwave.Version); 31 | 32 | public string LastCheckFlashUrl => 33 | new Uri(lastCheckData.FlashWindows).Segments[5].TrimEnd('/'); 34 | public string LastCheckUnityUrl => 35 | new Uri(lastCheckData.UnityWindows).Segments[5].TrimEnd('/'); 36 | public string LastCheckHabboxUrl => 37 | new Uri(lastCheckDataHabbox.UnityWindows).Segments[5].TrimEnd('/'); 38 | public string LastCheckShockwaveUrl => 39 | new Uri(lastCheckDataShockwave.ShockwaveWindows).Segments[5].TrimEnd('/'); 40 | 41 | public Updater() 42 | { 43 | webClient.Headers[HttpRequestHeader.UserAgent] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"; 44 | //webClient.Proxy = new WebProxy("localhost:8888"); 45 | LoadVersionCache(); 46 | } 47 | 48 | public UpdateResult CheckForUpdate() 49 | { 50 | try { 51 | var data = webClient.DownloadString("https://www.habbo.com/gamedata/clienturls"); 52 | lastCheckData = JsonConvert.DeserializeObject(data); 53 | 54 | webClient.Headers[HttpRequestHeader.UserAgent] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"; 55 | var habboxData = webClient.DownloadString("https://www.habbox.game/gamedata/clienturls"); 56 | lastCheckDataHabbox = JsonConvert.DeserializeObject(habboxData); 57 | 58 | webClient.Headers[HttpRequestHeader.UserAgent] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"; 59 | var ohabboData = webClient.DownloadString("https://origins.habbo.com/gamedata/clienturls"); 60 | lastCheckDataShockwave = JsonConvert.DeserializeObject(ohabboData); 61 | 62 | if (FlashInstall == null || UnityInstall == null || HabboxInstall == null || ShockwaveInstall == null) 63 | return new UpdateResult(FlashInstall == null, UnityInstall == null, HabboxInstall == null, ShockwaveInstall == null, true); 64 | 65 | 66 | if (!Directory.Exists(FlashInstall.Path) || !Directory.Exists(UnityInstall.Path) || !Directory.Exists(HabboxInstall.Path) || !Directory.Exists(ShockwaveInstall.Path)) 67 | { 68 | return new UpdateResult(!Directory.Exists(FlashInstall.Path), !Directory.Exists(UnityInstall.Path), !Directory.Exists(HabboxInstall.Path), !Directory.Exists(ShockwaveInstall.Path), true); 69 | } 70 | 71 | 72 | return new UpdateResult(lastCheckData.FlashWindowsVersion != versionCache.LastCheck.Air.Version, 73 | lastCheckData.UnityWindowsVersion != versionCache.LastCheck.Unity.Version, lastCheckDataHabbox.UnityWindowsVersion != versionCache.LastCheck.Habbox.Version, lastCheckDataShockwave.ShockwaveWindowsVersion != versionCache.LastCheck.Shockwave.Version); 74 | } catch (WebException webEx) { 75 | string errorDetails = $"Error checking for updates:\n\n"; 76 | 77 | if (webEx.Response is HttpWebResponse response) 78 | { 79 | errorDetails += $"URL: {response.ResponseUri}\n"; 80 | errorDetails += $"Status: {(int)response.StatusCode} {response.StatusCode}\n\n"; 81 | } 82 | else 83 | { 84 | errorDetails += $"Network Error: {webEx.Message}\n\n"; 85 | } 86 | 87 | errorDetails += $"Details: {webEx.ToString()}"; 88 | 89 | MessageBox.Show(errorDetails, "Update Check Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 90 | return new UpdateResult(false, false, false, false, true); 91 | } catch (Exception ex) { 92 | MessageBox.Show($"Unexpected error during update check:\n\n{ex.Message}\n\nStack Trace:\n{ex.StackTrace}", 93 | "Update Check Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 94 | return new UpdateResult(false, false, false, false, true); 95 | } 96 | } 97 | 98 | public void DownloadAirClient() 99 | { 100 | var extractedPath = Path.Combine(Program.AppCacheDir, "downloads", "air", lastCheckData.FlashWindowsVersion); 101 | 102 | DownloadClient(lastCheckData.FlashWindows, 103 | Path.Combine(Program.AppCacheDir, "downloads", "air", "HabboWin.zip"), 104 | extractedPath); 105 | 106 | var swfPath = Path.Combine(extractedPath, "HabboAir.swf"); 107 | var backupSwfFile = Path.Combine(extractedPath, "HabboAir.original.swf"); 108 | 109 | if (File.Exists(swfPath)) 110 | { 111 | File.Copy(swfPath, backupSwfFile); 112 | } 113 | 114 | versionCache.Installations.Add(new Installation 115 | { 116 | Version = lastCheckData.FlashWindowsVersion, 117 | Path = extractedPath, 118 | Client = "air", 119 | LastModified = DateTimeOffset.Now.ToUnixTimeSeconds() 120 | }); 121 | 122 | versionCache.LastCheck.Air = new CheckInfo 123 | { 124 | Version = lastCheckData.FlashWindowsVersion, 125 | Path = extractedPath 126 | }; 127 | 128 | if(!string.IsNullOrWhiteSpace(Program.Settings.CustomSWFLink)) 129 | { 130 | var customSwfPath = Path.Combine(Program.AppCacheDir, "HabboAir.custom.swf"); 131 | var newInstallationPath = Path.Combine(extractedPath, "HabboAir.custom.swf"); 132 | if (File.Exists(customSwfPath)) 133 | { 134 | File.Copy(customSwfPath, newInstallationPath); 135 | } 136 | } 137 | 138 | SaveVersionCache(); 139 | 140 | 141 | } 142 | 143 | public void DownloadUnityClient() 144 | { 145 | var extractedPath = Path.Combine(Program.AppCacheDir, "downloads", "unity", lastCheckData.UnityWindowsVersion); 146 | 147 | DownloadClient(lastCheckData.UnityWindows, 148 | Path.Combine(Program.AppCacheDir, "downloads", "unity", "StandaloneWindowshabbo2020-global-prod.app.zip"), 149 | extractedPath); 150 | 151 | versionCache.Installations.Add(new Installation 152 | { 153 | Version = lastCheckData.UnityWindowsVersion, 154 | Path = extractedPath, 155 | Client = "unity", 156 | LastModified = DateTimeOffset.Now.ToUnixTimeSeconds() 157 | }); 158 | 159 | versionCache.LastCheck.Unity = new CheckInfo 160 | { 161 | Version = lastCheckData.UnityWindowsVersion, 162 | Path = extractedPath 163 | }; 164 | 165 | SaveVersionCache(); 166 | } 167 | 168 | public void DownloadHabboxClient() 169 | { 170 | var extractedPath = Path.Combine(Program.AppCacheDir, "downloads", "habbox", lastCheckDataHabbox.UnityWindowsVersion); 171 | 172 | DownloadClient(lastCheckDataHabbox.UnityWindows, 173 | Path.Combine(Program.AppCacheDir, "downloads", "habbox", "StandaloneWindowshabbo2020-global-prod.app.zip"), 174 | extractedPath); 175 | 176 | versionCache.Installations.Add(new Installation 177 | { 178 | Version = lastCheckDataHabbox.UnityWindowsVersion, 179 | Path = extractedPath, 180 | Client = "habbox", 181 | LastModified = DateTimeOffset.Now.ToUnixTimeMilliseconds() 182 | }); 183 | 184 | versionCache.LastCheck.Habbox = new CheckInfo 185 | { 186 | Version = lastCheckDataHabbox.UnityWindowsVersion, 187 | Path = extractedPath 188 | }; 189 | 190 | SaveVersionCache(); 191 | } 192 | 193 | public void DownloadShockwaveClient() 194 | { 195 | var extractedPath = Path.Combine(Program.AppCacheDir, "downloads", "shockwave", lastCheckDataShockwave.ShockwaveWindowsVersion); 196 | 197 | DownloadClient(lastCheckDataShockwave.ShockwaveWindows, 198 | Path.Combine(Program.AppCacheDir, "downloads", "shockwave", "Origins-latest.zip"), 199 | extractedPath); 200 | 201 | versionCache.Installations.Add(new Installation 202 | { 203 | Version = lastCheckDataShockwave.ShockwaveWindowsVersion, 204 | Path = extractedPath, 205 | Client = "shockwave", 206 | LastModified = DateTimeOffset.Now.ToUnixTimeMilliseconds() 207 | }); 208 | 209 | versionCache.LastCheck.Shockwave = new CheckInfo 210 | { 211 | Version = lastCheckDataShockwave.ShockwaveWindowsVersion, 212 | Path = extractedPath 213 | }; 214 | 215 | SaveVersionCache(); 216 | } 217 | private void DownloadClient(string url, string outputFile, string extractedPath) 218 | { 219 | Directory.CreateDirectory(extractedPath); 220 | 221 | webClient.DownloadFile(url, outputFile); 222 | 223 | if (Directory.Exists(extractedPath)) 224 | Directory.Delete(extractedPath, true); 225 | 226 | Directory.CreateDirectory(extractedPath); 227 | ZipFile.ExtractToDirectory(outputFile, extractedPath); 228 | File.Delete(outputFile); 229 | } 230 | 231 | public async Task DownloadCustomSWF(string swfLink) 232 | { 233 | var latestInstallationPath = Path.Combine(Program.AppCacheDir, "downloads", "air", lastCheckData.FlashWindowsVersion); 234 | var swfFilePath = Path.Combine(Program.AppCacheDir, "HabboAir.custom.swf"); 235 | 236 | try 237 | { 238 | using (WebClient webClient = new WebClient()) 239 | { 240 | await webClient.DownloadFileTaskAsync(swfLink, swfFilePath); 241 | } 242 | 243 | if(File.Exists(swfFilePath)) 244 | { 245 | File.Delete(Path.Combine(latestInstallationPath, "HabboAir.custom.swf")); 246 | File.Copy(swfFilePath, Path.Combine(latestInstallationPath, "HabboAir.custom.swf")); 247 | } 248 | } 249 | catch (Exception ex) 250 | { 251 | MessageBox.Show($"Error Downloading SWF: {ex.Message}"); 252 | } 253 | } 254 | 255 | public async Task CheckForSwfUpdates() 256 | { 257 | var swfLink = Program.Settings.CustomSWFLink; 258 | var customSwfFile = Path.Combine(Program.AppCacheDir, "HabboAir.custom.swf"); 259 | 260 | try 261 | { 262 | string localFileHash = ComputeFileHash(customSwfFile); 263 | 264 | string remoteFileHash = await GetFileHashFromUrl(swfLink); 265 | 266 | if (localFileHash != remoteFileHash) 267 | { 268 | DialogResult result = MessageBox.Show( 269 | $"A new update was found for your Custom SWF \n\n{Program.Settings.CustomSWFLink}\n\nDo you want to download it? (AT YOUR OWN RISK)", 270 | "SWF Update", 271 | MessageBoxButtons.YesNo, 272 | MessageBoxIcon.Warning 273 | ); 274 | 275 | if (result == DialogResult.Yes) 276 | { 277 | await DownloadCustomSWF(swfLink); 278 | } 279 | } 280 | } 281 | catch (Exception ex) 282 | { 283 | MessageBox.Show($"An error occurred while checking for SWF updates: {ex.Message}", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 284 | } 285 | } 286 | 287 | public string ComputeFileHash(string filePath) 288 | { 289 | if (!File.Exists(filePath)) 290 | return null; 291 | 292 | using (var sha256 = SHA256.Create()) 293 | { 294 | using (var stream = File.OpenRead(filePath)) 295 | { 296 | byte[] hash = sha256.ComputeHash(stream); 297 | return BitConverter.ToString(hash).Replace("-", "").ToLowerInvariant(); 298 | } 299 | } 300 | } 301 | 302 | public async Task GetFileHashFromUrl(string url) 303 | { 304 | using (var httpClient = new HttpClient()) 305 | { 306 | byte[] fileBytes = await httpClient.GetByteArrayAsync(url); 307 | using (var sha256 = SHA256.Create()) 308 | { 309 | byte[] hash = sha256.ComputeHash(fileBytes); 310 | return BitConverter.ToString(hash).Replace("-", "").ToLowerInvariant(); 311 | } 312 | } 313 | } 314 | 315 | private string versionsPath = Path.Combine(Program.AppCacheDir, "versions.json"); 316 | 317 | private void LoadVersionCache() 318 | { 319 | if (File.Exists(versionsPath)) 320 | { 321 | versionCache = JsonConvert.DeserializeObject(File.ReadAllText(versionsPath)); 322 | } 323 | else 324 | { 325 | versionCache = new Versions(); 326 | } 327 | } 328 | 329 | private void SaveVersionCache() 330 | { 331 | versionCache.LastCheck.Time = DateTimeOffset.Now.ToUnixTimeSeconds(); 332 | File.WriteAllText(Path.Combine(Program.AppCacheDir, "versions.json"), JsonConvert.SerializeObject(versionCache, Formatting.Indented)); 333 | } 334 | 335 | } 336 | } 337 | -------------------------------------------------------------------------------- /FlashLauncher/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /HabboLauncher.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30803.129 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HabboLauncher", "FlashLauncher\HabboLauncher.csproj", "{6EDBA6F9-A795-4E8B-B8FB-C631B071ADDC}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {6EDBA6F9-A795-4E8B-B8FB-C631B071ADDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {6EDBA6F9-A795-4E8B-B8FB-C631B071ADDC}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {6EDBA6F9-A795-4E8B-B8FB-C631B071ADDC}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {6EDBA6F9-A795-4E8B-B8FB-C631B071ADDC}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {261ED17B-F632-4D71-B695-BDA2B8BC0D9C} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 |  GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HabboLauncher 2 | This project is a replacement for Sulake's atrocious HabboLauncher package. 3 | 4 | Feel free to clone or modify this project for your own personal uses, I just ask that you link back to this page. :heart: 5 | 6 | # Features 7 | - Multi-login (allows loading multiple accounts / hotels at once) 8 | - Auto-launch (will automatically launch the last client you selected after 5 seconds) 9 | - G-Earth integration (set your G-Earth path in the Options dialog to connect automatically) 10 | - Updater (checks with Habbo every time you run the launcher for any new client files) 11 | 12 | # Motivation 13 | After some heartfelt discussion with [@SulakeJohno](https://twitter.com/SulakeJohno/status/1382214370298564608) it's clear Sulake is more interested in "easy development" than providing quality software. 14 | 15 | The latest Habbo Launcher application relies on Electron, while I normally wouldn't protest this, it's loading >300mb of data each time it opens to simply spawn another process. 16 | It's also lacking a lot of useful features and has poor ergonomics (no auto-launch or close after launching). 17 | 18 | Future goals include releasing a macOS compatible version once .NET 6 is stable (for M1 support). 19 | 20 | # Dependencies 21 | - [Fody](https://github.com/Fody/Home) 22 | - [Costura](https://github.com/Fody/Costura) 23 | - [Json.NET](https://www.newtonsoft.com/json) 24 | - [Octokit](https://github.com/octokit/octokit.net) --------------------------------------------------------------------------------