move DR_Rs
This commit is contained in:
parent
df7baee443
commit
93b6f70dab
@ -1,4 +1,4 @@
|
|||||||
Set-Location .\libs\Difficult_Rocket_rs\src
|
Set-Location .\mods\dr_game\Difficult_Rocket_rs\src
|
||||||
|
|
||||||
Write-Output $args[0]
|
Write-Output $args[0]
|
||||||
|
|
||||||
@ -25,4 +25,4 @@ if ($do -or "311" -in $args) {
|
|||||||
|
|
||||||
python3.8 post_build.py
|
python3.8 post_build.py
|
||||||
|
|
||||||
Set-Location ..\..\..\
|
Set-Location ..\..\..\..\
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
- `game.config`
|
- `game.config`
|
||||||
- 已删除
|
- 已删除
|
||||||
- Removed
|
- Removed
|
||||||
- `DR_option` & `DR_runtime`
|
- `DR_option` & `DR_runtime`(`long_version` `15`)
|
||||||
- 完全移除 `DR_rust` 部分
|
- 完全移除 `DR_rust` 部分
|
||||||
- Completely removed the `DR_rust` part
|
- Completely removed the `DR_rust` part
|
||||||
|
|
||||||
|
BIN
libs/Difficult_Rocket_rs/lib/Difficult_Rocket_rs.cp38-win_amd64.pyd
(Stored with Git LFS)
BIN
libs/Difficult_Rocket_rs/lib/Difficult_Rocket_rs.cp38-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
@ -3,22 +3,16 @@
|
|||||||
# Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com
|
# Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com
|
||||||
# All rights reserved
|
# All rights reserved
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import shutil
|
import shutil
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from setuptools_rust import Binding, RustExtension
|
from setuptools_rust import Binding, RustExtension
|
||||||
|
|
||||||
sys.path.append('../../../')
|
|
||||||
sys.path.append(os.curdir)
|
|
||||||
if '../../../' in sys.path:
|
|
||||||
from Difficult_Rocket import DR_runtime
|
|
||||||
|
|
||||||
package_path = 'Difficult_Rocket_rs'
|
package_path = 'Difficult_Rocket_rs'
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='Difficult_Rocket_rs',
|
name='Difficult_Rocket_rs',
|
||||||
version=DR_runtime.DR_Rust_version.__str__(),
|
version="0.2.6.2",
|
||||||
author='shenjackyuanjie',
|
author='shenjackyuanjie',
|
||||||
author_email='3695888@qq.com',
|
author_email='3695888@qq.com',
|
||||||
rust_extensions=[RustExtension(target="Difficult_Rocket_rs.Difficult_Rocket_rs",
|
rust_extensions=[RustExtension(target="Difficult_Rocket_rs.Difficult_Rocket_rs",
|
@ -28,7 +28,7 @@ class _DR_mod_runtime(Options):
|
|||||||
|
|
||||||
def init(self, **kwargs) -> None:
|
def init(self, **kwargs) -> None:
|
||||||
try:
|
try:
|
||||||
from libs.Difficult_Rocket_rs import get_version_str
|
from .Difficult_Rocket_rs import get_version_str
|
||||||
self.DR_rust_get_version = Version(get_version_str())
|
self.DR_rust_get_version = Version(get_version_str())
|
||||||
self.DR_rust_available = True
|
self.DR_rust_available = True
|
||||||
if self.DR_rust_get_version != self.DR_rust_version:
|
if self.DR_rust_get_version != self.DR_rust_version:
|
||||||
@ -36,7 +36,12 @@ class _DR_mod_runtime(Options):
|
|||||||
warnings.warn(f'DR_rust builtin version is {self.DR_rust_version} but true version is {get_version_str()}.\n'
|
warnings.warn(f'DR_rust builtin version is {self.DR_rust_version} but true version is {get_version_str()}.\n'
|
||||||
f'Builtin version {relationship} than true version')
|
f'Builtin version {relationship} than true version')
|
||||||
self.use_DR_rust = self.use_DR_rust and self.DR_rust_available
|
self.use_DR_rust = self.use_DR_rust and self.DR_rust_available
|
||||||
except ImportError as e:
|
except Exception as e:
|
||||||
|
try:
|
||||||
|
from .Difficult_Rocket_rs import get_version_str
|
||||||
|
print(type(get_version_str))
|
||||||
|
except:
|
||||||
|
...
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
self.DR_rust_available = False
|
self.DR_rust_available = False
|
||||||
self.use_DR_rust = False
|
self.use_DR_rust = False
|
||||||
|
@ -35,7 +35,7 @@ if TYPE_CHECKING:
|
|||||||
from Difficult_Rocket.client import ClientWindow
|
from Difficult_Rocket.client import ClientWindow
|
||||||
|
|
||||||
if DR_mod_runtime.use_DR_rust:
|
if DR_mod_runtime.use_DR_rust:
|
||||||
from libs.Difficult_Rocket_rs import CenterCamera_rs, SR1PartList_rs
|
from .Difficult_Rocket_rs import CenterCamera_rs, SR1PartList_rs
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger('client')
|
logger = logging.getLogger('client')
|
||||||
|
Loading…
Reference in New Issue
Block a user