Skip to content

Commit

Permalink
Use wchars for APPDATA; bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
piepie62 committed May 2, 2022
1 parent 1d0fc77 commit de8036b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions installer/bezel-installer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ int main()
const std::filesystem::path bezelFile{"Bezel/BezelModLoader.swf"};
const std::filesystem::path mainLoaderPath{"Bezel/MainLoader.swf"};

if (!getenv("APPDATA"))
if (!_wgetenv(L"APPDATA"))
{
waitExit("%APPDATA% does not exist", -7);
}

const std::filesystem::path appdata{getenv("APPDATA")};
const std::filesystem::path appdata{_wgetenv(L"APPDATA")};
if (std::filesystem::exists(appdata))
{
const std::filesystem::path gcfwData = appdata / gameID / "Local Store";
Expand Down Expand Up @@ -195,9 +195,9 @@ int main()
fwrite(swfData, 1, swfSize, outFile);
fclose(outFile);

if (getenv("BezelLibs"))
if (_wgetenv(L"BezelLibs"))
{
const std::filesystem::path bezelLibs{getenv("BezelLibs")};
const std::filesystem::path bezelLibs{_wgetenv(L"BezelLibs")};

ec.clear();
if (!std::filesystem::exists(bezelLibs))
Expand Down
2 changes: 1 addition & 1 deletion src/Bezel/Bezel.as
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package Bezel
*/
public class Bezel extends MovieClip
{
public static const VERSION:String = "2.0.1";
public static const VERSION:String = "2.0.2";

private var _gameObjects:Object;
private var _mainLoader:MainLoader;
Expand Down

0 comments on commit de8036b

Please sign in to comment.