-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added System-V ABI support in x64 backend & fixed mmap initialization
- Loading branch information
Showing
6 changed files
with
67 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,5 @@ project("xenia-vfs-dump") | |
resincludedirs({ | ||
project_root, | ||
}) | ||
include("testing") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
project_root = "../../../.." | ||
include(project_root.."/tools/build") | ||
|
||
test_suite("xenia-vfs-tests", project_root, ".", { | ||
links = { | ||
"xenia-vfs", | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
****************************************************************************** | ||
* Xenia : Xbox 360 Emulator Research Project * | ||
****************************************************************************** | ||
* Copyright 2023 Ben Vanik. All rights reserved. * | ||
* Released under the BSD license - see LICENSE in the root for more details. * | ||
****************************************************************************** | ||
*/ | ||
|
||
#include "xenia/vfs/devices/stfs_xbox.h" | ||
|
||
#include "third_party/catch/include/catch.hpp" | ||
|
||
namespace xe::vfs::test { | ||
|
||
TEST_CASE("STFS Decode date and time", "[stfs_decode]") { | ||
SECTION("10 June 2022 19:46:00 UTC - Decode") { | ||
const uint16_t date = 0x54CA; | ||
const uint16_t time = 0x9DBD; | ||
const uint64_t result = 132993639580000000; | ||
|
||
const uint64_t timestamp = decode_fat_timestamp(date, time); | ||
|
||
REQUIRE(timestamp == result); | ||
} | ||
} | ||
|
||
} // namespace xe::vfs::test |