Skip to content

Commit

Permalink
fix: change links and readme (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Jul 26, 2023
1 parent cb880cd commit e7fdb11
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
* ✅ Update client
* ✅ Run the client

You must configure MainWindow and SplashScreen
You must configure the "launcher_config.json" url in MainWindow.cs and SplashScreen.cs

In launcher_config.json you need to make necessary settings to use the launcher. (Read the explanation of how to use each configuration)
8 changes: 4 additions & 4 deletions launcher_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
• clientFolder The name of the main client folder, represented as "Tibia"
NOTE: Set it to "false" or only "" to not use the client folder, so everything will be added to the main folder
• newClientUrl The URL where the new client version can be downloaded from
• executable The path to the client's executable file, represented as "bin/molten.exe"
• executable The path to the client's executable file, represented as "bin/client.exe"
*/
{
"clientVersion": "12.91.12329",
"clientVersion": "13.20.13560",
"launcherVersion": "1.0",
"replaceFolders": false,
"replaceFolders": true,
"replaceFolderName": [
{
"name": "assets"
Expand All @@ -24,6 +24,6 @@ NOTE: Set it to "false" or only "" to not use the client folder, so everything w
}
],
"clientFolder": "Tibia",
"newClientUrl" : "https://github.com/dudantas/CanaryLauncherUpdate/releases/download/download-files/client-to-update.zip",
"newClientUrl" : "https://github.com/dudantas/tibia-client/archive/refs/tags/13.20.13560.zip",
"clientExecutable": "client.exe"
}
4 changes: 2 additions & 2 deletions src/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace CanaryLauncherUpdate
{
public partial class MainWindow : Window
{
static string launcerConfigUrl = "https://raw.githubusercontent.com/dudantas/CanaryLauncherUpdate/improve-change-images-to-static/launcher_config.json";
static string launcerConfigUrl = "https://raw.githubusercontent.com/opentibiabr/canary-launcher/main/launcher_config.json";
// Load informations of launcher_config.json file
static ClientConfig clientConfig = ClientConfig.loadFromFile(launcerConfigUrl);

Expand All @@ -43,7 +43,7 @@ private string GetLauncherPath(bool onlyBaseDirectory = false)
} else {
launcherPath = AppDomain.CurrentDomain.BaseDirectory.ToString() + "/" + clientConfig.clientFolder;
}

return launcherPath;
}

Expand Down
6 changes: 3 additions & 3 deletions src/SplashScreen.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ namespace CanaryLauncherUpdate
{
public partial class SplashScreen : Window
{
static string launcerConfigUrl = "https://raw.githubusercontent.com/dudantas/CanaryLauncherUpdate/improve-change-images-to-static/launcher_config.json";
static string launcerConfigUrl = "https://raw.githubusercontent.com/opentibiabr/canary-launcher/main/launcher_config.json";
// Load informations of launcher_config.json file
static ClientConfig clientConfig = ClientConfig.loadFromFile(launcerConfigUrl);

static string clientExecutableName = clientConfig.clientExecutable;
static string urlClient = clientConfig.newClientUrl;

Expand All @@ -36,7 +36,7 @@ private string GetLauncherPath(bool onlyBaseDirectory = false)
} else {
launcherPath = AppDomain.CurrentDomain.BaseDirectory.ToString() + "/" + clientConfig.clientFolder;
}

return launcherPath;
}

Expand Down

0 comments on commit e7fdb11

Please sign in to comment.