00cc9309cb
de6e324bdseparate emu thread10d3daf86Roms List improvements95d202f37Let's make the rom list process on a separate thread so the emulator doesnt take ages to load.fc306967fWow the ROM Header was just completely busted. Game list view works nowbad1691eefuck this shit2b59e5f46game list in progressd26417b83remappable inputs in progressac4af8106inpute72abc240update readme430139dc9Qt6 frontend3080d4d45Fix this small bug too08cd13b85Cop0 unused functions do not actually pose a threat (as per manual). They don't do anything, so shall we.61bb4fb44make idle loop detection a little more specific with where the load goesb037de4c3SAZDFsdff12e81e73eneed to figure out why n64-systemtest loops indefinitely at some address that appears to be valid (i think it's me not invalidating the cache properly)204f0e13bidle skipping seems to work!cb8bb634asdkfjlasdf58e5c89c1Fix compilation issue on my machine (no idea)24fb2898eattempting more serious idle skipping214719577Place rsp.Step inside cached interpreter. Gains about 3 more fpsbb97dcc23mmmmm920b77d38wjkhasdfjhkasdf430ccdab4it's a start...4f42a673aCached interpreter plays Mario 64. Start looking into RSP as wellc9a030787idle skipping works!5fbda03cenew idea366637abaIdle skipping... maybe?609fa2fb0Cache instructions implemented but broken lmao. Commented out for nowe140a6d12- Stop using inheritance for CPU, instead use composition. - Introduce KAIZEN_JIT_ENABLED optional define instead of relying on __aarch64__ and the like. - More cache work68e613057prep cache impl811b4d809fix clang formatfda755f7didkd5024ebbfsmall MI refactor in preparation of (eventually) implementing the RDRAM interface properly694b45341Merge commit '206dcdedf195fb320913584180edb12c7731e396' as 'external/SDL'206dcdedfSquashed 'external/SDL/' content from commit 4d17b99d0a4d16e1cb4need to update sdl848b19920Fix compilation errordb61b5299Merge commit 'e94a94559f28e49678fbcf72199a5258137b0fe9' as 'external/imgui'e94a94559Squashed 'external/imgui/' content from commit 02e9b8cac52edb3757need to update imguic1a705e86Emulate weird JALR behaviour4b4c32f4bFix exception for "unusable COP1" in 4 instructions i missed accidentally (again)df5828142Bug putting 0s in the log everywheref8b580048Make isviewer a sink to file8241e9735Fix exception for "unusable COP1" in 4 instructions i missed accidentallyb29715f20small changesd9a620bc1make use of my new small utility library0d1aa938eAdd 'external/ircolib/' from commit 'ce3cd726c8df8388d554abf8bb55d55020eb4450'e64eb40b3Fuck git git-subtree-dir: external/ircolib git-subtree-split:de6e324bde
170 lines
5.4 KiB
Perl
Executable File
170 lines
5.4 KiB
Perl
Executable File
#!/usr/bin/perl -w
|
|
|
|
use warnings;
|
|
use strict;
|
|
use File::Basename;
|
|
use Cwd qw(abs_path);
|
|
|
|
my $wikipath = undef;
|
|
foreach (@ARGV) {
|
|
$wikipath = abs_path($_), next if not defined $wikipath;
|
|
}
|
|
|
|
chdir(dirname(__FILE__));
|
|
chdir('..');
|
|
|
|
my %fulltags = ();
|
|
my @unsorted_releases = ();
|
|
open(PIPEFH, '-|', 'git tag -l') or die "Failed to read git release tags: $!\n";
|
|
|
|
while (<PIPEFH>) {
|
|
chomp;
|
|
my $fulltag = $_;
|
|
if ($fulltag =~ /\A(prerelease|preview|release)\-(\d+)\.(\d+)\.(\d+)\Z/) {
|
|
# Ignore anything that isn't a x.y.0 release.
|
|
# Make sure new APIs are assigned to the next minor version and ignore the patch versions, but we'll make an except for the prereleases.
|
|
my $release_type = $1;
|
|
my $major = int($2);
|
|
my $minor = int($3);
|
|
my $patch = int($4);
|
|
next if ($major != 3); # Ignore anything that isn't an SDL3 release.
|
|
next if ($patch != 0) && ($minor >= 2); # Ignore anything that is a patch release (unless it was between the preview release and the official release).
|
|
|
|
# Consider this release version.
|
|
my $ver = "${major}.${minor}.${patch}";
|
|
push @unsorted_releases, $ver;
|
|
$fulltags{$ver} = $fulltag;
|
|
}
|
|
}
|
|
close(PIPEFH);
|
|
|
|
#print("\n\nUNSORTED\n");
|
|
#foreach (@unsorted_releases) {
|
|
# print "$_\n";
|
|
#}
|
|
|
|
my @releases = sort {
|
|
my @asplit = split /\./, $a;
|
|
my @bsplit = split /\./, $b;
|
|
my $rc;
|
|
for (my $i = 0; $i < scalar(@asplit); $i++) {
|
|
return 1 if (scalar(@bsplit) <= $i); # a is "2.0.1" and b is "2.0", or whatever.
|
|
my $aseg = $asplit[$i];
|
|
my $bseg = $bsplit[$i];
|
|
$rc = int($aseg) <=> int($bseg);
|
|
return $rc if ($rc != 0); # found the difference.
|
|
}
|
|
return 0; # still here? They matched completely?!
|
|
} @unsorted_releases;
|
|
|
|
my $current_release = $releases[-1];
|
|
my $next_release;
|
|
|
|
if (scalar(@releases) > 0) {
|
|
# this happens to work for how SDL versions things at the moment.
|
|
$current_release = $releases[-1];
|
|
|
|
my @current_release_segments = split /\./, $current_release;
|
|
# if we're still in the 3.1.x prereleases, call the "next release" 3.2.0 even if we do more prereleases.
|
|
if (($current_release_segments[0] == '3') && ($current_release_segments[1] == '1')) {
|
|
$next_release = '3.2.0';
|
|
} else {
|
|
@current_release_segments[1] = '' . (int($current_release_segments[1]) + 2);
|
|
$next_release = join('.', @current_release_segments);
|
|
}
|
|
}
|
|
|
|
#print("\n\nSORTED\n");
|
|
#foreach (@releases) {
|
|
# print "$_\n";
|
|
#}
|
|
#print("\nCURRENT RELEASE: $current_release\n");
|
|
#print("NEXT RELEASE: $next_release\n\n");
|
|
|
|
push @releases, 'HEAD';
|
|
$fulltags{'HEAD'} = 'HEAD';
|
|
|
|
my %funcs = ();
|
|
foreach my $release (@releases) {
|
|
#print("Checking $release...\n");
|
|
my $tag = $fulltags{$release};
|
|
my $blobname = "$tag:src/dynapi/SDL_dynapi_overrides.h";
|
|
|
|
if ($release =~ /\A3\.[01]\.\d+\Z/) { # make everything up to the first SDL3 official release look like 3.2.0.
|
|
$release = '3.2.0';
|
|
}
|
|
|
|
open(PIPEFH, '-|', "git show '$blobname'") or die "Failed to read git blob '$blobname': $!\n";
|
|
while (<PIPEFH>) {
|
|
chomp;
|
|
if (/\A\#define\s+(SDL_.*?)\s+SDL_.*?_REAL\Z/) {
|
|
my $fn = $1;
|
|
$funcs{$fn} = $release if not defined $funcs{$fn};
|
|
}
|
|
}
|
|
close(PIPEFH);
|
|
}
|
|
|
|
if (not defined $wikipath) {
|
|
foreach my $release (@releases) {
|
|
foreach my $fn (sort keys %funcs) {
|
|
print("$fn: $funcs{$fn}\n") if $funcs{$fn} eq $release;
|
|
}
|
|
}
|
|
} else {
|
|
if (defined $wikipath) {
|
|
chdir($wikipath);
|
|
foreach my $fn (keys %funcs) {
|
|
next if $fn eq 'SDL_ThreadID'; # this was a function early on (it's now called SDL_GetThreadID), but now it's a datatype (which originally had a different capitalization).
|
|
my $revision = $funcs{$fn};
|
|
$revision = $next_release if $revision eq 'HEAD';
|
|
my $fname = "$fn.md";
|
|
if ( ! -f $fname ) {
|
|
#print STDERR "No such file: $fname\n";
|
|
next;
|
|
}
|
|
|
|
my @lines = ();
|
|
open(FH, '<', $fname) or die("Can't open $fname for read: $!\n");
|
|
my $added = 0;
|
|
while (<FH>) {
|
|
chomp;
|
|
if ((/\A\-\-\-\-/) && (!$added)) {
|
|
push @lines, "## Version";
|
|
push @lines, "";
|
|
push @lines, "This function is available since SDL $revision.";
|
|
push @lines, "";
|
|
$added = 1;
|
|
}
|
|
push @lines, $_;
|
|
next if not /\A\#\#\s+Version/;
|
|
$added = 1;
|
|
push @lines, "";
|
|
push @lines, "This function is available since SDL $revision.";
|
|
push @lines, "";
|
|
while (<FH>) {
|
|
chomp;
|
|
next if not (/\A\#\#\s+/ || /\A\-\-\-\-/);
|
|
push @lines, $_;
|
|
last;
|
|
}
|
|
}
|
|
close(FH);
|
|
|
|
if (!$added) {
|
|
push @lines, "## Version";
|
|
push @lines, "";
|
|
push @lines, "This function is available since SDL $revision.";
|
|
push @lines, "";
|
|
}
|
|
|
|
open(FH, '>', $fname) or die("Can't open $fname for write: $!\n");
|
|
foreach (@lines) {
|
|
print FH "$_\n";
|
|
}
|
|
close(FH);
|
|
}
|
|
}
|
|
}
|
|
|