Commit graph

46 commits

Author SHA1 Message Date
Wally4000
67ec7b2ca3 Add Translate Feature to SDL UI 2024-10-07 13:02:11 +02:00
wally4000
057d301b11 Remove BaseDir extern and replace with setBasePath function 2024-08-02 15:15:58 +10:00
wally4000
1cae4e21fe Remove redundant UI file 2024-07-18 13:24:21 +10:00
wally4000
ee96bb4f0b Move some UI stuff to Unique_ptrs 2024-07-16 16:01:06 +10:00
wally4000
74ac1819a1 Revert "Move some UI stuff to Unique_ptrs"
This reverts commit 094328ae26.
2024-07-16 15:41:44 +10:00
wally4000
094328ae26 Move some UI stuff to Unique_ptrs 2024-07-16 14:27:02 +10:00
wally4000
fda2ce6155 Use std::string a bit more (Will make sense later) 2024-07-16 13:13:20 +10:00
wally4000
a02e85073e Move a lot of fopen to std::fstreams 2024-07-11 20:10:49 +10:00
Wally4000
0db6f44622 Apply some fixes so Windows builds again 2024-06-29 11:55:46 +10:00
wally4000
4a35201f22 Specify if a variable is unused to silence compiler. 2024-06-20 12:24:05 +10:00
wally4000
5be11beeb3 Std::filesystem by reference and start to enable Translate for all 2024-06-20 10:07:25 +10:00
wally4000
68233ee492 Fix more path stuff 2024-06-17 20:05:10 +10:00
wally4000
677f53c592 Modernise DAEDALUS_USE and replace ARRAY_SIZE VARIABLE 2024-06-17 13:45:41 +10:00
Howard Su
d3c304abae Cleanup UI code for platform independent 2023-12-05 14:15:25 +08:00
Wally4000
0044d9ae30 Exclusive PSP Utilities should be in PSP/Utility 2022-01-31 11:19:44 +11:00
Wally4000
a1f945414d Remove System/Paths.h / Paths.cpp as not required 2022-01-30 21:21:03 +11:00
Wally4000
cd80cfc6de Just use strcasecmp now. All platforms support it 2021-12-09 16:05:21 +11:00
Wally4000
15e3e2a1d0 Update to the Bazel Directory Structure.. 2020-08-22 18:42:41 +10:00
=
1511baa25e Fix up paths in headers 2020-05-27 19:20:52 +10:00
salvy
5c42f7ec57 [~] Compile fixes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1708 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-19 18:55:22 +00:00
strmnnrmn
ffcbe649b1 [~] stdafx cleanup: Include stdio.h and stdlib.h where needed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1703 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-19 08:53:29 +00:00
strmnnrmn
3d4a0c0e95 [~] stdafx cleanup: Move utility macros to Utility/Macros.h and directly include where needed.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1691 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-18 16:05:35 +00:00
strmnnrmn
b05c813379 [~] Huge filename cleanup. Use IO::Filename rather than char [MAX_PATH] or char [MAX_PATH+1]. Add an IO::Path::Assign. Use IO::Path::Assign/Combine rather than strcpy/strcat/snprintf. Remove MAX_PATH (everything should use the constant in IO.h if required, then we can make this platform specific)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1686 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-18 16:04:55 +00:00
strmnnrmn
e5c352b545 [~] Add a Split function, and move Tidy to a new StringUtil file
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1415 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-24 22:08:31 +00:00
salvy
2bc64156e6 [!] Some clean ups
[!] Made guRotateF and volatile memory platform independent 
[!] Check for invalid reads/writes to PIF

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@870 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-20 21:50:27 +00:00
strmnnrmn
03ab67a298 Move IO::Path::Tidy to String.h - it's not really anything to do with paths
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@837 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-03 22:51:11 +00:00
strmnnrmn
7008e95d44 Fix inconsistent line endings in Translate.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@836 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-03 22:51:05 +00:00
strmnnrmn
d7d116642a Fix more trailing whitespace (files with CRLF line endings?)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@825 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 23:23:11 +00:00
strmnnrmn
767e4efd9c Fix line endings
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@822 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 22:11:57 +00:00
salvy
cf8f01eaca [+] Added Polish translation by malymi45
[!] Removed hacks used to correct string length of translated strings 
[!] Avoid computing strlen twice when translating strings

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@673 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-15 18:47:19 +00:00
salvy
8b72c5085d [!] Removed SimulateDoubleDisabled option (was replaced with specific game hacks)
[!] Tyde R4300_Cop1_CTC1 (saves 7 ops)
[!] Made all instances of FPUControl[31] to 32bit (Compiler was already optimizing it off anyways)
[!] Fixed languages not being unloaded properly when switching to default language
[!] Tyde when loading languages

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@645 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-18 03:33:42 +00:00
Salvy
7797f48dfb [!] Fixed typo in hash in all translations
[!] Only try to load language files once when system inits
[!] Fixed crash when number of language files changed
[+] Conserve the order of languages, regardless if their number was changed
[!] Increase ROM cache size for PHAT from 2MB to 4MB

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@616 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-02-17 20:47:22 +00:00
Salvy
75291b71c6 [+] Added Italian translation by kakarotto
[+] Added Dutch translation by grivy
[!] Is now possible to hash/dump your own strings erg hash.txt (Just use DAEDDAED value in your language file to prompt Daedalus to do so)
[~] Minor corrections to Spanish translation
[-] Removed compatibility with compressed ROMs (Daedalus no longer reads compressed ROMS, didn't work well in the PSP due the limited amount of memory anyways, and just the unzip lib alone added a good amount of bloat to the binary)
[!] Updated unzip lib from 0.15 to 1.01h

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@603 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-02-03 02:00:27 +00:00
Salvy
c2e9eab309 [!] Updated Brazilian Portuguese (Scarecrow)
[!] Simplified translate parsing

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@595 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-23 00:26:46 +00:00
Salvy
337892e989 [!] Is now possible to translate savestate menu, battery/time status, splash screen, daedzone screen and other strings.
[!] Some clean ups in translation codebase
[!] Only fetch language files once
[!] Updated Brazilian Portuguese translation (Scarecrow)
[!] Updated Spanish translation (Ricot)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@591 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-20 22:18:30 +00:00
Salvy
371ef273f5 [!] Fix translated text height is not calculated correctly when breaking lines
[!] Load translations to volatile memory and only unload if using a different language

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@589 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-19 18:53:27 +00:00
Salvy
c610f2dee2 [!] Avoid translating strings when hash fails
[!] Increased translated text array

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@586 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-19 01:25:41 +00:00
Salvy
e8e47d4f74 [!] Fixed memory leak in cheat feature
[!] Fixed translations switching to default when accessing pause menu (thnx Ricot for reporting it)
[!] Fixed language list being inconsistent (thnx Ricot for reporting it)
[!] One more fix when wrapping translated text (thnx pzu for reporting it)
[!] Simplify getting language name
[!] No longer register a sysevent handler when using volatile memory (Was breaking exception handler, also volatile memory now works in signed builds)
[!] Use scePowerLock to disable power switch and thus "disable" suspend mode (needed when using volatile memory)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@585 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-19 01:16:27 +00:00
Salvy
51aa042896 [!] Fixed ancient regression that was breaking most unicode strings
[!] Translations will fall back to use intrafont's manual linebreaking feature (our auto-linebreaking can't handle unicodes)
[+] Handle special chars as newline when parsing language files (Needed by intrafont's linebreaking)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@584 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-18 02:04:49 +00:00
Salvy
e358308590 [!] Made language switching friendlier (language changes will happen instantly too)
[!] More clean ups to remove redundancies 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@581 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-12 20:16:27 +00:00
Salvy
3c99ce9a80 [!] Alot of improvements and fixes to translation codebase (Is fully working now)
[+] Added Spanish translation by niccoooodu61

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@580 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-12 02:47:00 +00:00
Salvy
7cea9c8bcc [+] Use a more robust method to identified strings (we'll hash each string and thus we can translate any string without having all the redundant stuff all over our strings)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@577 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-11 20:31:01 +00:00
Salvy
0499b589ce [!] More work and clean ups when loading languages to GUI
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@575 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-09 02:51:10 +00:00
Salvy
f9e64a4a86 [+] Added menu to switch languages (WIP!!!) can be found in Global Settings
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@574 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-08 03:02:04 +00:00
Salvy
98f12c4b9f [!] Identified most strings to be translated (We can start translating now)
[!] Some improvements and clean ups to Translation codebase

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@573 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-07 00:54:45 +00:00
Salvy
e48a3db53b [+] Daedalus can now be translated to any language (not used yet, will add Spanish translation as example and leave the rest to the community)
[~] Some clean ups to some redundant code

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@572 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-05 02:19:08 +00:00