Skip to content

Commit

Permalink
Move directory to data
Browse files Browse the repository at this point in the history
  • Loading branch information
Grarak committed Aug 12, 2024
1 parent f98949d commit ea3060b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This runs some games, however following things are missing:
- Grab the latest vpk from [releases](https://github.com/Grarak/DSVita/releases)
- Install `libshacccg.suprx`, follow this [guide](https://cimmerian.gitbook.io/vita-troubleshooting-guide/shader-compiler/extract-libshacccg.suprx)
- It's recommend overclock your vita to 500MHz
- Create the folder ux0:dsvita and put your roms there
- Create the folder ux0:data/dsvita and put your roms there

## Credits

Expand Down
14 changes: 7 additions & 7 deletions src/presenter/vita.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ mod imgui {
include!(concat!(env!("OUT_DIR"), "/imgui_bindings.rs"));
}

const ROM_PATH: &str = "ux0:dsvita";
const SAVES_PATH: &str = "ux0:dsvita/saves";
const SETTINGS_PATH: &str = "ux0:dsvita/settings";
const ROM_PATH: &str = "ux0:data/dsvita";
const SAVES_PATH: &str = "ux0:data/dsvita/saves";
const SETTINGS_PATH: &str = "ux0:data/dsvita/settings";

#[repr(u8)]
pub enum SharkOpt {
Expand Down Expand Up @@ -100,7 +100,7 @@ impl Presenter {
scePowerSetGpuClockFrequency(222);
scePowerSetBusClockFrequency(222);
scePowerSetGpuXbarClockFrequency(166);

vglSetupRuntimeShaderCompiler(SharkOpt::Unsafe as _, 1, 0, 1);
// Disable multisampling for depth texture
vglInitExtended(0, 960, 544, 24 * 1024 * 1024, SCE_GXM_MULTISAMPLE_NONE);
Expand Down Expand Up @@ -183,9 +183,9 @@ impl Presenter {

pub fn present_ui(&self) -> (CartridgeIo, Settings) {
unsafe {
fs::create_dir_all(ROM_PATH).unwrap();
fs::create_dir_all(SAVES_PATH).unwrap();
fs::create_dir_all(SETTINGS_PATH).unwrap();
let _ = fs::create_dir(ROM_PATH);
let _ = fs::create_dir(SAVES_PATH);
let _ = fs::create_dir(SETTINGS_PATH);

let mut cartridges: Vec<CartridgeIo> = match fs::read_dir(ROM_PATH) {
Ok(rom_dir) => rom_dir
Expand Down

0 comments on commit ea3060b

Please # to comment.