mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 08:34:43 +01:00
Compare commits
1 Commits
dependabot
...
v1.5.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b28c3881e6 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cultivation",
|
"name": "cultivation",
|
||||||
"version": "1.5.1",
|
"version": "1.5.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "^1.0.0-rc.5",
|
"@tauri-apps/api": "^1.0.0-rc.5",
|
||||||
|
|||||||
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@@ -959,7 +959,7 @@ checksum = "b365fabc795046672053e29c954733ec3b05e4be654ab130fe8f1f94d7051f35"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cultivation"
|
name = "cultivation"
|
||||||
version = "1.5.1"
|
version = "1.5.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anime-launcher-sdk",
|
"anime-launcher-sdk",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cultivation"
|
name = "cultivation"
|
||||||
version = "1.5.1"
|
version = "1.5.2"
|
||||||
description = "A custom launcher for anime game."
|
description = "A custom launcher for anime game."
|
||||||
authors = ["KingRainbow44", "SpikeHD"]
|
authors = ["KingRainbow44", "SpikeHD"]
|
||||||
license = ""
|
license = ""
|
||||||
|
|||||||
BIN
src-tauri/patch/52version.dll
Normal file
BIN
src-tauri/patch/52version.dll
Normal file
Binary file not shown.
@@ -7,7 +7,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "Cultivation",
|
"productName": "Cultivation",
|
||||||
"version": "1.5.1"
|
"version": "1.5.2"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ export default class NewsSection extends React.Component<IProps, IState> {
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
Work in progress area! These numbers may be outdated, so please do not use them as reference. Latest
|
Work in progress area! These numbers may be outdated, so please do not use them as reference. Latest
|
||||||
version: Grasscutter 1.7.4 - Cultivation 1.5.1
|
version: Grasscutter 1.7.4 - Cultivation 1.5.2
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -50,20 +50,34 @@ export async function getGameDataFolder() {
|
|||||||
|
|
||||||
export async function getGameVersion() {
|
export async function getGameVersion() {
|
||||||
const GameData = await getGameDataFolder()
|
const GameData = await getGameDataFolder()
|
||||||
|
const platform = await invoke('get_platform')
|
||||||
|
|
||||||
if (!GameData) {
|
if (!GameData) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
const hasAsb = await invoke('dir_exists', {
|
let hasAsb = await invoke('dir_exists', {
|
||||||
path: GameData + '\\StreamingAssets\\asb_settings.json',
|
path: GameData + '\\StreamingAssets\\asb_settings.json',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (platform != 'windows') {
|
||||||
|
hasAsb = await invoke('dir_exists', {
|
||||||
|
path: GameData + '/StreamingAssets/asb_settings.json',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if (!hasAsb) {
|
if (!hasAsb) {
|
||||||
// For games that cannot determine game version
|
// For games that cannot determine game version
|
||||||
const otherGameVer: string = await invoke('read_file', {
|
let otherGameVer: string = await invoke('read_file', {
|
||||||
path: GameData + '\\StreamingAssets\\BinaryVersion.bytes',
|
path: GameData + '\\StreamingAssets\\BinaryVersion.bytes',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (platform != 'windows') {
|
||||||
|
otherGameVer = await invoke('read_file', {
|
||||||
|
path: GameData + '/StreamingAssets/BinaryVersion.bytes',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const versionRaw = otherGameVer.split('.')
|
const versionRaw = otherGameVer.split('.')
|
||||||
const version = {
|
const version = {
|
||||||
major: parseInt(versionRaw[0]),
|
major: parseInt(versionRaw[0]),
|
||||||
|
|||||||
@@ -6388,9 +6388,9 @@ multicast-dns@^7.2.5:
|
|||||||
thunky "^1.0.2"
|
thunky "^1.0.2"
|
||||||
|
|
||||||
nanoid@^3.3.4:
|
nanoid@^3.3.4:
|
||||||
version "3.3.8"
|
version "3.3.4"
|
||||||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.8.tgz#b1be3030bee36aaff18bacb375e5cce521684baf"
|
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab"
|
||||||
integrity sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==
|
integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==
|
||||||
|
|
||||||
natural-compare@^1.4.0:
|
natural-compare@^1.4.0:
|
||||||
version "1.4.0"
|
version "1.4.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user