Giter Club home page Giter Club logo

forcelang's Introduction

forcelang

A taiHEN plugin for overriding an application's language, if queried by sceAppUtilSystemParamGetInt and SCE_SYSTEM_PARAM_ID_LANG. Possibly inefficient, possibly still buggy, it is literally the author's "My First Vita Homebrew".

Requirements

  • A way to use taiHEN plugins (developed using a PS Vita on 3.65 Enso)
  • ioplus (for config file access)

Installation

Copy forcelang.suprx and ioplus.skprx to ur0:/tai, then add the plugin to the config.txt section of each application you want to use it with.

*KERNEL
ur0:tai/ioplus.skprx

# Example for Digimon Story: Cyber Sleuth (European PSN)
*PCSB00861
ur0:tai/forcelang.suprx

Configuration

When starting an application with the plugin enabled, the plugin will look for, and if necessary create, a configuration file at ux0:/data/forcelang/[title ID].txt, ex. PCSB00861.txt.

This file contains a single number, corresponding to the Vita system's SceSystemParamLang enum. Thus, valid values are:

  • 0: Japanese
  • 1: American English
  • 2: French
  • 3: Spanish
  • 4: German
  • 5: Italian
  • 6: Dutch
  • 7: Portugal Portuguese
  • 8: Russian
  • 9: Korean
  • 10: Traditional Chinese
  • 11: Simplified Chinese
  • 12: Finnish
  • 13: Swedish
  • 14: Danish
  • 15: Norwegian
  • 16: Polish
  • 17: Brazil Portuguese
  • 18: British English
  • 19: Turkish

Do note that the application might not support the language requested, or it might not use the function patched by this plugin to determine the language. If an application supports switching languages ex. via its options menu, use that instead.

forcelang's People

Contributors

xdanieldzd avatar tobix avatar

Stargazers

 avatar  avatar swimmingsoft avatar  avatar  avatar  avatar  avatar  avatar  avatar Eneko Torres Gómez avatar  avatar  avatar HRK avatar  avatar  avatar nikolostov avatar Z3R0N3 avatar

Watchers

 avatar  avatar Gamebrew avatar

forcelang's Issues

Will not work if sceAppUtilSystemParamGetInt is called by another module.

because you are using taiHookFunctionImport on TAI_MAIN_MODULE the patched function will only work if sceAppUtilSystemParamGetInt is called by the main module (eboot.bin) however if the app has multiple modules, (like say in unitys case where it has like libMono.suprx for everything) then it wont work

to get around this, you can put a hook on the loadStartModule or whatever, and make it place the hook there, or you could use a kernel plugin and hook the actual ksceRegMgrReadKeyInt function since all the user functions do is call this anyway, this would also mean you dont need kuio to break sandboxing.

also about that. its generally recommended to use ioPlus instead of kuio these days ;P

default language

how to set a default language?
the default number is 1 which stands english , but I want not the english as default.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.