global._ = { bundles: { "win32-x64": { url: "https://b2-cdn.ragestudio.net/file/bundler-sg/bundles/zoo-tycoon2-uc/versions/33.05.00.0002UO/bnl-win.zip", filename: "bundle.zip", }, "darwin-x64": { url: "https://b2-cdn.ragestudio.net/file/bundler-sg/bundles/zoo-tycoon2-uc/versions/33.05.00.0002UO/bnl-win.zip", filename: "bundle.zip", } } } module.exports = { id: "zootycoon2-uc", name: "Zoo Tycoon 2 Ultimate Collection", version: "33.05.00.0002UO", icon: "https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/i/8c425ae9-aebd-4172-99af-ce419151b76a/dbhnre8-8c8fd2df-ddd8-400d-981a-91b370d8d55c.png", description: "Zoo Tycoon 2 is an economic simulation video game whose main objective is to create and manage a zoo, in order to raise money for reinvestment, satisfying the needs of its visitors, hiring staff to care for animals, purchasing buildings and attractions, etc.", author: "Microsoft Games | Blue Fang", patches: [ { id: "es_patch", name: "Spanish Patch", additions: [ { file: "%install_path/es_patch.zt2", steps: { http_downloads: [ { url: "https://b2-cdn.ragestudio.net/file/bundler-sg/bundles/zoo-tycoon2-uc/versions/33.05.00.0002UO/es_patch.zip", path: "es_patch.zip", extract: true, delete_after_extract: true } ] }, } ] }, { id: "widescreen_patch", name: "Widescreen Patch", default: true, additions: [ { file: "%install_path%/zWidescreen.z2f", steps: { http_downloads: [ { url: "https://b2-cdn.ragestudio.net/file/bundler-sg/bundles/zoo-tycoon2-uc/versions/33.05.00.0002UO/widescreen_patch.zip", path: "widescreen_patch.zip", extract: true, delete_after_extract: true } ] }, } ] }, ], execute: `%install_path%/zt.exe`, executable: true, init: ({ os_string }) => { if (typeof global._.bundles[os_string] === "undefined") { throw new Error(`OS Not supported: ${os_string}`) } const dlBundle = global._.bundles[os_string] return { install_steps: { http_downloads: [ { path: dlBundle.filename, url: dlBundle.url, extract: true, delete_after_extract: true, } ] }, update_steps: { http_downloads: [ { path: dlBundle.filename, url: dlBundle.url, extract: true, delete_after_extract: true, } ] } } } }