mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
fix(mewtris): VNs
This commit is contained in:
parent
e7b403e303
commit
d69e644c2f
4 changed files with 59 additions and 17 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -783,11 +783,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1760253876,
|
"lastModified": 1760272637,
|
||||||
"narHash": "sha256-A9N5/T9ZoX+PNjcG41S02bFK57ica8jOQgcaFBhx3MU=",
|
"narHash": "sha256-NYHwgjCNOsAOJUj0QlKALca6gEo5Y926MYDwv4RviNo=",
|
||||||
"owner": "kittywitch",
|
"owner": "kittywitch",
|
||||||
"repo": "mewtris",
|
"repo": "mewtris",
|
||||||
"rev": "62900d59eb1fa5bf38ac3b782639feadd4879364",
|
"rev": "76c605f892f9f170da36834e53a2272f7a2788e8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -306,6 +306,7 @@
|
||||||
};
|
};
|
||||||
mewtris = {
|
mewtris = {
|
||||||
url = "github:kittywitch/mewtris/main";
|
url = "github:kittywitch/mewtris/main";
|
||||||
|
#url = "path:/home/kat/src/mewtris";
|
||||||
inputs = {
|
inputs = {
|
||||||
nix-std.follows = "nix-std";
|
nix-std.follows = "nix-std";
|
||||||
flake-compat.follows = "flake-compat";
|
flake-compat.follows = "flake-compat";
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
@echo off
|
REM @echo off
|
||||||
set VN_DIR=%1
|
set VN_DIR=%1
|
||||||
set VN_EXE=%2
|
set VN_EXE=%~2
|
||||||
set VN_ARCH=%3
|
set VN_ARCH=%3
|
||||||
|
|
||||||
echo "Setting UTF-8..."
|
echo "Setting UTF-8..."
|
||||||
chcp 65001 > nul
|
REM chcp 65001 > nul
|
||||||
|
|
||||||
echo "Launching VN..."
|
echo "Launching VN..."
|
||||||
cd /d %VN_DIR%
|
cd /d %VN_DIR%
|
||||||
|
|
@ -12,6 +12,6 @@ start %VN_EXE%
|
||||||
|
|
||||||
echo Launching Textractor...
|
echo Launching Textractor...
|
||||||
cd /d "C:\users\steamuser\Desktop\Textractor\%VN_ARCH%"
|
cd /d "C:\users\steamuser\Desktop\Textractor\%VN_ARCH%"
|
||||||
start Textractor.exe
|
Textractor.exe
|
||||||
|
|
||||||
exit
|
REM exit
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ in {
|
||||||
PROTON_CACHYOS = "${inputs.chaotic.packages.${pkgs.system}.proton-cachyos_x86_64_v3.out}/bin";
|
PROTON_CACHYOS = "${inputs.chaotic.packages.${pkgs.system}.proton-cachyos_x86_64_v3.out}/bin";
|
||||||
PROTON_GE = "${inputs.chaotic.packages.${pkgs.system}.proton-ge-custom.out}/bin";
|
PROTON_GE = "${inputs.chaotic.packages.${pkgs.system}.proton-ge-custom.out}/bin";
|
||||||
WINE_TKG = pkgs.wine-tkg;
|
WINE_TKG = pkgs.wine-tkg;
|
||||||
|
WINE_CACHYOS = pkgs.wine-cachyos;
|
||||||
};
|
};
|
||||||
pathPackages = with pkgs; [
|
pathPackages = with pkgs; [
|
||||||
mangohud
|
mangohud
|
||||||
|
|
@ -34,7 +35,8 @@ in {
|
||||||
"+tid"
|
"+tid"
|
||||||
"+seh"
|
"+seh"
|
||||||
"+debugstr"
|
"+debugstr"
|
||||||
"+module"
|
#"+module"
|
||||||
|
"trace:-module"
|
||||||
];
|
];
|
||||||
WINEUSERSANDBOX = builtins.toString 1;
|
WINEUSERSANDBOX = builtins.toString 1;
|
||||||
};
|
};
|
||||||
|
|
@ -130,7 +132,7 @@ in {
|
||||||
// rec {
|
// rec {
|
||||||
inherit long_name;
|
inherit long_name;
|
||||||
prefixFolder = gameStorage + "/VNs";
|
prefixFolder = gameStorage + "/VNs";
|
||||||
gameFolder = prefixFolder + "/drive_c";
|
gameFolder = prefixFolder;
|
||||||
gameExecutable = "C:\\cmd.exe";
|
gameExecutable = "C:\\cmd.exe";
|
||||||
gameArguments = [
|
gameArguments = [
|
||||||
"/k"
|
"/k"
|
||||||
|
|
@ -264,11 +266,50 @@ in {
|
||||||
vkbasalt
|
vkbasalt
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.kat.home.file = {
|
home-manager.users.kat.home.file = let
|
||||||
"Games/battlenet/drive_c/script.bat".source = ./bnet_script.bat;
|
inherit (lib.attrsets) listToAttrs nameValuePair attrNames;
|
||||||
"Games/battlenet/drive_c/cmd.exe".source = ./reactos_cmd.exe;
|
inherit (lib.lists) concatMap;
|
||||||
# https://learnjapanese.moe/vn-linux/
|
dxvks = {
|
||||||
"Games/VNs/drive_c/script.bat".source = ./vn_script.bat;
|
"x64" = pkgs.dxvk-w32;
|
||||||
"Games/VNs/drive_c/cmd.exe".source = ./reactos_cmd.exe;
|
"x32" = pkgs.dxvk-w64;
|
||||||
};
|
};
|
||||||
|
pfxes = [
|
||||||
|
"Games/VNs/drive_c/windows"
|
||||||
|
];
|
||||||
|
arches = {
|
||||||
|
"x32" = "system32";
|
||||||
|
"x64" = "syswow64";
|
||||||
|
};
|
||||||
|
files = [
|
||||||
|
"d3d8.dll"
|
||||||
|
"d3d9.dll"
|
||||||
|
"d3d10core.dll"
|
||||||
|
"d3d11.dll"
|
||||||
|
"dxgi.dll"
|
||||||
|
];
|
||||||
|
dxvkLinker = pfx: arch: file: let
|
||||||
|
dxvk = dxvks.${arch};
|
||||||
|
in
|
||||||
|
nameValuePair "${pfx}/${arches.${arch}}/${file}" {
|
||||||
|
source = "${dxvk}/bin/${file}";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
(listToAttrs (concatMap (
|
||||||
|
pfx:
|
||||||
|
concatMap (
|
||||||
|
arch:
|
||||||
|
concatMap (
|
||||||
|
file: [(dxvkLinker pfx arch file)]
|
||||||
|
)
|
||||||
|
files
|
||||||
|
) (attrNames arches)
|
||||||
|
)
|
||||||
|
pfxes))
|
||||||
|
// {
|
||||||
|
"Games/battlenet/drive_c/script.bat".source = ./bnet_script.bat;
|
||||||
|
"Games/battlenet/drive_c/cmd.exe".source = ./reactos_cmd.exe;
|
||||||
|
# https://learnjapanese.moe/vn-linux/
|
||||||
|
"Games/VNs/drive_c/script.bat".source = ./vn_script.bat;
|
||||||
|
"Games/VNs/drive_c/cmd.exe".source = ./reactos_cmd.exe;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue