mirror of
https://gitea.shironeko-all.duckdns.org/shironeko/Hytale-F2P-2.git
synced 2026-02-26 10:41:46 -03:00
feat: Add Repair Game button, UserData backup and cache clearing (#79)
* feat: Add Repair Game functionality including UserData backup and cache clearing * feat: Add In-App Logs Viewer and Logs Folder shortcut * feat: Add Open Logs feature * disable dev tools * Fix Settings UI * fix reorder settings section in index.html relocated sections in settings from most used to least: 1. game options (playername, opengamedir, repair, GPUpreference) 2. player uuid management 3. discord integration rich presence 4. custom java path --------- Co-authored-by: Fazri Gading <super.fai700@gmail.com>
This commit is contained in:
@@ -40,7 +40,8 @@ const {
|
||||
installGame,
|
||||
uninstallGame,
|
||||
updateGameFiles,
|
||||
checkExistingGameInstallation
|
||||
checkExistingGameInstallation,
|
||||
repairGame
|
||||
} = require('./managers/gameManager');
|
||||
|
||||
const {
|
||||
@@ -87,13 +88,14 @@ module.exports = {
|
||||
// Game launch functions
|
||||
launchGame,
|
||||
launchGameWithVersionCheck,
|
||||
|
||||
|
||||
// Game installation functions
|
||||
installGame,
|
||||
isGameInstalled,
|
||||
uninstallGame,
|
||||
updateGameFiles,
|
||||
|
||||
repairGame,
|
||||
|
||||
// User configuration functions
|
||||
saveUsername,
|
||||
loadUsername,
|
||||
@@ -102,16 +104,16 @@ module.exports = {
|
||||
saveChatColor,
|
||||
loadChatColor,
|
||||
getUuidForUser,
|
||||
|
||||
|
||||
// Java configuration functions
|
||||
saveJavaPath,
|
||||
loadJavaPath,
|
||||
getJavaDetection,
|
||||
|
||||
|
||||
// Installation path functions
|
||||
saveInstallPath,
|
||||
loadInstallPath,
|
||||
|
||||
|
||||
// Discord RPC functions
|
||||
saveDiscordRPC,
|
||||
loadDiscordRPC,
|
||||
@@ -124,13 +126,13 @@ module.exports = {
|
||||
// Version functions
|
||||
getInstalledClientVersion,
|
||||
getLatestClientVersion,
|
||||
|
||||
|
||||
// News functions
|
||||
getHytaleNews,
|
||||
|
||||
|
||||
// Player ID functions
|
||||
getOrCreatePlayerId,
|
||||
|
||||
|
||||
// UUID Management functions
|
||||
getCurrentUuid,
|
||||
getAllUuidMappings,
|
||||
@@ -138,7 +140,7 @@ module.exports = {
|
||||
generateNewUuid,
|
||||
deleteUuidForUser,
|
||||
resetCurrentUserUuid,
|
||||
|
||||
|
||||
// Mod management functions
|
||||
getModsPath,
|
||||
loadInstalledMods,
|
||||
@@ -147,13 +149,13 @@ module.exports = {
|
||||
toggleMod,
|
||||
saveModsToConfig,
|
||||
loadModsFromConfig,
|
||||
|
||||
|
||||
// UI file management functions
|
||||
downloadAndReplaceHomePageUI,
|
||||
findHomePageUIPath,
|
||||
downloadAndReplaceLogo,
|
||||
findLogoPath,
|
||||
|
||||
|
||||
// First launch functions
|
||||
isFirstLaunch,
|
||||
markAsLaunched,
|
||||
|
||||
Reference in New Issue
Block a user