Commit Graph

18 Commits

Author SHA1 Message Date
google-labs-jules[bot] b60e76653d Fix handling of paths containing non-ASCII characters on Windows
- On Windows, paths inputted as arguments are often parsed according to the system's active ANSI code page instead of UTF-8, which breaks Cyrillic and other Unicode characters.
- Modified `src/main.cpp` to use `GetCommandLineW` and convert arguments to UTF-8 on Windows natively.
- Adjusted paths handling in `build_romfs` and `build_pfs0` calls to be strictly passed as UTF-8 encoded strings via `std::filesystem::path::u8string()`.
- Updated `switch-tools/src/pfs0.c` to handle UTF-8 paths internally by utilizing `filepath.h` abstractions (`os_opendir`, `os_fopen`, etc.), just like `romfs.c`, effectively supporting proper UTF-16 Win32 file functions when run on Windows.

Co-authored-by: arabianq <55220741+arabianq@users.noreply.github.com>
2026-03-03 21:38:34 +00:00
arabianq 016e8b35a4 fix: use path.generic_string() before passing it as arg to build_romfs and build_pfs0 2026-01-10 20:26:57 +03:00
arabianq 52911153d5 fix: copying issue on windows 2026-01-10 20:12:00 +03:00
arabianq 3f8ca14073 fix: calling filesystem::absolute on empty string 2026-01-10 19:55:55 +03:00
arabianq 622f15aea2 remove unnecessary filesyste:: 2026-01-10 19:54:20 +03:00
arabianq d79da24180 new project in c++
updpate cmaketargetlist for windows

manually convert filename() to string
2025-11-19 07:34:04 +03:00
arabianq d438689cde remove rust project 2025-11-19 06:12:55 +03:00
arabianq 0f01c6fc4b fix os error 26 2025-11-17 06:18:51 +03:00
arabianq 757218ea57 fix romfs case sensitivity 2025-11-08 22:30:40 +03:00
arabianq 92618af161 refactor: removed some unnecessary code 2025-08-14 07:54:14 +03:00
arabianq 17cb1e9684 reformat imports a bit =) 2025-08-14 07:35:23 +03:00
arabianq 5f13b9e5d7 ./manifest -> manifest 2025-03-21 19:57:04 +03:00
arabianq 7c2b5fba43 fixed fs error on linux 2025-03-18 23:17:15 +03:00
arabianq 0b41154fe6 fixed deleting build_romfs and build_pfs0 before it's usage 2025-03-18 18:02:07 +03:00
arabianq 736027d66e moved build_romfs and build_pfs0 outside temp dir 2025-03-18 17:57:39 +03:00
arabianq fd8ba7260a renamed temp_dir to temp_path 2025-03-18 17:56:48 +03:00
arabianq 486d42d000 main.rs 2025-03-18 17:06:53 +03:00
arabianq 4a29fbed3d init 2025-03-18 10:10:57 +03:00