mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
Common: Add Shift-JIS helpers
This commit is contained in:
parent
f589865842
commit
70768c02af
|
@ -60,6 +60,8 @@ add_library(common
|
|||
progress_callback.cpp
|
||||
progress_callback.h
|
||||
scope_guard.h
|
||||
shiftjis.cpp
|
||||
shiftjis.h
|
||||
state_wrapper.cpp
|
||||
state_wrapper.h
|
||||
string.cpp
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
<ClInclude Include="rectangle.h" />
|
||||
<ClInclude Include="cd_subchannel_replacement.h" />
|
||||
<ClInclude Include="scope_guard.h" />
|
||||
<ClInclude Include="shiftjis.h" />
|
||||
<ClInclude Include="state_wrapper.h" />
|
||||
<ClInclude Include="string.h" />
|
||||
<ClInclude Include="string_util.h" />
|
||||
|
@ -128,6 +129,7 @@
|
|||
<ClCompile Include="minizip_helpers.cpp" />
|
||||
<ClCompile Include="null_audio_stream.cpp" />
|
||||
<ClCompile Include="progress_callback.cpp" />
|
||||
<ClCompile Include="shiftjis.cpp" />
|
||||
<ClCompile Include="state_wrapper.cpp" />
|
||||
<ClCompile Include="cd_xa.cpp" />
|
||||
<ClCompile Include="string.cpp" />
|
||||
|
|
|
@ -102,6 +102,7 @@
|
|||
<ClInclude Include="minizip_helpers.h" />
|
||||
<ClInclude Include="win32_progress_callback.h" />
|
||||
<ClInclude Include="make_array.h" />
|
||||
<ClInclude Include="shiftjis.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="jit_code_buffer.cpp" />
|
||||
|
@ -196,6 +197,7 @@
|
|||
<ClCompile Include="cd_image_memory.cpp" />
|
||||
<ClCompile Include="minizip_helpers.cpp" />
|
||||
<ClCompile Include="win32_progress_callback.cpp" />
|
||||
<ClCompile Include="shiftjis.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Natvis Include="bitfield.natvis" />
|
||||
|
|
1596
src/common/shiftjis.cpp
Normal file
1596
src/common/shiftjis.cpp
Normal file
File diff suppressed because it is too large
Load diff
4
src/common/shiftjis.h
Normal file
4
src/common/shiftjis.h
Normal file
|
@ -0,0 +1,4 @@
|
|||
#pragma once
|
||||
|
||||
void sjis2ascii(char* bData);
|
||||
char* sjis2utf8(char* input);
|
Loading…
Reference in a new issue